I compiled as intructed in the FAQ, but when i start the game to test i get a big list of errors. I'm using OSX snow leopard (10.6.2). Can anyone help me out a bit with the following messages, because for me this is a bit out of my league.
Code:
macbook:0.1 user$ sudo spring Password: using default configuration source "/Users/user/.springrc" [CMyMath::Init] CPU SSE mask: 126, flags: SSE 1.0: 1, SSE 2.0: 1 SSE 3.0: 1, SSSE 3.0: 1 SSE 4.1: 1, SSE 4.2: 0 SSE 4.0A: 0, SSE 5.0A: 0 using streflop SSE FP-math mode, CPU supports SSE instructions OS: Mac OS X OS: 64bit native mode Could not create directory /usr/local/bin/spring: File exists LogOutput initialized. Spring 0.81.2.0 Build date/time: Mar 5 2010 23:21:36 Available log subsystems: Sound, VFS-detail, VFS, ArchiveScanner, unit, CollisionVolume, mapinfo Enabled log subsystems: Sound, Enable or disable log subsystems using the LogSubsystems configuration key or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated). Using read-write data directory: /Users/user/.spring/ Using read-only data directory: /usr/local/share/games/spring/ Assertion failed: (writedir && writedir->writable), function GetWriteDir, file /Users/user/Desktop/spring_0.81.2/rts/System/FileSystem/FileSystemHandler.cpp, line 109. Aborted (SIGABRT) in spring 0.81.2.0 Stacktrace: 0 spring 0x0000000100625acd _ZN12CrashHandler12HandleSignalEi + 944 # NOTE: invalid stack-trace line -> not translating 1 libSystem.B.dylib 0x00007fff8533ceaa _sigtramp + 26 # NOTE: invalid stack-trace line -> not translating 2 libSystem.B.dylib 0x00007fff852e1bea tiny_malloc_from_free_list + 1196 # NOTE: invalid stack-trace line -> not translating 3 libSystem.B.dylib 0x00007fff853b8e74 __pthread_markcancel + 0 # NOTE: invalid stack-trace line -> not translating 4 spring 0x0000000100660133 _ZNK17FileSystemHandler11GetWriteDirEv + 101 # NOTE: invalid stack-trace line -> not translating 5 spring 0x0000000100643f29 _ZN15CArchiveScannerC1Ev + 171 # NOTE: invalid stack-trace line -> not translating 6 spring 0x000000010066131f _ZN17FileSystemHandler10InitializeEb + 133 # NOTE: invalid stack-trace line -> not translating 7 spring 0x0000000100602a70 _ZN9SpringApp10InitializeEv + 260 # NOTE: invalid stack-trace line -> not translating 8 spring 0x00000001006030e7 _ZN9SpringApp3RunEiPPc + 103 # NOTE: invalid stack-trace line -> not translating 9 spring 0x00000001005efcd7 _Z3RuniPPc + 58 # NOTE: invalid stack-trace line -> not translating 10 spring 0x00000001005f0079 SDL_main + 27 # NOTE: invalid stack-trace line -> not translating 11 spring 0x000000010070ba90 -[SDLMain applicationDidFinishLaunching:] + 48 12 Foundation 0x00007fff86dee85a _nsnote_callback + 167 # NOTE: invalid stack-trace line -> not translating 13 CoreFoundation 0x00007fff8207fe3a __CFXNotificationPost + 954 # NOTE: invalid stack-trace line -> not translating 14 CoreFoundation 0x00007fff8206c3e8 _CFXNotificationPostNotification + 200 # NOTE: invalid stack-trace line -> not translating 15 Foundation 0x00007fff86de57c4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101 16 AppKit 0x00007fff86127772 -[NSApplication _postDidFinishNotification] + 100 17 AppKit 0x00007fff861276a7 -[NSApplication _sendFinishLaunchingNotification] + 66 18 AppKit 0x00007fff861f2645 -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 219 19 AppKit 0x00007fff861f22c1 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 77 20 Foundation 0x00007fff86e1d156 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 360 21 Foundation 0x00007fff86e1cf86 _NSAppleEventManagerGenericHandler + 114 # NOTE: invalid stack-trace line -> not translating 22 AE 0x00007fff88412292 _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 162 # NOTE: invalid stack-trace line -> not translating 23 AE 0x00007fff8841218b _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 32 # NOTE: invalid stack-trace line -> not translating 24 AE 0x00007fff88412095 aeProcessAppleEvent + 210 # NOTE: invalid stack-trace line -> not translating 25 HIToolbox 0x00007fff829a5879 AEProcessAppleEvent + 48 # NOTE: invalid stack-trace line -> not translating 26 AppKit 0x00007fff860f73d5 _DPSNextEvent + 1191 # NOTE: invalid stack-trace line -> not translating 27 AppKit 0x00007fff860f6b41 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155 28 AppKit 0x00007fff860bc747 -[NSApplication run] + 395 29 spring 0x000000010070c0e3 main + 1299 # NOTE: invalid stack-trace line -> not translating 30 spring 0x00000001000483c4 start + 52 # NOTE: invalid stack-trace line -> not translating 31 ??? 0x0000000000000001 0x0 + 1 # NOTE: invalid stack-trace line -> not translating Translated Stacktrace: sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found Warning: locale not supported by Xlib, locale set to C
I did not compile the lobby yet, as the instructions told me to testrun spring first before continuing.
not about the topic at hand/no help: doh! OS X does not have addr2line installed by default, as it looks like. how will we best work around this? it would be bad if we had to tell every user on OS X, when they had a crash and send infolog,txt, to install addr2line and try reproducing.
I'm having the exact same issue here (on 10.6.3 though). AFAIK it looks like the entire set of errors spawns from this one line :
Code:
Could not create directory /usr/local/bin/spring: File exists
which yields
Code:
Assertion failed: (writedir && writedir->writable), function GetWriteDir, file /Users/user/Desktop/spring_0.81.2/rts/System/FileSystem/FileSystemHandler.cpp, line 109.
(the rest having only little importance I'm afraid)
The issue thus seems that the spring executable attempts to mkdir a folder that has the exact same path as the executable, hence the error.
Hoping it was just a small mis-coding in the path construction, I tried to rename the executable to any other name (e.g. "spring.bin"). Unfortunately I end up with the exact same error, i.e. Spring tries to mkdir an eponym folder ("spring.bin" in my example case).
I'm starting to have a look into the problematic file (FileSystemHandler.cpp:109) and see who I can walk around this...
If any one has had similar issues or know of a clean solution, feel free to post around...
PS: the curse shall end... one day... eventually...
ok, I didn't have time to look into the details on what has changed between the latest tarball and the repo, but if you compile directly from the repo (through a git clone), it should both compile and run correctly.
will compile an updated install tutorial sometime soon
we're getting to it !!
Attachments:
File comment: Spring @ Mac OS Lives !! build-daftalx.jpg [526.23 KiB]
Downloaded 2 times
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum