Errors and warnings when building 1.77 trunk

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Errors and warnings when building 1.77 trunk rev5133

Post by cim »

Fixed in r5135.

In fact, neither of the two entirely separate compilers I use have a problem with it, even with warnings turned to maximum.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Errors and warnings when building 1.77 trunk rev5133

Post by Gimi »

I use the setup provided by Another Commander, "Building trunk the easy way". Not sure what version of the GNU compiler that uses, but maybe the package should be updated. As far as I know, it hasn't been updated in a while. It comes down to time I guess, and Oolite development has precedence.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6634
Joined: Wed Feb 28, 2007 7:54 am

Re: Errors and warnings when building 1.77 trunk rev5133

Post by another_commander »

The GCC version used in the package for building Oolite for Windows is 4.3.2. Although it's not the latest version of GCC, it certainly is a fine compiler and the kind of warning mentioned above alone does not warrant any kind of update. The last time the compiler had to be updated was at the time we introduced the new JavaScript library, where the older GCC 3.4.2 version had started throwing internal compiler errors when building the core, had no support for native Obj-C exception handling and had serious problems building js32ECMAv5.dll altogether.

Changing compiler (especially for the Windows port) is not a simple task and I do not think that there is any reason for updating what we have at this moment.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Errors and warnings when building 1.77 trunk rev5133

Post by Gimi »

another_commander wrote:
Changing compiler (especially for the Windows port) is not a simple task and I do not think that there is any reason for updating what we have at this moment.
Thank you AC, good to know. My main reason for asking was that there have been a few cases where errors and warnings have popped up on Windows only it seems. With that cleared I'll continue to report them as they pop up.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Errors and warnings when building 1.77 trunk rev5140

Post by Gimi »

Getting lots of warnings similar to these when compiling r5140 on Windows.

Code: Select all

$ make debug=no
Making all for objc_program oolite...
 Compiling file src/Core/legacy_random.c ...
In file included from src/Core/legacy_random.h:32,
                 from src/Core/legacy_random.c:30:
src/Core/OOFunctionAttributes.h:90:3: warning: #warning No string format checking.
 Compiling file src/Core/Debug/OODebugMonitor.m ...
In file included from src/Core/OOLogging.h:32,
                 from src/Core/OOCocoa.h:239,
                 from src/Core/Debug/OODebugMonitor.h:38,
                 from src/Core/Debug/OODebugMonitor.m:33:
src/Core/OOFunctionAttributes.h:90:3: warning: #warning No string format checking.
For the whole set of warnings see this text file: Compile warnings r5140.txt
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Errors and warnings when building 1.77 trunk rev5140

Post by JensAyton »

Gimi wrote:
Getting lots of warnings similar to these when compiling r5140 on Windows.
Fixed.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Errors and warnings when building 1.77 trunk rev5133

Post by JensAyton »

another_commander wrote:
I do not think that there is any reason for updating what we have at this moment.
I could probably think of quite a long list. :-)
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Errors and warnings when building 1.77 trunk rev5144

Post by Gimi »

Warnings when compiling r5144 on Windows.

Code: Select all

 Compiling file src/Core/Entities/ShipEntity.m ...
src/Core/Entities/ShipEntity.m: In function '-[ShipEntity setProximityAlert:]':
src/Core/Entities/ShipEntity.m:5809: warning: conflicting types for '-(void)setProximityAlert:(ShipEntity *)other'
src/Core/Entities/ShipEntity.h:912: warning: previous declaration of '-(void)setProximityAlert:(Entity *)targetEntity'
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Errors and warnings when building 1.77 trunk rev5144

Post by cim »

Gimi wrote:
Warnings when compiling r5144 on Windows.
Fixed in r5145, I hope.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Errors and warnings when building 1.77 trunk rev5144

Post by Gimi »

cim wrote:
Gimi wrote:
Warnings when compiling r5144 on Windows.
Fixed in r5145, I hope.
Thank you cim, no warnings when compiling r5147.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Errors and warnings when building 1.77 trunk rev5144

Post by Switeck »

I guess I should restart my CTD tests with that version then. :lol:
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Errors and warnings when building 1.77 trunk rev5144

Post by cim »

Switeck wrote:
I guess I should restart my CTD tests with that version then. :lol:
Well, if you want. I've not found anything yet that might have been causing them, though, so it's unlikely to make a difference.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Errors and warnings when building 1.77 trunk rev5144

Post by Switeck »

cim wrote:
Switeck wrote:
I guess I should restart my CTD tests with that version then. :lol:
Well, if you want. I've not found anything yet that might have been causing them, though, so it's unlikely to make a difference.
I just tried the much quicker-to-test nightly build and of course it crashed too...sigh. I guess this groundhog saw his shadow and has to wait another 6 weeks.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Errors and warnings when building 1.77 trunk rev5160

Post by Gimi »

Getting errors when trying to build trunk r5160

Code: Select all

$ make debug=yes
Making all for objc_program oolite...
 Compiling file src/Core/legacy_random.c ...
In file included from src/Core/legacy_random.h:32,
                 from src/Core/legacy_random.c:30:
src/Core/OOFunctionAttributes.h:47:20: error: missing binary operator before token "("
make[3]: *** [obj.win.spk.dbg/oolite.obj/legacy_random.c.o] Error 1
make[2]: *** [internal-objc_program-all_] Error 2
make[1]: *** [oolite.all.objc-program.variables] Error 2
make: *** [internal-all] Error 2
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Errors and warnings when building 1.77 trunk rev5160

Post by JensAyton »

Should be fixed in r5162.
Post Reply