dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Getting Sim to build on FC4

Getting Sim to build on FC4

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


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/ section .tbss mismatches no
n-TLS reference in /projects/rockbox/cvs/rockbox/build/sim/librockbox.a(errno.o)
/lib/ 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)?


Received on 2005-10-28

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