glibc2.9 bug7048

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
warpme
Contributor
Posts: 438
Joined: Fri Aug 26, 2005 8:17 pm

glibc2.9 bug7048

Post by warpme »

Pablo,
FYI
After upgrade of glibc to 2.9 I have following issue with compile:

Code: Select all

i586-minimyth-linux-gnu-gcc -Wl,--as-needed  -nostdlib -nostartfiles -shared -o /home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9_build/elf/ld.so			\
		  -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs -Wl,-z,now	\
		  /home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9_build/elf/librtld.os -Wl,--version-script=/home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9_build/ld.map		\
		  -Wl,-soname=ld-linux.so.2 -T /home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9_build/elf/ld.so.lds
/home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9_build/elf/librtld.os: In function `_dl_tlsdesc_dynamic':
(.text+0x166b5): undefined reference to `__i686.get_pc_thunk.bx'
collect2: ld returned 1 exit status
make[12]: *** [/home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9_build/elf/ld.so] Error 1
make[12]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9/elf'
make[11]: *** [elf/subdir_lib] Error 2
make[11]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9'
make[10]: *** [all] Error 2
make[10]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.9_build'
make[9]: *** [build-work/main.d/glibc-2.9_build/Makefile] Error 2
make[9]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/devel/glibc'
make[8]: *** [../../devel/glibc/cookies/main.d/install] Error 2
make[8]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/devel/gcc'
make[7]: *** [imgdep-main] Error 2
make[7]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/devel/gcc'
make[6]: *** [build-custom] Error 2
make[6]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/lib/libgcc'
make[5]: *** [../../lib/libgcc/cookies/main.d/install] Error 2
make[5]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/lang/c'
make[4]: *** [imgdep-main] Error 2
make[4]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/lang/c'
make[3]: *** [../../lang/c/cookies/main.d/install] Error 2
make[3]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/system/acpid'
make[2]: *** [imgdep-main] Error 2
make[2]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/system/acpid'
make[1]: *** [../../system/acpid/cookies/main.d/install] Error 2
make[1]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/meta/minimyth'
make: *** [imgdep-main] Error 2
Done...
piotro@MiniMyth-Dev:~/Desktop/minimyth-dev/script/meta/minimyth$ 
It looks like issue is related to following glibc 2.9 bug
http://sourceware.org/ml/glibc-bugs/200 ... 00060.html

Indeed, glibc2.9 with following glibc-2.9-ticket-7048.patch compiles ok

Code: Select all

diff -Naur glibc-2.9-old/sysdeps/i386/dl-tlsdesc.S glibc-2.9-new/sysdeps/i386/dl-tlsdesc.S
--- glibc-2.9-old/sysdeps/i386/dl-tlsdesc.S	2008-05-13 07:33:06.000000000 +0200
+++ glibc-2.9-new/sysdeps/i386/dl-tlsdesc.S	2009-05-01 22:42:39.000000000 +0200
@@ -128,8 +128,7 @@
 .Lslow:
 	cfi_adjust_cfa_offset (28)
 	movl	%ebx, 16(%esp)
-	call	__i686.get_pc_thunk.bx
-	addl	$_GLOBAL_OFFSET_TABLE_, %ebx
+	LOAD_PIC_REG(bx)
 	call	___tls_get_addr@PLT
 	movl	16(%esp), %ebx
 	jmp	.Lret 
My build system is mm 53.
br
Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo »

Thanks. I have checked in the patch.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.
Post Reply