Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
118 user(s) are online (97 user(s) are browsing Forums)

Members: 1
Guests: 117

walkero, more...

Support us!

Headlines




« 1 ... 5 6 7 (8) 9 »


Re: gcc 9 and 10
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1335
@walkero

Probably adding "extern" in global.h will help, and then defining those symbols in one C file only.

   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2011/7/20 20:01
From In the sticks
Posts: 178
If you have a globals header file you can have something like

#ifndef DOXYGEN_SHOULD_SKIP_THIS

#ifdef ALLOCATE_GLOBALS
    #define GLOBAL_PREFIX 
    #define GLOBAL_VAL(x)    = x
#else
    #define GLOBAL_PREFIX extern
    #define GLOBAL_VAL(x)
#endif

#endif         /* #ifndef DOXYGEN_SHOULD_SKIP_THIS */

GLOBAL_PREFIX const char *G_NAME_S GLOBAL_VAL ("name");
GLOBAL_PREFIX int g_log_level GLOBAL_VAL (1);



then in one of the c source files have

#define ALLOCATE_GLOBALS (1)


before the

#include "globals.h"

line in that particular file and it will define and declare the variables just fine

   Report Go to top

Re: gcc 9 and 10
Site Builder
Joined:
2006/12/2 23:57
From Athens/Dublin
Posts: 905
Thanks again for your proposals.
The reason I mentioned this problem in this thread is because I thought that this might be a problem of the GCC 10 itself. Let's don't derail the thread further.

I really appreciate your feedback guys. Thanks again.

   Report Go to top

Re: gcc 9 and 10
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4194
@all

Since today a rather essential (at least for me) fix regarding dynamic casts/shared builds has been merged to adtools, could someone please compile a new version, so I can test locally?

Thanks a lot

See here: https://github.com/sba1/adtools/pull/101

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 161
@Raziel

I'll see if I can get some time to do this during the weekend.

   Report Go to top

Re: gcc 9 and 10
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4194
@sTix

Looking forward to it, thank you very much

If you don't find time, no problem...let's keep it fun

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 161
@Raziel

Ok, I just did a blind build while at work. A haven't tested it at all so take it for what it is, it might kill your cat and steal your car:

https://github.com/sodero/adtools/releases/tag/10.3.0_2

   Report Go to top

Re: gcc 9 and 10
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4194
@sTix

Whee, thanks...off to test...

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: gcc 9 and 10
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4194
@sTix

Resized Image

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 161
@Raziel

Excellent :)

   Report Go to top

Re: gcc 9 and 10
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4194
@sTix

Compiled a full scale ScummVM with all engines...that rc is working for me

Thank you very much

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 161
@Raziel

Very good to hear. I'm finally preparing a PR for the main repo now so that we'll have less confusion and maintenance in the (hopefully no so distant) future.

   Report Go to top

Re: gcc 9 and 10
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1335
@sTix

Thanks for the latest release. Compiled succesfully a couple of C++ projects.

   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 161
@Capehill

Nice. I opened a PR in the main repo for gcc 10. There was some confusion in that thread as to why this release works. Would be good to avoid that in the future :)

   Report Go to top

Re: gcc 9 and 10 and 11
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 161
If anyone would like to try 11.1.0 out, a build can be found here:

https://github.com/sodero/adtools/releases/tag/10.3.0_1


   Report Go to top

Re: gcc 9 and 10 and 11
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4194
@sTix

Will do asap, but

1) Why is it tagged 10.3.0_1 (instead of 11.1.0) and
2) What are the differences to 10.3.0_2?
(https://github.com/sodero/adtools/releases/tag/10.3.0_2)

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: gcc 9 and 10 and 11
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 161
@Raziel

I just used that release as a dump for the binaries. 11.1.0 contains everything that 10.3.0_2 does. It's a mess that I should fix. I see that there's a Travis file in the adtools repo, but it seems broken. That should be fixed so that we could build rc:s, finals and so on and automatically publish them somewhere.

   Report Go to top

Re: gcc 9 and 10 and 11
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4194
@sTix

Understood, will get to testing tomorrow and report back.

Thank you

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: gcc 9 and 10 and 11
Just popping in
Joined:
2009/6/11 2:19
From Germany
Posts: 153
@sTix

Quote:
If anyone would like to try 11.1.0 out, a build can be found here:


Thanks for the update! Tried compiling 2 projects. No problems.

I also tried "-flto" but it doesn't work when building natively.

   Report Go to top

Re: gcc 9 and 10 and 11
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4194
@IamSONIC

lto not working natively is a known bug.
There is either something missing natively or something broke while porting.

@sTix

Just did a full build of ScummVM with 11.1.0...works like a charm.

I can also report that -fanalyze is working, but it's not really something to use commonly, more like only for bug hunting, since it demands a lot of cpu power.

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top


« 1 ... 5 6 7 (8) 9 »



[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project