Errors and warnings when building 1.77 trunk
Moderators: winston, another_commander, Getafix
Re: Errors and warnings when building 1.77 trunk rev5133
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.
In fact, neither of the two entirely separate compilers I use have a problem with it, even with warnings turned to maximum.
Re: Errors and warnings when building 1.77 trunk rev5133
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).
(Gold Medal Award, Zzap!64 May 1985).
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Errors and warnings when building 1.77 trunk rev5133
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.
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.
Re: Errors and warnings when building 1.77 trunk rev5133
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.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.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
(Gold Medal Award, Zzap!64 May 1985).
Re: Errors and warnings when building 1.77 trunk rev5140
Getting lots of warnings similar to these when compiling r5140 on Windows.
For the whole set of warnings see this text file: Compile warnings r5140.txt
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.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
(Gold Medal Award, Zzap!64 May 1985).
- JensAyton
- 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
Fixed.Gimi wrote:Getting lots of warnings similar to these when compiling r5140 on Windows.
E-mail: [email protected]
- JensAyton
- 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
I could probably think of quite a long list. :-)another_commander wrote:I do not think that there is any reason for updating what we have at this moment.
E-mail: [email protected]
Re: Errors and warnings when building 1.77 trunk rev5144
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).
(Gold Medal Award, Zzap!64 May 1985).
Re: Errors and warnings when building 1.77 trunk rev5144
Fixed in r5145, I hope.Gimi wrote:Warnings when compiling r5144 on Windows.
Re: Errors and warnings when building 1.77 trunk rev5144
Thank you cim, no warnings when compiling r5147.cim wrote:Fixed in r5145, I hope.Gimi wrote:Warnings when compiling r5144 on Windows.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
(Gold Medal Award, Zzap!64 May 1985).
Re: Errors and warnings when building 1.77 trunk rev5144
I guess I should restart my CTD tests with that version then.
Re: Errors and warnings when building 1.77 trunk rev5144
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 wrote:I guess I should restart my CTD tests with that version then.
Re: Errors and warnings when building 1.77 trunk rev5144
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.cim wrote: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 wrote:I guess I should restart my CTD tests with that version then.
Re: Errors and warnings when building 1.77 trunk rev5160
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).
(Gold Medal Award, Zzap!64 May 1985).
- JensAyton
- 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
Should be fixed in r5162.
E-mail: [email protected]