Re: [Widelands-public] build error on amd64, again
Status: Beta
Brought to you by:
sirver
From: Jari H. <jar...@ik...> - 2008-04-26 20:40:19
|
Hi! I noticed the same error with my amd64 /ubuntu hardy. Problem came in rev 3188. Following change compiles the code. The complained function looks like it could use format attribute checking as it's using vsnprintf or vsprintf, but the file is part of the c++-library. So maybe it's best to keep that check commented until it works on 64 bit build. Index: build/scons-tools/scons_configure.py =================================================================== --- build/scons-tools/scons_configure.py (revision 3189) +++ build/scons-tools/scons_configure.py (working copy) @@ -419,7 +419,7 @@ conf.CheckCompilerFlag('-Winvalid-pch', env) conf.CheckCompilerFlag('-Werror=invalid-pch', env) conf.CheckCompilerFlag('-Wmissing-format-attribute', env) - conf.CheckCompilerFlag('-Werror=missing-format-attribute', env) + #conf.CheckCompilerFlag('-Werror=missing-format-attribute', env) conf.CheckCompilerFlag('-Wmissing-include-dirs', env) conf.CheckCompilerFlag('-Werror=missing-include-dirs', env) conf.CheckCompilerFlag('-Wmissing-noreturn', env) Cheers, -Jari 2008/4/25 Lars Schimmer <l.s...@cg...>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi! > > I snacked out SVN version svn3189 and tried to build, error pretty soon: > > > g++ -o build/native-debug/building.o -c -DNOPARACHUTE -DDEBUG -Wall > - -Wcast-align -Werror=cast-align -Wcast-qual -Werror=cast-qual > - -Wdisabled-optimization -Wextra -Werror=extra -Wfloat-equal > - -Winvalid-pch -Werror=invalid-pch -Wmissing-format-attribute > - -Werror=missing-format-attribute -Wmissing-include-dirs > - -Werror=missing-include-dirs -Wmissing-noreturn -Werror=missing-noreturn > - -Wcomment -Werror=comment -Wnormalized=nfc -Wold-style-cast > - -Werror=parentheses -Wpointer-arith -Werror=pointer-arith > - -Werror=sequence-point -Wshadow -Werror=shadow -Wstrict-aliasing=2 > - -Werror=switch -Wwrite-strings -Werror=trigraphs > - -Wunsafe-loop-optimizations -Werror=unused-function -Werror=unused-label > - -Werror=unused-value -Werror=write-strings -fstack-protector-all > - -fbounds-check -pipe -O0 -funit-at-a-time -g -fmessage-length=0 > - -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -Isrc -Isrc/filesystem > - -Isrc/sound -Isrc/ui/ui_basic -Isrc/ui/ui_fs_menus -Isrc/editor > - -Isrc/editor/tools -Isrc/editor/ui_menus -Isrc/trigger -Isrc/events > src/building.cc > In file included from /usr/include/c++/4.2/iosfwd:45, > from /usr/include/c++/4.2/bits/stl_algobase.h:70, > from /usr/include/c++/4.2/bits/char_traits.h:46, > from /usr/include/c++/4.2/string:47, > from /usr/include/c++/4.2/stdexcept:44, > from src/filesystem/filesystem_exceptions.h:23, > from src/filesystem/filesystem.h:23, > from src/basic_fileread.h:23, > from src/widelands_fileread.h:23, > from src/cmd_queue.h:24, > from src/instances.h:23, > from src/animation.h:23, > from src/immovable.h:23, > from src/building.h:24, > from src/building.cc:20: > /usr/include/c++/4.2/x86_64-linux-gnu/bits/c++locale.h: In function 'int > std::__convert_from_v(__locale_struct* const&, char*, int, const char*, > ...)': > /usr/include/c++/4.2/x86_64-linux-gnu/bits/c++locale.h:94: error: > function might be possible candidate for 'printf' format attribute > /usr/include/c++/4.2/x86_64-linux-gnu/bits/c++locale.h:94: error: > function might be possible candidate for 'printf' format attribute > src/building.cc: At global scope: > src/building.cc:663: warning: unused parameter 'g' > scons: *** [build/native-debug/building.o] Error 1 > scons: building terminated because of errors. > > MfG, > Lars Schimmer > - -- > - ------------------------------------------------------------- > TU Graz, Institut für ComputerGraphik & WissensVisualisierung > Tel: +43 316 873-5405 E-Mail: l.s...@cg... > Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFIEadpmWhuE0qbFyMRAjw9AJ0YDMso4E+VA6mSiaB+iJQMz7oJmgCeIrZV > tsIE/FZN1KMiiclSMb5JVcA= > =4OiL > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Widelands-public mailing list > Wid...@li... > https://lists.sourceforge.net/lists/listinfo/widelands-public > |