Page 1 of 1

Cafu trunk on ArchLinux with GCC 4.7.1

Posted: 2012-09-21, 20:26
by sycoso
Hello Carsten and everyone else,

I tried to build Cafu trunk on ArchLinux with GCC 4.7.1 and figured out I needed the patch I attached to build it.

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Posted: 2012-09-21, 21:43
by Carsten
:thanks:
I suspect that you removed -Werror because there were even more reports by the GCC 4.7 compiler?

Scorphame experienced the same issues a few days ago, and I believe we walked through all the warnings (treated as errors) as well: http://www.cafu.de/forum/viewtopic.php?p=5287#p5287

The first who sends me a complete patch that works with leaving -Werror in gets a huge thanks from me and the patch applied to the official repository immediately. :-D

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Posted: 2012-09-22, 16:13
by sycoso
Yes; thanks for pointing out the other thread. I attached the patch that worked for me!

Btw: YAY, COOKIES :bash:

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Posted: 2012-09-23, 15:08
by sycoso
One more comment: I would add the following line to SConstruct to preserve colors (if existing):

envCommon['ENV']['TERM'] = os.environ['TERM']

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Posted: 2012-09-23, 16:44
by Carsten
sycoso wrote:Yes; thanks for pointing out the other thread. I attached the patch that worked for me!
Thanks to you and Scorphame for the work, patch is applied! :thanks:
Btw: YAY, COOKIES :bash:
Cookies?? :?
envCommon['ENV']['TERM'] = os.environ['TERM']
Well... this breaks the Windows build.
This could of course be fixed, e.g. with

Code: Select all

if 'TERM' in os.environ:
    envCommon['ENV']['TERM'] = os.environ['TERM']
But still I wonder where the colors originally come from? GCC? SCons?
I tried this here (under Ubuntu), but with or without this, I see no colors at all.

Re: Cafu trunk on ArchLinux with GCC 4.7.1

Posted: 2012-09-23, 17:33
by sycoso
Well, you DO get colors with clang :lol:
And when people use colorgcc they get color, too. Well, maybe we should just let people do that on their own when they want colors...