New: undefined reference to `__builtin_thread_pointer'
https://bugs.busybox.net/show_bug.cgi?id=7424
Summary: undefined reference to `__builtin_thread_pointer'
Product: buildroot
Version: 2014.08
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: reddy.mrp at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
/usr/bin/make -j1 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig make[1]: Entering directory `/home/anu/elinux/buildroot-2014.08'
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/anu/elinux/buildroot-2014.08/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/anu/elinux/buildroot-2014.08/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/anu/elinux/buildroot-2014.08/output/build/buildroot-config/tristate.config BR2_CONFIG=/home/anu/elinux/buildroot-2014.08/.config BR2_EXTERNAL=support/dummy-external /home/anu/elinux/buildroot-2014.08/output/build/buildroot-config/conf --silentoldconfig Config.in
make[1]: Leaving directory `/home/anu/elinux/buildroot-2014.08'
Quoted 1 line
Quoted 1 line
Quoted 1 line
uclibc 0.9.33.2 Building
/usr/bin/make -j9 -C /home/anu/elinux/buildroot-2014.08/output/build/uclibc-0.9.33.2 ARCH="arm" CROSS_COMPILE="/home/anu/elinux/cross_compiler/usr/bin/arm-raspberry-linux-uclibcgnueabihf-" UCLIBC_EXTRA_CFLAGS=" " HOSTCC="/usr/bin/gcc" PREFIX= DEVEL_PREFIX=/ RUNTIME_PREFIX=/ all
make[1]: Entering directory `/home/anu/elinux/buildroot-2014.08/output/build/uclibc-0.9.33.2'
LD ld-uClibc-0.9.33.2.so
ldso/ldso/ld-uClibc_so.a(ldso.oS): In function `_dl_nothread_init_static_tls':
ldso.c:(.text+0xf00): undefined reference to `__builtin_thread_pointer'
collect2: error: ld returned 1 exit status
make[1]: *** [lib/ld-uClibc.so] Error 1
make[1]: Leaving directory `/home/anu/elinux/buildroot-2014.08/output/build/uclibc-0.9.33.2'
make: *** [/home/anu/elinux/buildroot-2014.08/output/build/uclibc-0.9.33.2/.stamp_built] Error 2
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
https://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #1 from reddi <[email protected]> 2014-09-10 18:16:37 UTC --- Hi,
please help me out how to resolve this issue.
Thanks
R
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #2 from Thomas Petazzoni <[email protected]> 2014-09-10 18:27:19 UTC --- See http://buildroot.org/downloads/manual/manual.html#reporting-bugs. If you
don't provide your Buildroot .config file, there's no way for us to understand
what configuration you are building, and no way to reproduce your build.
Also, could you make sure to restart the build from scratch by doing "make clean; make". Your report very much looks like a change in the toolchain configuration, without doing a full rebuild. See
http://buildroot.org/downloads/manual/manual.html#full-rebuild.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #3 from reddi <[email protected]> 2014-09-10 19:18:22 UTC --- Created attachment 5654
--> https://bugs.busybox.net/attachment.cgi?id=5654
attached config file
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #4 from reddi <[email protected]> 2014-09-10 19:21:10 UTC --- Hi,
Thanks for the early response. i have used "make clean;make" but still i am not able to solve this issue. please let me know if i need to change anything config.
please find the attached config file.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #5 from Gustavo Zacarias <[email protected]> 2014-09-10 20:19:33 UTC --- We need the ".config" file, not Config.in which is a part of buildroot itself.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #6 from reddi <[email protected]> 2014-09-11 02:51:01 UTC --- Created attachment 5660
--> https://bugs.busybox.net/attachment.cgi?id=5660
attached config file
Hi,
PLease find the attached config file. please let me know if you need further info.
Thanks
R
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #7 from Thomas Petazzoni <[email protected]> 2014-09-11 21:38:24 UTC --- Did you customize your uClibc configuration using "make uclibc-menuconfig" ?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #8 from Thomas De Schampheleire <[email protected]> 2014-10-20 19:15:24 UTC --- Do you still see this problem?
If so, could you answer the question raised in comment #7 and provide your
uclibc configuration file too? Thanks.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #9 from Thomas Petazzoni <[email protected]> 2014-10-26 20:50:40 UTC --- I'm able to reproduce the problem, with the config provided by the bug
submitter. The corresponding defconfig is:
BR2_arm=y
BR2_arm1176jzf_s=y
BR2_ARM_EABIHF=y
BR2_TOOLCHAIN_BUILDROOT_VENDOR="raspberry"
BR2_KERNEL_HEADERS_3_16=y
BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y
BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_BINUTILS_VERSION_2_24=y
BR2_GCC_VERSION_4_9_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
# BR2_GCC_ENABLE_TLS is not set
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
# BR2_TARGET_ROOTFS_TAR is not set
Most likely, the problem is due to "# BR2_GCC_ENABLE_TLS is not set".
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #10 from Thomas Petazzoni <[email protected]> 2014-10-26 21:01:42 UTC --- I confirm, re-enabling TLS support makes the build success.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nrubinstein at aldebaran.com
--- Comment #11 from Thomas Petazzoni <[email protected]> 2015-06-03 01:30:23 UTC --- *** Bug 7921 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #12 from Alex Potapenko <[email protected]> 2015-09-03 16:41:31 UTC --- I have encountered the same issue with Buildroot-2015-08. After some investigation, I found out that
BR2_PTHREADS_NATIVE=y
Switches on
UCLIBC_HAS_THREADS_NATIVE=y
uclibc config, which automatically triggers
UCLIBC_HAS_TLS=y
So, if gcc is built without tls, this leads to the error from this ticket. After switching threads to something different uclibc builds fine without tls in gcc. I thinks, these two options (BR2_PTHREADS_NATIVE and BR2_GCC_ENABLE_TLS) should be connected, since tls has to either be enabled in both gcc and uclibc, or likewise disabled in both.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #13 from Alex Potapenko <[email protected]> 2015-09-03 16:48:28 UTC --- I have encountered the same issue with Buildroot-2015-08. After some investigation, I found out that
BR2_PTHREADS_NATIVE=y
Switches on
UCLIBC_HAS_THREADS_NATIVE=y
uclibc config, which automatically triggers
UCLIBC_HAS_TLS=y
So, if gcc is built without tls, this leads to the error from this ticket. After switching threads to something different uclibc builds fine without tls in gcc. I think, these two options (BR2_PTHREADS_NATIVE and BR2_GCC_ENABLE_TLS) should be connected, since tls has to either be enabled in both gcc and uclibc, or likewise disabled in both.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #14 from Thomas Petazzoni <[email protected]> 2015-09-03 20:26:41 UTC --- (In reply to comment #13)
Quoted 5 lines
So, if gcc is built without tls, this leads to the error from this ticket. After switching threads to something different uclibc builds fine without tls in gcc. I think, these two options (
BR2_PTHREADS_NATIVEandBR2_GCC_ENABLE_TLS) should be connected, since tls has to either be enabled in both gcc and uclibc, or likewise disabled in both.
Thanks for the report. Our plan is to make the TLS option no longer visible, and make TLS mandatory when thread support is enabled. If you want to tackle that, don't hesitate to send a patch!
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
--- Comment #15 from Alex Potapenko <[email protected]> 2015-09-04 10:50:15 UTC --- (In reply to comment #14)
Quoted 3 lines
Thanks for the report. Our plan is to make the TLS option no longer visible, and make TLS mandatory when thread support is enabled. If you want to tackle that, don't hesitate to send a patch!
I think forcing TLS is a good idea, and BR2_PTHREADS_NATIVE should be the only threads option (if enabled) for uclibc, as with uclibc-ng.
If I had known about TLS when I was building my original toolchains for my Optware-ng project using Buildroot-2015-02, I would have enabled it. For now, until I eventually migrate to uclibc-ng (plan to create new feeds and abandon old ones), I have to make sure that upgraded toolchains are compatible with the old ones, so have to disable TLS.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7424] undefined reference to `__builtin_thread_pointer'
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7424
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #16 from Thomas Petazzoni <[email protected]> --- Fixed by
https://git.buildroot.org/buildroot/commit/?h=next&id=1bd02bc230e1b3b22ca3eb23fb3dcb91b878283a,
which simply removes the option to enable/disable TLS support. Now TLS support is automatically enabled or disable in gcc depending on the selected C library and its configuration.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.