Errors and warnings when building 1.79 Master

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

Moderators: winston, another_commander, Getafix

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

Errors and warnings when building 1.79 Master

Post by Gimi »

Got the following warnings when building master using AC's building the easy way compiler package.

Code: Select all

 Compiling file src/Core/GuiDisplayGen.m ...
src/Core/GuiDisplayGen.m: In function '-[GuiDisplayGen drawGalaxyChart::::]':
src/Core/GuiDisplayGen.m:1995:3: warning: 'b' may be used uninitialized in this
function [-Wmaybe-uninitialized]
src/Core/GuiDisplayGen.m:1995:3: warning: 'g' may be used uninitialized in this
function [-Wmaybe-uninitialized]
src/Core/GuiDisplayGen.m:1995:3: warning: 'r' may be used uninitialized in this
function [-Wmaybe-uninitialized]
 Compiling file src/Core/HeadUpDisplay.m ...
Latest commit to the branch was: Parcel contracts tweak, 27bc2fe by cim.
How do you magicians want us to report Oolite version/build when we have compiled and encountered errors or warning?
Time-stamp, commit hex number?????
"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.79 Master

Post by cim »

Commit hex is probably most reliable, since that tells us for free when you last updated and which branch you're on.

Thanks for the report - should be fixed in 2e6beea, I think.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: Errors and warnings when building 1.79 Master

Post by Thargoid »

I just built a release snapshot exe fine using the same method, although the build did get somewhat confused at the end when it tried to build debug.oxp due to the recent incorporation:

Code: Select all

<snipped out the compiling and copying bits>
strip oolite.app/oolite.exe
cp -rf -u deps/Windows-x86-deps/DLLs/*.dll oolite.app
rm -f oolite.app/js32ECMAv5dbg.dll
make[1]: Leaving directory `/c/oolite/trunk'
cd DebugOXP && make && cd .. && mkdir -p AddOns && rm -rf AddOns/Basic-debug.oxp
 && mv -f DebugOXP/Basic-debug.oxp AddOns/
make[1]: Entering directory `/c/oolite/trunk/DebugOXP'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/c/oolite/trunk/DebugOXP'
make: *** [release-snapshot] Error 2
I guess maybe the debug make file need a bit of tweaking or even removal?[/color]
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.79 Master

Post by cim »

Thargoid wrote:
I just built a release snapshot exe fine using the same method, although the build did get somewhat confused at the end when it tried to build debug.oxp due to the recent incorporation:
Should be fixed in d2498d5
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: Errors and warnings when building 1.79 Master

Post by Thargoid »

Yup, the build I did last night was all OK (did a clean build just in case).
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.79 Master

Post by Gimi »

Following warnings when compiling commit: a9e919c alert_condition setting for HUD legends/dials.
Compiled using AC's latest build environment, 64bit.

Code: Select all

 Compiling file src/Core/GuiDisplayGen.m ...
src/Core/GuiDisplayGen.m: In function '-[GuiDisplayGen drawGalaxyChart::::]':
src/Core/GuiDisplayGen.m:1997:3: warning: 'b' may be used uninitialized in this
function [-Wmaybe-uninitialized]
src/Core/GuiDisplayGen.m:1997:3: warning: 'g' may be used uninitialized in this
function [-Wmaybe-uninitialized]
src/Core/GuiDisplayGen.m:1997:3: warning: 'r' may be used uninitialized in this
function [-Wmaybe-uninitialized]
 Compiling file src/Core/HeadUpDisplay.m ...
"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.79 Master

Post by cim »

I was sure I'd already fixed that one. Fixed properly this time - hopefully - in b60c557
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.79 Master

Post by Gimi »

Got this when building Master commit: b9606b5

Code: Select all

 Compiling file src/Core/OOALSoundDecoder.m ...
In file included from src/Core/OOALSoundDecoder.m:31:0:
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:82:21: war
ning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable]
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:89:21: war
ning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable]
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:96:21: war
ning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable]
Is there any GIT command I can issue to get last commit on my selected branch?
"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.79 Master

Post by cim »

Gimi wrote:
Is there any GIT command I can issue to get last commit on my selected branch?
git log -n1 will get you the most recent one only.

Those warnings are in a 3rd-party library and harmless.
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.79 Master

Post by Gimi »

Got the following when compiling: commit 3fcd4f996ec4a6d94445e5cbb7f0cefee4f311f4

Code: Select all

 Compiling file src/Core/Materials/OOCombinedEmissionMapGenerator.m ...
src/Core/Materials/OOCombinedEmissionMapGenerator.m: In function '-[OOCombinedEmissionMapGenerator initWithEmissionMapSpec:emissionColor:diffuseMap:diffuseColor
:illuminationMapSpec:illuminationColor:isCombinedMap:optionsSpecifier:]':
src/Core/Materials/OOCombinedEmissionMapGenerator.m:153:3: warning: 'OOCombinedEmissionMapGenerator' may not respond to '-constructCacheKey' [enabled by default]
src/Core/Materials/OOCombinedEmissionMapGenerator.m:153:3: warning: (Messages without a matching method signature [enabled by default]
src/Core/Materials/OOCombinedEmissionMapGenerator.m:153:3: warning: will be assumed to return 'id' and accept [enabled by default]
src/Core/Materials/OOCombinedEmissionMapGenerator.m:153:3: warning: '...' as arguments.) [enabled by default]
 Compiling file src/Core/Materials/OOPixMapTextureLoader.m ...
 Compiling file src/Core/OOCrosshairs.m ...
"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.79 Master

Post by JensAyton »

Fixed.
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.79 Master

Post by Gimi »

JensAyton wrote:
Fixed.
Impressive as always. 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
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.79 Master

Post by Gimi »

Some more warnings when compiling master commit: 7f5e17be823765bd1760b9ab2cde96f904a506e6

Code: Select all

 Compiling file src/Core/OOALSoundDecoder.m ...
In file included from src/Core/OOALSoundDecoder.m:31:0:
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:82:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable]
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:89:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable]
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:96:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable]
 Compiling file src/Core/OOALBufferedSound.m ...
"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: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Errors and warnings when building 1.79 Master

Post by another_commander »

Gimi wrote:
Some more warnings when compiling master commit: 7f5e17be823765bd1760b9ab2cde96f904a506e6

Code: Select all

 Compiling file src/Core/OOALSoundDecoder.m ...
In file included from src/Core/OOALSoundDecoder.m:31:0:
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:82:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable]
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:89:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable]
D:/oolitedev/Msys_x2/1.0/mingw/../devlibs/include/vorbis/vorbisfile.h:96:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable]
 Compiling file src/Core/OOALBufferedSound.m ...
This is the same set of warnings as in your post of 17th November, right?

The warnings are coming from the libvorbis library. We would need to edit the libvorbis headers to remove them. Since they are totally harmless, I don't think we need to worry too much about it and generally we don't mess with third party libraries unless absolutely required.
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.79 Master

Post by Gimi »

another_commander wrote:
This is the same set of warnings as in your post of 17th November, right?

The warnings are coming from the libvorbis library. We would need to edit the libvorbis headers to remove them. Since they are totally harmless, I don't think we need to worry too much about it and generally we don't mess with third party libraries unless absolutely required.
Sorry AC. I jumped too quickly.
I'll try to backtrack and check what has been reported next time. These reports are quite incomprehensible to me, so I live by the rule, if in doubt, report it. I will accept a slap on the wrist for meddling too much though. :D
"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