I built standard C Library with TLS support, and now I cannot bootstrap GCC. On stage2, I got (from ./intl/config.log): ---------------------------------------- configure:2978: checking for C compiler default output file name configure:3000: /root/build-farm/_gcc_bootstrap/./prev-gcc/xgcc -B/root/build-farm/_gcc_bootstrap/./prev-gcc/ -B/usr/powerpc32-gnu-linux-uclibc/bin/ -B/usr/powerpc32-gnu-linux-uclibc/bin/ -B/usr/powerpc32-gnu-linux-uclibc/lib/ -isystem /usr/powerpc32-gnu-linux-uclibc/include -isystem /usr/powerpc32-gnu-linux-uclibc/sys-include -O3 -gtoggle -static-libstdc++ -static-libgcc conftest.c >&5 /usr/powerpc32-gnu-linux-uclibc/bin/ld: /root/build-farm/_gcc_bootstrap/./prev-gcc/crtbegin.o: undefined reference to symbol '__deregister_frame_info@@GLIBC_2.0' /usr/powerpc32-gnu-linux-uclibc/bin/ld: note: '__deregister_frame_info@@GLIBC_2.0' is defined in DSO /root/build-farm/_gcc_bootstrap/./prev-gcc/libgcc_s.so.1 so try adding it to the linker command line ---------------------------------------- I did suspect my Std C Lib, but after I did successful build of everything but GCC, I suspect it is really GCC's fault. All I can add is that "stage0" libgcc_s.so has " 0x00000001 (NEEDED) Shared library: [ld-uClibc.so.0]" which is missed in stage1 libgcc_s.so. readelf outputs are attached.
Created attachment 29602 [details] readelf of /usr/lib/libgcc_s.so.0.1
Created attachment 29603 [details] readelf of _gcc_bootstrap/./prev-gcc/libgcc_s.so.1
Created attachment 29604 [details] Attaching intl/config.log
What binutils version are you using?
Did you rebuild a candian cross to the target first before updating your libc? I think you broke your system by changing your libc without first building a full cross build to the new target first.
As for 4.8.0 release and current 4.9.0-pre, there are no issues with linking to libgcc_s on bootstrap stages 1-3 on my side. Problem is gone.