Rockbox

Tasklist

FS#8906 - Simulator fails to launch under MacOS

Attached to Project: Rockbox
Opened by Phil Brownlee (ell1ps1s) - Saturday, 19 April 2008, 01:56 GMT
Last edited by Steve Bavin (pondlife) - Friday, 18 July 2008, 08:02 GMT
Task Type Bugs
Category Simulator
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Compiled simulator from r17646 under MacOS 10.4.11.
Compile completed successfully, but rockboxui fails to launch.
Displays Rockbox logo/version screen, then freezes, while still placing significant load on CPU.
Observed some warnings during the compilation of rockboxui, but nothing which stopped the process.

I'm happy to provide any further information needed to track this down.
This task depends upon

Closed by  Steve Bavin (pondlife)
Friday, 18 July 2008, 08:02 GMT
Reason for closing:  Not a Bug
Additional comments about closing:  Not a Rockbox bug, anyway...
Comment by Paul Louden (Llorean) - Saturday, 19 April 2008, 03:12 GMT
Personally, I'd recommend including the warnings, so we can get that question out of the way from the beginning.
Comment by Phil Brownlee (ell1ps1s) - Saturday, 19 April 2008, 04:12 GMT
Good point. Here they are:

LD rockboxui
/usr/bin/ld: warning multiple definitions of symbol _mktime
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(timefuncs.o) definition of _mktime in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(localtime.So) definition of _mktime
/usr/bin/ld: warning multiple definitions of symbol _memset
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(memset.o) definition of _memset in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(memset.So) definition of _memset
/usr/bin/ld: warning multiple definitions of symbol _semaphore_wait
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(kernel.o) definition of _semaphore_wait in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(semaphore.So) definition of _semaphore_wait
/usr/bin/ld: warning multiple definitions of symbol _memcpy
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(memcpy.o) definition of _memcpy in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(bcopy.So) definition of _memcpy
/usr/bin/ld: warning multiple definitions of symbol _memmove
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(memmove.o) definition of _memmove in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(bcopy.So) definition of _memmove
/usr/bin/ld: warning multiple definitions of symbol _strchr
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strchr.o) definition of _strchr in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strchr.So) definition of _strchr
/usr/bin/ld: warning multiple definitions of symbol _strcmp
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strcmp.o) definition of _strcmp in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strcmp.So) definition of _strcmp
/usr/bin/ld: warning multiple definitions of symbol _strlen
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strlen.o) definition of _strlen in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strlen.So) definition of _strlen
/usr/bin/ld: warning multiple definitions of symbol _memchr
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(memchr.o) definition of _memchr in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(memchr.So) definition of _memchr
/usr/bin/ld: warning multiple definitions of symbol _strcat
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strcat.o) definition of _strcat in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strcat.So) definition of _strcat
/usr/bin/ld: warning multiple definitions of symbol _strcpy
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strcpy.o) definition of _strcpy in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strcpy.So) definition of _strcpy
/usr/bin/ld: warning multiple definitions of symbol _strncmp
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strncmp.o) definition of _strncmp in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strncmp.So) definition of _strncmp
/usr/bin/ld: warning multiple definitions of symbol _strrchr
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strrchr.o) definition of _strrchr in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strrchr.So) definition of _strrchr
/usr/bin/ld: warning multiple definitions of symbol _strncpy
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strncpy.o) definition of _strncpy in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strncpy.So) definition of _strncpy
/usr/bin/ld: warning multiple definitions of symbol _memcmp
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(memcmp.o) definition of _memcmp in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(memcmp.So) definition of _memcmp
/usr/bin/ld: warning multiple definitions of symbol _strcasecmp
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strcasecmp.o) definition of _strcasecmp in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strcasecmp.So) definition of _strcasecmp
/usr/bin/ld: warning multiple definitions of symbol _strncasecmp
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strcasecmp.o) definition of _strncasecmp in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strcasecmp.So) definition of _strncasecmp
/usr/bin/ld: warning multiple definitions of symbol _qsort
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(qsort.o) definition of _qsort in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(qsort.So) definition of _qsort
/usr/bin/ld: warning multiple definitions of symbol _atoi
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(atoi.o) definition of _atoi in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(atoi.So) definition of _atoi
/usr/bin/ld: warning multiple definitions of symbol _snprintf
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(sprintf.o) definition of _snprintf in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(snprintf-LDBL.So) definition of _snprintf
/usr/bin/ld: warning multiple definitions of symbol _vsnprintf
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(sprintf.o) definition of _vsnprintf in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(vsnprintf-LDBL.So) definition of _vsnprintf
/usr/bin/ld: warning multiple definitions of symbol _getcwd
/Users/pb/rockbox/src/rockbox/build-sim/apps/tree.o definition of _getcwd in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(getcwd.So) definition of _getcwd
/usr/bin/ld: warning multiple definitions of symbol _strcasestr
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strcasestr.o) definition of _strcasestr in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strcasestr.So) definition of _strcasestr
/usr/bin/ld: warning multiple definitions of symbol _rand
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(random.o) definition of _rand in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(rand.So) definition of _rand
/usr/bin/ld: warning multiple definitions of symbol _srand
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(random.o) definition of _srand in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(rand.So) definition of _srand
/usr/bin/ld: warning multiple definitions of symbol _strtok_r
/Users/pb/rockbox/src/rockbox/build-sim/librockbox.a(strtok.o) definition of _strtok_r in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib(strtok.So) definition of _strtok_r


Also, I haven't built every target simulator, but I can report the following:
iriver H300, H100: behave as described above
iPod Color: gets to menu screen before freezing
Archos Recorder: works fine
Comment by Nils Wallménius (nls) - Saturday, 19 April 2008, 07:14 GMT
Hi Phil, could you try adding -fvisibility=hidden to the end of the line beginning with GCCOPTS in your <simbuilddir>/Makefile ?
Comment by Phil Brownlee (ell1ps1s) - Saturday, 19 April 2008, 07:51 GMT
Hi Nils
That doesn't seem to make any difference: same compiler warnings, same behaviour of rockboxui.
(Only tested with H300 simulator)
Comment by Nils Wallménius (nls) - Saturday, 19 April 2008, 08:54 GMT
Did you 'make clean' after that change?
Comment by Phil Brownlee (ell1ps1s) - Saturday, 19 April 2008, 10:34 GMT
Yes, I did.
Can you replicate it, or is it just me?
Comment by Phil Brownlee (ell1ps1s) - Saturday, 19 April 2008, 11:58 GMT
More information: I'm not sure that the compiler warnings are related.
I see the same warnings with r16681 (to pull a number out of the air), and that produces a working rockboxui.
I'm working my way forward, looking for the point where it stops working for me, and I'll report back when I find it.
(Tomorrow--bedtime in my timezone now.)
Comment by Tom Ross (midgey34) - Saturday, 19 April 2008, 16:34 GMT
Those warnings have always been there for Mac OS X; it's new that the simulator doesn't load at all. I updated to r17146 and built the h300 simulator. Rockboxui froze with and without backgrounds. If I get a chance, I'll look at this some time after exams and try to find which commit broke the simulator.

OS: Mac OS X 10.4.11
GCC: i686-apple-darwin8-gcc-4.0.1
ld: Apple Computer, Inc. version cctools-622.9~2

Note: r17171 has the same behavior.
Comment by Phil Brownlee (ell1ps1s) - Sunday, 20 April 2008, 02:01 GMT
The last working build for me is r16790, and from r16791 the issue described above appears.
Comment by Paul Louden (Llorean) - Sunday, 20 April 2008, 02:25 GMT
It seems to me that these warnings should be resolved first, and the author of the relevant commit agrees that it's really hard to debug something without knowing that the warnings aren't partly to blame.
Comment by Tom Ross (midgey34) - Monday, 14 July 2008, 13:23 GMT
I did some research into this and discovered the problem. There's nothing wrong on the Rockbox end of things, it's a bug in SDL for Mac. See my discussion with jhMikeS at http://www.rockbox.org/irc/log-20080502#08:00 . In the discussion I link to an SDL bug report that has a patch to correct the problem. Rebuild SDL with the linked patch and the simulator should be working again.
Comment by Phil Brownlee (ell1ps1s) - Thursday, 17 July 2008, 23:40 GMT
That's it. Thanks very much for tracking this down.

Loading...