Ravenman Posted October 17, 2009 Report Share Posted October 17, 2009 Hi to everyone:I'm installing this game into one Arch Linux system and i'd taken some messages in console while I'd compiled and installed the 0. a. d game:FCollada/FCDocument/FCDGeometryPolygons.cpp: In member function 'int32 FCDGeometryPolygons::TestPolyType() const': FCollada/FCDocument/FCDGeometryPolygons.cpp:281: warning: statement has no effect FCollada/FCDocument/FCDGeometryPolygonsInput.cpp FCollada/FCDocument/FCDGeometryPolygonsTools.cpp FCollada/FCDocument/FCDGeometryPolygonsTools.cpp:908: warning: ignoring #pragma warning FCollada/FCDocument/FCDGeometryPolygonsTools.cpp:909: warning: ignoring #pragma warning FCollada/FCDocument/FCDGeometryPolygonsTools.cpp:910: warning: ignoring #pragma warning FCollada/FCDocument/FCDGeometryPolygonsTools.cpp:957: warning: ignoring #pragma warning FCollada/FCDocument/FCDGeometryPolygonsTools.cpp: In function 'void FCDGeometryPolygonsTools::RevertUniqueIndices(const FCDGeometryPolygonsInput&, FCDGeometryPolygonsInput&, const FCDGeometryIndexTranslationMap&)': FCollada/FCDocument/FCDGeometryPolygonsTools.cpp:1031: warning: statement has no effect FCollada/FCDocument/FCDGeometrySource.cppFCollada/FUtils/FUDebug.cppFCollada/FUtils/FUDebug.cpp: In static member function 'static void FUDebug::DebugOutV(uint8, const char*, uint32, const char*, __va_list_tag (&)[1])':FCollada/FUtils/FUDebug.cpp:73: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'uint32'FCollada/FUtils/FUDebug.cpp:73: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'uint32'In file included from FCollada/FUtils/FUSemaphore.cpp:10:FCollada/FUtils/FUSemaphore.h:36:2: warning: #warning "FUSemaphore: Semaphore not implemented for non Windows"FCollada/FUtils/FUStringBuilder.cppFCollada/FUtils/FUStringConversion.cppFCollada/FUtils/FUSynchronizableObject.cppFCollada/FUtils/FUThread.cppIn file included from FCollada/FUtils/FUThread.cpp:10:FCollada/FUtils/FUThread.h:30:2: warning: #warning "Threads not yet implemented for non Windows."FCollada/FUtils/FUTracker.cppCollada/FCDocument/FCDGeometryInstance.cppFCollada/FCDocument/FCDGeometryMesh.cppFCollada/FCDocument/FCDGeometryNURBSSurface.cppFCollada/FCDocument/FCDGeometryPolygons.cppFCollada/FCDocument/FCDGeometryPolygons.cpp: In member function 'int32 FCDGeometryPolygons::TestPolyType() const':FCollada/FCDocument/FCDGeometryPolygons.cpp:281: warning: statement has no effectFCollada/FCDocument/FCDGeometryPolygonsInput.cppFCollada/FCDocument/FCDGeometryPolygonsTools.cppFCollada/FCDocument/FCDGeometryPolygonsTools.cpp:908: warning: ignoring #pragma warningFCollada/FCDocument/FCDGeometryPolygonsTools.cpp:909: warning: ignoring #pragma warningFCollada/FCDocument/FCDGeometryPolygonsTools.cpp:910: warning: ignoring #pragma warningFCollada/FCDocument/FCDGeometryPolygonsTools.cpp:957: warning: ignoring #pragma warningFCollada/FCDocument/FCDGeometryPolygonsTools.cpp: In function 'void FCDGeometryPolygonsTools::RevertUniqueIndices(const FCDGeometryPolygonsInput&, FCDGeometryPolygonsInput&, const FCDGeometryIndexTranslationMap&)':FCollada/FCDocument/FCDGeometryPolygonsTools.cpp:1031: warning: statement has no effectFCollada/FCDocument/FCDGeometrySource.cppFCollada/FUtils/FUDaeEnum.cppFCollada/FUtils/FUDateTime.cppFCollada/FUtils/FUDebug.cppFCollada/FUtils/FUDebug.cpp: In static member function 'static void FUDebug::DebugOutV(uint8, const char*, uint32, const char*, __va_list_tag (&)[1])':FCollada/FUtils/FUDebug.cpp:73: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'uint32'FCollada/FUtils/FUDebug.cpp:73: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'uint32'FCollada/FUtils/FUError.cppFCollada/FUtils/FUErrorLog.cppFCollada/FUtils/FUFile.cppFCollada/FUtils/FUFileManager.cppFCollada/FUtils/FULogFile.cppFCollada/FUtils/FUObject.cppFCollada/FUtils/FUObjectType.cppFCollada/FUtils/FUParameter.cppFCollada/FUtils/FUParameterizable.cppFCollada/FUtils/FUPluginManager.cppFCollada/FUtils/FUSemaphore.cppIn file included from FCollada/FUtils/FUSemaphore.cpp:10:FCollada/FUtils/FUSemaphore.h:36:2: warning: #warning "FUSemaphore: Semaphore not implemented for non Windows"FCollada/FUtils/FUStringBuilder.cppFCollada/FUtils/FUStringConversion.cppIn file included from FCollada/FUtils/FUStringConversion.cpp:18:FCollada/FUtils/FUStringConversion.hpp: In static member function 'static FMVector4 FUStringConversion::ToVector4(const CH**) [with CH = char]':FCollada/FUtils/FUStringConversion.hpp:242: warning: 'p.FMVector4::w' may be used uninitialized in this functionFCollada/FUtils/FUStringConversion.hpp:242: warning: 'p.FMVector4::z' may be used uninitialized in this functionFCollada/FUtils/FUStringConversion.hpp:242: warning: 'p.FMVector4::y' may be used uninitialized in this functionFCollada/FUtils/FUStringConversion.hpp:242: warning: 'p.FMVector4::x' may be used uninitialized in this functionFCollada/FUtils/FUSynchronizableObject.cppFCollada/FUtils/FUThread.cppIn file included from FCollada/FUtils/FUThread.cpp:10:FCollada/FUtils/FUThread.h:30:2: warning: #warning "Threads not yet implemented for non Windows."FCollada/FUtils/FUTracker.cpp/usr/include/string.h:397: note: expected 'const char *' but argument is of type 'CHAR *' editline.c:1051: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness editline.c:1051: note: expected 'const char *' but argument is of type 'CHAR *' editline.c:1051: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness editline.c:1051: note: expected 'const char *' but argument is of type 'CHAR *' editline.c:1051: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness /usr/include/string.h:397: note: expected 'const char *' but argument is of type 'CHAR *' editline.c:1051: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness editline.c:1051: note: expected 'const char *' but argument is of type 'CHAR *' editline.c:1051: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness editline.c:1051: note: expected 'const char *' but argument is of type 'CHAR *' e_asin.c: In function '__ieee754_asin': e_asin.c:115: warning: 't' may be used uninitialized in this function e_cosh.c: In function '__ieee754_cosh': e_cosh.c:123: warning: dereferencing type-punned pointer will break strict-aliasing rules e_cosh.c:125: warning: suggest parentheses around '&&' within '||' e_cosh.c:123: warning: dereferencing pointer 'one.4' does break strict-aliasing rules e_cosh.c:123: note: initialized from here e_exp.c: In function '__ieee754_exp': e_exp.c:148: warning: 'hi' may be used uninitialized in this function e_exp.c:148: warning: 'lo' may be used uninitialized in this function e_exp.c:149: warning: 'k' may be used uninitialized in this function e_j0.c: In function 'pzero': e_j0.c:370: warning: 'p' may be used uninitialized in this function e_j0.c:370: warning: 'q' may be used uninitialized in this function e_j0.c: In function 'qzero': e_j0.c:507: warning: 'p' may be used uninitialized in this function e_j0.c:507: warning: 'q' may be used uninitialized in this function e_j1.c: In function 'pone': e_j1.c:368: warning: 'p' may be used uninitialized in this function e_j1.c:368: warning: 'q' may be used uninitialized in this function e_j1.c: In function 'qone': e_j1.c:506: warning: 'p' may be used uninitialized in this function e_j1.c:506: warning: 'q' may be used uninitialized in this function e_sinh.c: In function '__ieee754_sinh': e_sinh.c:113: warning: dereferencing type-punned pointer will break strict-aliasing rules e_sinh.c:114: warning: suggest parentheses around '&&' within '||' e_sinh.c:113: warning: dereferencing pointer 'one.3' does break strict-aliasing rules e_sinh.c:113: note: initialized from here s_expm1.c: In function 'fd_expm1': s_expm1.c:236: warning: suggest explicit braces to avoid ambiguous 'else' s_expm1.c:176: warning: 'c' may be used uninitialized in this function s_log1p.c: In function 'fd_log1p': s_log1p.c:200: warning: suggest explicit braces to avoid ambiguous 'else' s_log1p.c:144: warning: 'c' may be used uninitialized in this function jsapi.c: In function 'JS_ConvertArgumentsVA': jsapi.c:263: warning: passing argument 5 of 'TryArgumentFormatter' from incompatible pointer type jsapi.c:132: note: expected 'struct __va_list_tag (*)[1]' but argument is of type 'struct __va_list_tag **' jsapi.c: In function 'JS_PushArgumentsVA': jsapi.c:366: warning: passing argument 5 of 'TryArgumentFormatter' from incompatible pointer type jsapi.c:132: note: expected 'struct __va_list_tag (*)[1]' but argument is of type 'struct __va_list_tag **' jsdtoa.c: In function 'JS_strtod': jsdtoa.c:1234: warning: 'rv0' may be used uninitialized in this function jsinterp.c: In function 'js_Interpret': jsinterp.c:1743: warning: 'op' may be used uninitialized in this function jsinterp.c:1744: warning: 'cs' may be used uninitialized in this function jsinterp.c:1761: warning: 'tracefp' may be used uninitialized in this function jsstr.c: In function 'str_split': jsstr.c:1910: warning: 'tmp.length' may be used uninitialized in this function ==== Building AtlasScript ==== ScriptInterface.cpp Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted October 17, 2009 Report Share Posted October 17, 2009 It looks like those are all just warnings (not errors) in third-party code (FCollada, SpiderMonkey), and probably harmless in practice, so I think it's fine to just ignore them for now Quote Link to comment Share on other sites More sharing options...
Ravenman Posted October 17, 2009 Author Report Share Posted October 17, 2009 It looks like those are all just warnings (not errors) in third-party code (FCollada, SpiderMonkey), and probably harmless in practice, so I think it's fine to just ignore them for now But when I'm launching the game, the console shows this:mkdir failed with errno=13vfs_lookup.cpp(81): Assertion failed: "0"udbg_bfd_init: loading symbols from /opt/0ad/system/pyrogenesis_dbg.debug.cpp(233): Unable to open crashlog.txt for writing (please ensure the log directory is writable)Unable to open crashlog.txt for writing (please ensure the log directory is writable)Location: debug.cpp:233 (debug_WriteCrashlog)Call stack:(0x009b859e) ldbg.cpp:101 debug_DumpStack(wchar_t*, unsigned long, void*, char const*)(0x00972739) debug.cpp:341 debug_BuildErrorMessage(wchar_t const*, char const*, int, char const*, void*, char const*, ErrorMessageMem*)(0x00972bdc) debug.cpp:499 debug_DisplayError(wchar_t const*, unsigned long, void*, char const*, char const*, int, char const*, unsigned char*)(0x009724e9) debug.cpp:234 debug_WriteCrashlog(wchar_t const*)(0x00972bec) debug.cpp:502 debug_DisplayError(wchar_t const*, unsigned long, void*, char const*, char const*, int, char const*, unsigned char*)(0x00972fd5) debug.cpp:578 debug_OnAssertionFailure(char const*, unsigned char*, char const*, int, char const*)(0x009c5739) vfs_lookup.cpp:81 vfs_Lookup(boost::filesystem::basic_path<std::string, VfsPathTraits> const&, VfsDirectory*, VfsDirectory*&, VfsFile**, unsigned long)(0x0098efd6) vfs.cpp:48 VFS::Mount(boost::filesystem::basic_path<std::string, VfsPathTraits> const&, boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> const&, unsigned long, unsigned long)(0x0069c64b) GameSetup.cpp:553 InitVfs(0x0069db4b) GameSetup.cpp:862 Init(CmdLineArgs const&, int)(0x005d2909) main.cpp:395 RunGameOrAtlas(0x005d29c1) main.cpp:412 main(0xe949d9ed) /lib/libc.so.6:0 __libc_start_main(0x005d1c59) none:0 _starterrno = 0 (?)OS error = ?(C)ontinue, (B)reak, Launch (D)ebugger, or (E)xit? Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted October 17, 2009 Report Share Posted October 17, 2009 Sounds like some file permissions are wrong. If you're using the latest version of the code from SVN, I think it's trying to create the directory ~/.local/share/0ad/screenshots/ at the point where it's failing - is that location writable by the user you're running the game as? Quote Link to comment Share on other sites More sharing options...
Belisarivs Posted October 22, 2009 Report Share Posted October 22, 2009 It looks like those are all just warnings (not errors) in third-party code (FCollada, SpiderMonkey), and probably harmless in practice, so I think it's fine to just ignore them for now Ouch. Warnings reveal something is getting wrong and may shoot you badly to the leg. Developers of GemRB (OSS implementation of Infinity engine - BG, IWD, PST) use flag -Werror to treat all warnings as errors.Much cleaner approach. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.