Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Getting Sim to build on FC4

Getting Sim to build on FC4

From: George Styles <ripnetuk_at_gmail.com>
Date: Fri, 28 Oct 2005 16:28:15 +0100

Hi,

I have upgraded my Mandrake box to FC4, and can no longer compile the
rockbox sim :(

The error I get is:


LD rockboxui
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches no
n-TLS reference in /projects/rockbox/cvs/rockbox/build/sim/librockbox.a(errno.o)
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [/projects/rockbox/cvs/rockbox/build/sim/rockboxui] Error 1
make: *** [all] Error 2



This seems to be because the libc on FC4 uses thread level storage for
its errno variable, which is defined on errno.h as an extern:

extern int errno;

Im guessing to compile on FC4 i need to use a directive to specify
that the external variable uses TLS. Googling suggests that the
__thread directive is what I need, but I am not good enough with gcc /
c to work out the precise syntax. Ive tried various combinations of
__thread and extern, but they all give the same (or similar) errors.

Any rockbox-ers know the answer? (apart from switching distro)?

thanks

george
Received on 2005-10-28

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy