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
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

Post by Gimi »

Compile error when building r5267.

Code: Select all

 Compiling file src/Core/OXPVerifier/OOPListSchemaVerifier.m ...
src/Core/OXPVerifier/OOPListSchemaVerifier.m: In function 'Verify_String':
src/Core/OXPVerifier/OOPListSchemaVerifier.m:884: error: 'NSUIntegerMax' undeclared (first use in this function)
src/Core/OXPVerifier/OOPListSchemaVerifier.m:884: error: (Each undeclared identifier is reported only once
src/Core/OXPVerifier/OOPListSchemaVerifier.m:884: error: for each function it appears in.)
src/Core/OXPVerifier/OOPListSchemaVerifier.m: In function 'Verify_Array':
src/Core/OXPVerifier/OOPListSchemaVerifier.m:915: error: 'NSUIntegerMax' undeclared (first use in this function)
src/Core/OXPVerifier/OOPListSchemaVerifier.m: In function 'Verify_Dictionary':
src/Core/OXPVerifier/OOPListSchemaVerifier.m:977: error: 'NSUIntegerMax' undeclared (first use in this function)
make[3]: *** [obj.win.spk/oolite.obj/OOPListSchemaVerifier.m.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
Same error when doing a debug build.
"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

Post by JensAyton »

You’re whole minutes out of date. :-p
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

Post by Gimi »

Ahruman wrote:
You’re whole minutes out of date. :-p
:D
Sorry, I'll endeavour to keep up in the future. :roll:
Compiles fine now.
"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

Post by Gimi »

Error when building r5274

Code: Select all

$ make debug=no
Making all for objc_program oolite...
 Compiling file src/Core/Debug/OODebugMonitor.m ...
 Compiling file src/Core/Debug/OODebugSupport.m ...
 Compiling file src/Core/Debug/OODebugTCPConsoleClient.m ...
 Compiling file src/Core/Debug/OOJSConsole.m ...
 Compiling file src/Core/OOProfilingStopwatch.m ...
 Compiling file src/Core/Debug/OOTCPStreamDecoderAbstractionLayer.m ...
 Compiling file src/Core/Entities/DockEntity.m ...
In file included from src/Core/HeadUpDisplay.h:32,
                 from src/Core/Entities/DockEntity.m:32:
src/SDL/MyOpenGLView.h:249: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:250: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:251: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:254: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:255: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:256: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:259: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:260: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:261: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:264: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:265: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:266: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:270: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:271: error: expected ')' before 'OOUInteger'
src/SDL/MyOpenGLView.h:272: error: expected ')' before 'OOUInteger'
make[3]: *** [obj.win.spk/oolite.obj/DockEntity.m.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

Post by JensAyton »

*annoyed grunt*! Try r5275.
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

Post by Gimi »

Ahruman wrote:
*annoyed grunt*! Try r5275.
:oops:
Sorry, I just report them as I find them.
Compiles fine now. Thanks.
"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

Post by JensAyton »

The (annoyed grunt) was directed at myself. :-)
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Errors and warnings when building 1.77 trunk

Post by Wildeblood »

Gimi wrote:
Ahruman wrote:
*annoyed grunt*! Try r5275.
:oops:
Sorry, I just report them as I find them.
Compiles fine now. Thanks.
Not here, on Win7. This is what I've been getting all week:

Code: Select all

$ make debug=no
Making all for objc_program oolite...
 Compiling file src/Core/Debug/OODebugMonitor.m ...
In file included from src/Core/Universe.h:33,
                 from src/Core/Scripting/OOJavaScriptEngine.h:27,
                 from src/Core/Scripting/OOJSScript.h:27,
                 from src/Core/Debug/OODebugMonitor.m:40:
src/Core/OOTypes.h:206: error: expected identifier before '<<' token
make[3]: *** [obj.win.spk/oolite.obj/OODebugMonitor.m.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
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

Post by JensAyton »

Wildeblood wrote:
src/Core/OOTypes.h:206: error: expected identifier before '<<' token
You have a merge conflict. At some point, you modified that file, then updated it and got conflicting changes (and a warning from the Subversion client). The easiest fix is to throw out the file and update again.
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

Post by Gimi »

Getting multiple warnings when building r5372. (r5371 was fine)

Code: Select all

$ make debug=no
Making all for objc_program oolite...
 Compiling file src/Core/Debug/OODebugMonitor.m ...
src/Core/OOTriangle.h:79: warning: 'OOTriangleIsDegenerate' defined but not used
 Compiling file src/Core/Debug/OODebugSupport.m ...

<snip (there are loads of them, all about 'OOTriangleIsDegenerate' defined but not used) >

 Linking objc_program oolite ...
/OOgstep/System/Library/Makefiles/mkinstalldirs oolite.app
/OOgstep/System/Library/Makefiles/mkinstalldirs oolite.app/Resources
cp -rf -u Resources oolite.app
cp -rf -u Schemata oolite.app/Resources
cp -rf -u deps/Cross-platform-deps/espeak-data oolite.app/Resources
cp -rf -u src/Cocoa/Info-Oolite.plist oolite.app/Resources/Info-gnustep.plist
cp -rf -u obj.win.spk/oolite.exe oolite.app/oolite.exe
strip oolite.app/oolite.exe
cp -rf -u deps/Windows-x86-deps/DLLs/*.dll oolite.app
rm -f oolite.app/js32ECMAv5dbg.dll
"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

Post by Gimi »

r5373 solved the warnings.
Thanks Ahruman.
Ahruman wrote:
Placate gcc, which apparently can't understand its own attributes.
Your log comments are quite entertaining.
"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

Post by Gimi »

Hmm

Compile errors when building r5454

Code: Select all

Making all for objc_program oolite...

<snip>

 Compiling file src/Core/OOOpenGLStateManager.m ...
src/Core/OOOpenGLStateManager.m: In function 'OOSetOpenGLState_':
src/Core/OOOpenGLStateManager.m:248: warning: implicit declaration of function 'OOGLNoteCurrentFunction'
 Compiling file src/Core/OOOpenGLExtensionManager.m ...

<snip>

 Linking objc_program oolite ...
./obj.win.spk/oolite.obj/OOOpenGLStateManager.m.o: In function `OOVerifyOpenGLState_':
d:\myoolite\trunk/src/Core/OOOpenGLStateManager.m:265: undefined reference to `OOGLNoteCurrentFunction'
./obj.win.spk/oolite.obj/OOOpenGLStateManager.m.o: In function `OOSetOpenGLState_':
d:\myoolite\trunk/src/Core/OOOpenGLStateManager.m:248: undefined reference to `OOGLNoteCurrentFunction'
collect2: ld returned 1 exit status
make[3]: *** [obj.win.spk/oolite.exe] 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
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: Errors and warnings when building 1.77 trunk

Post by Thargoid »

You just beat me to it - although I was going to report on 5453.

Now svn up'd to 5454 and build underway - presumably due to the same barf as your quoting.
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

Post by Gimi »

I suspect that they are caused by incompatibilities between different compilers. I also suspect it ticks Ahruman off no end.
"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

Post by Gimi »

r5455 seems to have sorted it out.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Post Reply