binutils 2.17.50 and ctfconvert

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Tue, 22 Feb 2011 14:23:28 -0500
Since binutils 2.17.50 import, WITH_CTF=1 & buildworld on amd64 stops 
like this:

===> lib/librt (all)
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -O2 -pipe -fno-omit-frame-pointer 
-I/usr/src/lib/librt/../libc/include -I/usr/src/lib/librt 
-fexceptions -Winline -Wall -g -std=gnu99 -fstack-protector 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /usr/src/lib/librt/aio.c
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -pg -O2 -pipe 
-fno-omit-frame-pointer -I/usr/src/lib/librt/../libc/include 
-I/usr/src/lib/librt -fexceptions -Winline -Wall -g -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/librt/aio.c -o 
aio.po
ctfconvert -L VERSION aio.po
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -fpic -DPIC -O2 -pipe 
-fno-omit-frame-pointer -I/usr/src/lib/librt/../libc/include 
-I/usr/src/lib/librt -fexceptions -Winline -Wall -g -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/librt/aio.c -o 
aio.So
ctfconvert -L VERSION aio.o
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -O2 -pipe -fno-omit-frame-pointer 
-I/usr/src/lib/librt/../libc/include -I/usr/src/lib/librt 
-fexceptions -Winline -Wall -g -std=gnu99 -fstack-protector 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /usr/src/lib/librt/mq.c
ctfconvert -L VERSION aio.So
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -pg -O2 -pipe 
-fno-omit-frame-pointer -I/usr/src/lib/librt/../libc/include 
-I/usr/src/lib/librt -fexceptions -Winline -Wall -g -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/librt/mq.c -o 
mq.po
ctfconvert -L VERSION mq.o
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -fpic -DPIC -O2 -pipe 
-fno-omit-frame-pointer -I/usr/src/lib/librt/../libc/include 
-I/usr/src/lib/librt -fexceptions -Winline -Wall -g -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/librt/mq.c -o 
mq.So
ctfconvert -L VERSION mq.po
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -O2 -pipe -fno-omit-frame-pointer 
-I/usr/src/lib/librt/../libc/include -I/usr/src/lib/librt 
-fexceptions -Winline -Wall -g -std=gnu99 -fstack-protector 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /usr/src/lib/librt/sigev_thread.c
ctfconvert -L VERSION mq.So
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -pg -O2 -pipe 
-fno-omit-frame-pointer -I/usr/src/lib/librt/../libc/include 
-I/usr/src/lib/librt -fexceptions -Winline -Wall -g -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign 
-c /usr/src/lib/librt/sigev_thread.c -o sigev_thread.po
ctfconvert -L VERSION sigev_thread.o
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -fpic -DPIC -O2 -pipe 
-fno-omit-frame-pointer -I/usr/src/lib/librt/../libc/include 
-I/usr/src/lib/librt -fexceptions -Winline -Wall -g -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign 
-c /usr/src/lib/librt/sigev_thread.c -o sigev_thread.So
ctfconvert -L VERSION sigev_thread.po
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -O2 -pipe -fno-omit-frame-pointer 
-I/usr/src/lib/librt/../libc/include -I/usr/src/lib/librt 
-fexceptions -Winline -Wall -g -std=gnu99 -fstack-protector 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized 
-Wno-pointer-sign -c /usr/src/lib/librt/timer.c
ctfconvert -L VERSION timer.o
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -pg -O2 -pipe 
-fno-omit-frame-pointer -I/usr/src/lib/librt/../libc/include 
-I/usr/src/lib/librt -fexceptions -Winline -Wall -g -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/librt/timer.c -o 
timer.po
ctfconvert -L VERSION timer.po
cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  
-isystem /usr/obj/usr/src/lib32/usr/include/  
-L/usr/obj/usr/src/lib32/usr/lib32  
-B/usr/obj/usr/src/lib32/usr/lib32 -fpic -DPIC -O2 -pipe 
-fno-omit-frame-pointer -I/usr/src/lib/librt/../libc/include 
-I/usr/src/lib/librt -fexceptions -Winline -Wall -g -std=gnu99 
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/librt/timer.c -o 
timer.So
ctfconvert -L VERSION sigev_thread.So
ctfconvert -L VERSION timer.So
building static rt library
building profiled rt library
ranlib librt_p.a
ranlib librt.a
building shared library librt.so.1
BFD: aio.So: invalid SHT_GROUP entry
BFD: aio.So: invalid SHT_GROUP entry
BFD: aio.So: no group info for section .text.__i686.get_pc_thunk.cx
BFD: aio.So: no group info for section .text.__i686.get_pc_thunk.bx
BFD: aio.So: unknown [0] section `' in group [__i686.get_pc_thunk.cx]
BFD: aio.So: unknown [0] section `' in group [__i686.get_pc_thunk.bx]
nm: aio.So: File format not recognized
BFD: mq.So: invalid SHT_GROUP entry
BFD: mq.So: no group info for section .text.__i686.get_pc_thunk.bx
BFD: mq.So: unknown [0] section `' in group [__i686.get_pc_thunk.bx]
nm: mq.So: File format not recognized
BFD: sigev_thread.So: invalid SHT_GROUP entry
BFD: sigev_thread.So: no group info for 
section .text.__i686.get_pc_thunk.bx
BFD: sigev_thread.So: unknown [0] section `' in group 
[__i686.get_pc_thunk.bx]
nm: sigev_thread.So: File format not recognized
BFD: timer.So: invalid SHT_GROUP entry
BFD: timer.So: no group info for section .text.__i686.get_pc_thunk.bx
BFD: timer.So: unknown [0] section `' in group 
[__i686.get_pc_thunk.bx]
nm: timer.So: File format not recognized
/usr/obj/usr/src/tmp/usr/bin/ld: timer.So: invalid SHT_GROUP entry
/usr/obj/usr/src/tmp/usr/bin/ld: timer.So: no group info for 
section .text.__i686.get_pc_thunk.bx
/usr/obj/usr/src/tmp/usr/bin/ld: timer.So: unknown [0] section `' in 
group [__i686.get_pc_thunk.bx]
timer.So: file not recognized: File format not recognized
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error

Google found NetBSD has a similar looking PR but it is not exactly the 
same:

http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=42986

Note I have '-g' and it only happens at build32.  64-bit library was 
okay.  Does anyone know what went wrong?

Thanks,

Jung-uk Kim
Received on Tue Feb 22 2011 - 18:23:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:11 UTC