Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-libs/glibc-2.15-r3 - failed compile on an ARMv5te
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
hazza
n00b
n00b


Joined: 30 Dec 2002
Posts: 68
Location: Burton on Trent

PostPosted: Wed Oct 31, 2012 4:29 pm    Post subject: sys-libs/glibc-2.15-r3 - failed compile on an ARMv5te Reply with quote

Hello,

I have an OpenRD box that's been happily running Gentoo for the last couple of years, however the latest glibc is having compilation problems:

Code:
armv5tel-softfloat-linux-gnueabi-gcc  sotruss-lib.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -fno-strict-aliasing -march=armv5te -pipe -Wstrict-prototypes   -fPIC    -U_FORTIFY_SOURCE -U_FORTIFY_SOURCE  -I../include -I/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf -I/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl -I../ports/sysdeps/arm/elf -I../ports/sysdeps/unix/sysv/linux/arm/eabi/nptl -I../ports/sysdeps/unix/sysv/linux/arm/eabi -I../ports/sysdeps/unix/sysv/linux/arm/nptl -I../ports/sysdeps/unix/sysv/linux/arm -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/eabi -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.5.4/include -isystem /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.5.4/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED     -DNOT_IN_libc -o /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sotruss-lib.os -MD -MP -MF /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sotruss-lib.os.dt -MT /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sotruss-lib.os
In file included from sotruss-lib.c:30:0:
../ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h:41:0: warning: "MORE_ELF_HEADER_DATA" redefined
../sysdeps/unix/sysv/linux/ldsodefs.h:64:0: note: this is the location of the previous definition
sotruss-lib.c:293:3: warning: #warning "pltenter for architecture not supported"
sotruss-lib.c:332:3: warning: #warning "pltexit for architecture not supported"
sotruss-lib.c:244:1: warning: 'print_enter' defined but not used
sotruss-lib.c:298:1: warning: 'print_exit' defined but not used
armv5tel-softfloat-linux-gnueabi-gcc  -Wl,-O1 -Wl,--as-needed  -nostdlib -nostartfiles -r -o /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc_pic.os \
 -Wl,-d -Wl,--whole-archive /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc_pic.a -o /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc_pic.os
armv5tel-softfloat-linux-gnueabi-gcc  -Wl,-O1 -Wl,--as-needed  -shared -Wl,-O1 \
          -nostdlib -nostartfiles \
           -Wl,-dynamic-linker=/lib/ld-linux.so.3 -Wl,-z,combreloc -Wl,-z,relro \
          -Wl,--verbose 2>&1 | \
  sed > /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/shlib.ldsT \
      -e '/^=========/,/^=========/!d;/^=========/d' \
       -e 's/^.*\.hash[         ]*:.*$/  .note.ABI-tag : { *(.note.ABI-tag) } &/'  \
      -e 's/^.*\*(\.dynbss).*$/& \
         PROVIDE(__start___libc_freeres_ptrs = .); \
         *(__libc_freeres_ptrs) \
         PROVIDE(__stop___libc_freeres_ptrs = .);/'\
      -e 's@^.*\*(\.jcr).*$@& \
         PROVIDE(__start___libc_subfreeres = .);\
         __libc_subfreeres : { *(__libc_subfreeres) }\
         PROVIDE(__stop___libc_subfreeres = .);\
         PROVIDE(__start___libc_atexit = .);\
         __libc_atexit : { *(__libc_atexit) }\
         PROVIDE(__stop___libc_atexit = .);\
         PROVIDE(__start___libc_thread_subfreeres = .);\
         __libc_thread_subfreeres : { *(__libc_thread_subfreeres) }\
         PROVIDE(__stop___libc_thread_subfreeres = .);\
         /DISCARD/ : { *(.gnu.glibc-stub.*) }@'
test -s /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/shlib.ldsT
mv -f /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/shlib.ldsT /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/shlib.lds
armv5tel-softfloat-linux-gnueabi-gcc  -Wl,-O1 -Wl,--as-needed  -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.3  -B/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/  -Wl,--version-script=/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -nostdlib -nostartfiles -e __libc_main -Wl,-z,now -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/math -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/dlfcn -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nss -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nis -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/rt -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/resolv -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/crypt -L/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nptl -Wl,-rpath-link=/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/math:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nptl -o /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.so -T /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/shlib.lds /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/abi-note.o /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/soinit.os /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc_pic.os /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sofini.os /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/interp.os /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/ld.so -lgcc
collect2: ld terminated with signal 11 [Segmentation fault]
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.15-r3/work/glibc-2.15/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.15-r3/work/glibc-2.15'
make: *** [all] Error 2
emake failed
 * ERROR: sys-libs/glibc-2.15-r3 failed (compile phase):
 *   make for default failed
 *
 * Call stack:
 *           ebuild.sh, line   85:  Called src_compile
 *         environment, line 3538:  Called eblit-run 'src_compile'
 *         environment, line  917:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  221:  Called toolchain-glibc_src_compile
 *   src_compile.eblit, line  132:  Called die
 * The specific snippet of code:
 *              emake || die "make for ${ABI} failed"
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.15-r3'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.15-r3'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.15-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.15-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl'
 * S: '/var/tmp/portage/sys-libs/glibc-2.15-r3/work/glibc-2.15'

>>> Failed to emerge sys-libs/glibc-2.15-r3, Log file:

>>>  '/var/tmp/portage/sys-libs/glibc-2.15-r3/temp/build.log'
Specifically, it's this bit that concerns me:
Code:
In file included from sotruss-lib.c:30:0:
../ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h:41:0: warning: "MORE_ELF_HEADER_DATA" redefined
../sysdeps/unix/sysv/linux/ldsodefs.h:64:0: note: this is the location of the previous definition
sotruss-lib.c:293:3: warning: #warning "pltenter for architecture not supported"
sotruss-lib.c:332:3: warning: #warning "pltexit for architecture not supported"
sotruss-lib.c:244:1: warning: 'print_enter' defined but not used
sotruss-lib.c:298:1: warning: 'print_exit' defined but not used
Seeing as ld subsequently explodes:
Code:
collect2: ld terminated with signal 11 [Segmentation fault]
and I'm assuming sotruss-lib has something to do with shared objects, I'm guessing this is the issue.

Has anyone else seen anything similar?

For reference, here's my emerge --info, emerge -pqv, build log and environment.

Cheers,
Harry
Back to top
View user's profile Send private message
leszcz
n00b
n00b


Joined: 03 Feb 2004
Posts: 20

PostPosted: Wed Nov 07, 2012 2:26 pm    Post subject: Reply with quote

Looks like https://bugs.gentoo.org/show_bug.cgi?id=434560
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum