Jump to content

Problems with 0. a .d and Arch Linux


Recommended Posts

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


FCollada/FUtils/FUDebug.cpp
FCollada/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.cpp
FCollada/FUtils/FUStringConversion.cpp
FCollada/FUtils/FUSynchronizableObject.cpp
FCollada/FUtils/FUThread.cpp
In 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


Collada/FCDocument/FCDGeometryInstance.cpp
FCollada/FCDocument/FCDGeometryMesh.cpp
FCollada/FCDocument/FCDGeometryNURBSSurface.cpp
FCollada/FCDocument/FCDGeometryPolygons.cpp
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.cpp


FCollada/FUtils/FUDaeEnum.cpp
FCollada/FUtils/FUDateTime.cpp
FCollada/FUtils/FUDebug.cpp
FCollada/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.cpp
FCollada/FUtils/FUErrorLog.cpp
FCollada/FUtils/FUFile.cpp
FCollada/FUtils/FUFileManager.cpp
FCollada/FUtils/FULogFile.cpp
FCollada/FUtils/FUObject.cpp
FCollada/FUtils/FUObjectType.cpp
FCollada/FUtils/FUParameter.cpp
FCollada/FUtils/FUParameterizable.cpp
FCollada/FUtils/FUPluginManager.cpp
FCollada/FUtils/FUSemaphore.cpp
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.cpp
FCollada/FUtils/FUStringConversion.cpp
In 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 function
FCollada/FUtils/FUStringConversion.hpp:242: warning: 'p.FMVector4::z' may be used uninitialized in this function
FCollada/FUtils/FUStringConversion.hpp:242: warning: 'p.FMVector4::y' may be used uninitialized in this function
FCollada/FUtils/FUStringConversion.hpp:242: warning: 'p.FMVector4::x' may be used uninitialized in this function
FCollada/FUtils/FUSynchronizableObject.cpp
FCollada/FUtils/FUThread.cpp
In 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  

Link to comment
Share on other sites

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=13
vfs_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 _start

errno = 0 (?)
OS error = ?


(C)ontinue, (B)reak, Launch (D)ebugger, or (E)xit?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...