#nuvie@irc.freenode.net logs for 8 Mar 2011 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage


[01:09:45] <-- Dominus has left IRC (Quit: Leaving.)
[08:13:55] --> mariolone has joined #nuvie
[08:13:56] <-- mariolone has left #nuvie
[09:34:51] --> mariolone has joined #nuvie
[09:34:52] <-- mariolone has left #nuvie
[11:04:08] --> Dominus has joined #nuvie
[12:47:25] <-- Kirben has left IRC ()
[16:07:39] <Dominus> nuvie snapshot doesn't work on ppc 10.4
[16:08:23] <Dominus> dyld: Symbol not found: ___stack_chk_guard
[16:08:23] <Dominus> Referenced from: /Volumes/Nuvie-20110307/Nuvie.app/Contents/MacOS/./Nuvie
[16:08:23] <Dominus> Expected in: /usr/lib/libSystem.B.dylib
[16:23:45] <Dominus> and neither will it run on Leopard
[16:25:18] <Dominus> crashes with "unkwon required load command 0x80000022
[16:26:10] <Dominus> tested on a real 10.4 ppc machine and a VM running intel 10.5
[16:30:05] <Dominus> most likely you need to make sure in the project file to use 10.4 sdk and gcc 4.0
[16:36:14] <Dominus> hmm, tried that myself and the app still crashes on 10.5 :(
[16:38:41] <Dominus> he he, but works on 10.4
[16:39:02] <Dominus> but doesn't work on 10.6 :)
[16:40:04] <Dominus> sorry don't know how to debug this further, I'm not good at the arches with xcode. much better with makefiles since I can just lipo them together in the end :)
[20:22:11] --> Yuv422 has joined #nuvie
[20:30:00] <Yuv422> Dominus: That's a bit disappointing but expected. It was a long shot that it would be backwards compatible
[20:30:11] <Yuv422> not too sure how I can test this either
[20:30:18] <Yuv422> as I've only got one mac
[20:50:24] <Dominus> hi
[20:50:42] <Dominus> I'm not sure how to proceed on this
[20:51:02] <Yuv422> which version of SDL are you using?
[20:51:27] <Dominus> building against 10.6/.5 SDK and gcc 4.2 doesn't produce ppc built that is useable on a ppc machine
[20:51:45] <Dominus> I'm using the official 1.2.14 framework for the xcode built
[20:51:57] <Yuv422> right
[20:52:34] <Dominus> and it seems the i386 built doesn't work as well :(
[20:53:03] <Dominus> there were quite a bit more warnings in xcode when built against 10.4 SDK and gcc 4.0
[20:53:20] <Dominus> but at least that ran on 10.4 :)
[20:53:46] <Yuv422> I'm using an old version of SDLMain.m
[20:54:01] <Yuv422> maybe we need to update that to the one that ships with SDL 1.2.14
[20:54:14] <Dominus> oh, didn't think of that
[20:54:18] <Dominus> I can give it a try
[20:55:06] <Yuv422> cool
[21:02:52] <Dominus> still behaves badly
[21:03:49] <Dominus> when built with 10.4 sdk, the ppc code works well but the 32bit one not, when built otherwise it only runs on 10.6
[21:04:05] <Yuv422> hmm
[21:06:21] <Dominus> it's as if there is some 32bit code code that only builds and runs correctly on 10.6 SDK and OS
[21:06:40] <Yuv422> hmm
[21:06:48] <Yuv422> maybe the sdl mixer code
[21:06:53] <Yuv422> the new code that is
[21:07:47] <Yuv422> doublebuffersdl-mixer
[21:08:38] <Dominus> built against 10.5 SDK makes it run on 10.6 but not on 10.5 :)
[21:08:49] <Yuv422> strange
[21:09:31] <Dominus> actually it doesn't sorry
[21:09:47] <Dominus> it runs fine on 10.6 when set to use rosetta :)
[21:11:19] <Dominus> some xml error when it crashes on 10.6, similar to the error on 10.5
[21:11:20] <Dominus> http://pastebin.com/2YhaFv7J
[21:12:05] <Yuv422> strange
[21:12:15] <Yuv422> can you see from the console which config file it was loading?
[21:13:56] <Dominus> ah,seems there it crashes
[21:14:07] <Dominus> Loading Config from '/Users/Dominus/.nuvierc': Failed.
[21:14:07] <Dominus> Failed to load config from '/Users/Dominus/.nuvierc'.
[21:14:07] <Dominus> Loading Config from '/Users/Dominus/Library/Preferences/Nuvie Preferences': Segmentation fault
[21:18:29] <Yuv422> strange
[21:19:56] <Yuv422> looks like it doesn't like parsing a number
[21:20:20] <Yuv422> could you try running it in gdb
[21:21:06] <Yuv422> maybe a define macro is trashing something in these builds
[21:24:36] <Dominus> one moment, need to build it again
[21:28:39] <Dominus> http://pastebin.com/PGj1WUug
[21:34:42] <Yuv422> it's a bit strange it's saying stl_vector.h:610
[21:43:11] <Dominus> it's /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/stl_vector.h
[21:44:41] <Yuv422> yeah and there's only one push back in that xmlparse function
[21:45:10] <Yuv422> but I guess memory might be overwritten somewhere else and it is manifesting itself in the config parser
[21:45:34] <Yuv422> I've got to go now
[21:45:42] <Yuv422> I'll have a think about it
[21:46:57] <Dominus> ok, I don't quite get xcode there, why can't it just make each arch with each sdk... ?
[21:47:12] <Yuv422> yeah
[21:47:47] <Yuv422> I guess they only really care about the current version/arch
[21:50:17] <Yuv422> cya
[21:50:18] <-- Yuv422 has left IRC (Quit: Yuv422)
[22:11:49] * Dominus facepalms
[22:12:43] <Dominus> Mac OS X Deployment Target
[22:13:10] <Dominus> "Code will load on this and later versions of Mac OS X"
[22:13:59] <Dominus> as the xcode project file is set to SDK 10.6 and gcc 4.2 and the deployment target is set to "compiler default"...
[22:14:13] <Dominus> yup, then it can only run on system 10.6 and later :)
[22:14:33] <Dominus> deployment target needs to be "Mac OS X 10.4"
[22:15:06] <Dominus> nuvie compiled with that as the only change to the project file runs fine on 10.4
[22:15:22] <Dominus> but it has problems on 10.5 with finding the config for some reason :(
[22:15:36] <Dominus> but so far 2 out of three working :)
[22:18:51] --> Kirben has joined #nuvie
[22:25:31] <Dominus> gdb and bt on 10.5 http://pastebin.com/6FLjdAfv
[22:32:23] <Dominus> yuv422, if you set SDK to 10.5 and deployment target to 10.4, the build works on all three (10.4, 10.5, 10.6)
[22:45:20] <Dominus> and it also works fine on 10.7 (also in a VM :))
[22:45:38] <Dominus> problem solved :)
[23:45:22] <-- Dominus has left IRC (Quit: Leaving.)