Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bugs
  • Category User Interface → Simulator
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by ell1ps1s - 2008-04-19
Last edited by pondlife - 2008-07-18

FS#8906 - Simulator fails to launch under MacOS

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.

Closed by  pondlife
2008-07-18 08:02
Reason for closing:  Not a Bug
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

Not a Rockbox bug, anyway…

Personally, I’d recommend including the warnings, so we can get that question out of the way from the beginning.

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

nls commented on 2008-04-19 07:14

Hi Phil, could you try adding -fvisibility=hidden to the end of the line beginning with GCCOPTS in your <simbuilddir>/Makefile ?

Hi Nils
That doesn’t seem to make any difference: same compiler warnings, same behaviour of rockboxui.
(Only tested with H300 simulator)

nls commented on 2008-04-19 08:54

Did you ‘make clean’ after that change?

Yes, I did.
Can you replicate it, or is it just me?

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

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.

The last working build for me is r16790, and from r16791 the issue described above appears.

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.

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.

That’s it. Thanks very much for tracking this down.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing