Can'r build glibc from SRPM

Jakub Jelinek jakub at redhat.com
Tue Jan 11 12:44:01 UTC 2005


On Mon, Jan 10, 2005 at 04:13:51PM -0500, Kevin Worthington wrote:
> http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/glibc-2.3.4-2.fc3.src.rpm
> and can not rebuild it on any of my i686 systems. I ran: rpmbuild -ba
> glibc.spec --target=i686 and it gives me the following:
> 
> <snippage>
> ====================PLT RELOCS LIBC.SO==============
> + sed -n -e '/^Relocation section
> .*\(\.rela\?\.plt\|\.rela\.IA_64\.pltoff\)/,/^$/p'
> + readelf -Wr /tmp/glibc-2.3.4-root/lib/tls/libc-2.3.4.so
> Relocation section '.rel.plt' at offset 0x14b48 contains 7 entries:
>  Offset     Info    Type                Sym. Value  Symbol's Name
> 00126000  00003207 R_386_JUMP_SLOT        000feac0   _Unwind_Find_FDE
> 00126004  0001ee07 R_386_JUMP_SLOT        00063b50   malloc
> 00126008  00034507 R_386_JUMP_SLOT        00063860   calloc
> 0012600c  0004a307 R_386_JUMP_SLOT        00064190   realloc
> 00126010  00060407 R_386_JUMP_SLOT        00063e30   memalign
> 00126014  00067807 R_386_JUMP_SLOT        00000000   ___tls_get_addr
> 00126018  00085a07 R_386_JUMP_SLOT        00061a70   free
> + echo ====================PLT RELOCS END==================
> ====================PLT RELOCS END==================
> + case "$-" in
> + save_trace=yes
> + set +x
> Building debuginfo subpackage...
> extracting debug info from /lib/i686/libc-2.3.4.so
> Only dest dir longer than base dir not supported
> error: Bad exit status from /tmp/rpm-tmp.56353 (%install)

Do you use %buildroot macro in your ~/.rpmmacros or wherever else to
override the default %{_tmppath}/glibc-2.3.4-root
?
If so, you need to make sure that the string length of your buildroot
is shorter or equal to /usr/src/debug.
This is not specific to glibc, almost all other packages need that too.
You can grep the rpmbuild -ba build log for
install_root=
if you are unsure.

	Jakub




More information about the users mailing list