Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127358 - glibc-2.4 does not allow nptl for arm targets
Summary: glibc-2.4 does not allow nptl for arm targets
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-23 13:34 UTC by August Hörandl
Modified: 2006-03-28 20:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/cross-arm-softfloat-linux-gnu-info.log (cross-arm-softfloat-linux-gnu-info.log,3.04 KB, application/octet-stream)
2006-03-23 13:36 UTC, August Hörandl
Details
/var/log/portage/cross-arm-softfloat-linux-gnu-glibc.log (cross-arm-softfloat-linux-gnu-glibc.log,10.01 KB, application/octet-stream)
2006-03-23 13:37 UTC, August Hörandl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description August Hörandl 2006-03-23 13:34:41 UTC
crossdev --target arm-softfloat-linux-gnu
---------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   arm
 * Target System:         arm-softfloat-linux-gnu
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/arm-softfloat-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/arm-softfloat-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _
 * Forcing the latest versions of binutils-config/gcc-config ...                                                     [ ok ]
 * Log: /var/log/portage/cross-arm-softfloat-linux-gnu-binutils.log
 * Emerging cross-binutils ...                                                                                       [ ok ]
 * Log: /var/log/portage/cross-arm-softfloat-linux-gnu-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                                                                     [ ok ]
 * Log: /var/log/portage/cross-arm-softfloat-linux-gnu-linux-headers.log
 * Emerging cross-linux-headers ...                                                                                  [ ok ]
 * Log: /var/log/portage/cross-arm-softfloat-linux-gnu-glibc.log
 * Emerging cross-glibc ...

 * glibc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-arm-softfloat-linux-gnu-info.log
 * /var/log/portage/cross-arm-softfloat-linux-gnu-glibc.log
Comment 1 August Hörandl 2006-03-23 13:36:43 UTC
Created attachment 82964 [details]
/var/log/portage/cross-arm-softfloat-linux-gnu-info.log

logfile shows nptl nptlonly
Comment 2 August Hörandl 2006-03-23 13:37:46 UTC
Created attachment 82965 [details]
/var/log/portage/cross-arm-softfloat-linux-gnu-glibc.log
Comment 3 August Hörandl 2006-03-23 14:07:22 UTC
downgrading to glibc 2.3.x fails, too:
crossdev --l 2.3.6-r3 --target arm-softfloat-linux-gnu
.....

In file included from dynamic-link.h:63,
                 from dl-reloc.c:269:
../sysdeps/arm/dl-machine.h: In function '_dl_relocate_object':
../sysdeps/arm/dl-machine.h:362: error: invalid storage class for function 'fix_bad_pc24'
make[2]: *** [/var/tmp/cross/arm-softfloat-linux-gnu/portage/glibc-2.3.6-r3/work/build-default-arm-softfloat-linux-gnu-linu
xthreads/elf/dl-reloc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/cross/arm-softfloat-linux-gnu/portage/glibc-2.3.6-r3/work/glibc-2.3.6/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/cross/arm-softfloat-linux-gnu/portage/glibc-2.3.6-r3/work/glibc-2.3.6'
make: *** [all] Error 2

!!! ERROR: cross-arm-softfloat-linux-gnu/glibc-2.3.6-r3 failed.
Call stack:
  ebuild.sh, line 1573:   Called dyn_compile
  ebuild.sh, line 982:   Called src_compile
  glibc-2.3.6-r3.ebuild, line 1239:   Called src_compile
  glibc-2.3.6-r3.ebuild, line 1250:   Called toolchain-glibc_src_compile

Comment 4 SpanKY gentoo-dev 2006-03-23 15:35:37 UTC
run one of these:
crossdev --target arm-softfloat-linux-gnu --l 2.4-r1 --g 4.1.0 --b 2.16.91.0.7
crossdev --target arm-softfloat-linux-gnu --l 2.3.6-r3 --g 3.4.6 --b 2.16.1-r2
Comment 5 August Hörandl 2006-03-23 23:20:50 UTC
crossdev --target arm-softfloat-linux-gnu --l 2.4-r1 --g 4.1.0 --b 2.16.91.0.7
fails because of nptl (which is set in /etc/make.conf)
....
>>> checksums src_uri ;-) glibc-libidn-2.4.tar.bz2
>>> checksums src_uri ;-) glibc-2.4-patches-1.3.tar.bz2
>>> checksums src_uri ;-) glibc-fedora-20060306T1239.tar.bz2

 * glibc-2.4 is nptl-only!

!!! ERROR: cross-arm-softfloat-linux-gnu/glibc-2.4-r1 failed.
Call stack:
  ebuild.sh, line 1589:   Called dyn_setup
  ebuild.sh, line 694:   Called pkg_setup

!!! please add USE='nptl nptlonly' to make.conf
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 6 Cyril Romain 2006-03-25 16:13:57 UTC
The glibc-2.4-r1 fail to compile even if 'nptl' and 'nptlonly' USE flags are set.
I think the problem comes from the glibc-2.4-r1.ebuild file:

glibc-2.4-r1.ebuild:
[...]
1120  if want_linuxthreads ; then
1121      ewarn "glibc-2.4 is nptl-only!"
1122      [[ ${CHOST} == i386-* ]] && eerror "NPTL requires a CHOST of i486 or better"
1123      die "please add USE='nptl nptlonly' to make.conf"
1124  fi
[...]

I think the line 1123 should be removed: the 'nptl' USE flags is set by default in the Gentoo 2006 profile, and a check for the 'nptlonly' USE flag is already done line 1126.
Comment 7 SpanKY gentoo-dev 2006-03-27 11:42:44 UTC
no ... this is an arm specific issue
Comment 8 SpanKY gentoo-dev 2006-03-28 20:43:05 UTC
fixed in cvs