Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158412 - glibc-2.5 does not work on arm with linuxthreads
Summary: glibc-2.5 does not work on arm with linuxthreads
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-17 16:05 UTC by Erwann HOUZAY
Modified: 2006-12-18 15:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erwann HOUZAY 2006-12-17 16:05:03 UTC
Hi every body,

I'm trying to build the crossdev environnement for arm-unknown-linux-gnu using the prc-tools and crossdev --t arm-unknown-linux-gnu to compile the linux4palm kernel

I had an error with glibc....

I don't exactly know what happen, I've tried to follow up but without success...

Here the result of crossdev --t arm-unknown-linux-gnu when compiling glic.


 [32;01m*[0m Configuring GLIBC for linuxthreads with: 
		--disable-stackguard-randomization
		--enable-old-ssp-compat
		--with-tls
		--with-__thread
		--disable-sanity-checks
		--enable-add-ons=ports,linuxthreads,c_stubs,libidn
		--enable-kernel=2.4.1
		--without-selinux
		--without-cvs
		--enable-bind-now
		--build=i686-pc-linux-gnu
		--host=arm-unknown-linux-gnu
		--disable-profile
		--without-gd
		--with-headers=/usr/arm-unknown-linux-gnu/usr/include
		--prefix=/usr
		--libdir=/usr/lib
		--mandir=/usr/share/man
		--infodir=/usr/share/info
		--libexecdir=/usr/lib/misc/glibc


/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/elf/interp.os /var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/libc.so /var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/libc_nonshared.a /var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/elf/ld.so 
/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os): In function `__pthread_reset_main_thread':
pthread.c:(.text+0x848): undefined reference to `_res'
pthread.c:(.text+0x850): undefined reference to `_errno'
pthread.c:(.text+0x854): undefined reference to `_h_errno'
/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os): In function `pthread_initialize':
pthread.c:(.text+0xe8c): undefined reference to `_res'
/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os):(.data.rel+0x1b8): undefined reference to `_errno'
/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os):(.data.rel+0x1c0): undefined reference to `_h_errno'
/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/linuxthreads/libpthread_pic.a(pthread.os):(.data.rel+0x1c8): undefined reference to `_res'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/build-default-arm-unknown-linux-gnu-linuxthreads/linuxthreads/libpthread.so] Error 1
make[2]: Leaving directory `/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/glibc-2.5/linuxthreads'
make[1]: *** [linuxthreads/others] Error 2
make[1]: Leaving directory `/var/tmp/cross/arm-unknown-linux-gnu/portage/glibc-2.5/work/glibc-2.5'
make: *** [all] Error 2
Comment 1 SpanKY gentoo-dev 2006-12-17 19:06:49 UTC
i dont plan on fixing this ... force nptl/nptlonly
Comment 2 Erwann HOUZAY 2006-12-18 01:36:43 UTC
(In reply to comment #1)
> i dont plan on fixing this ... force nptl/nptlonly
> 

Euh... I've tried to do so using USE flags but I can't manage to get them works...

I'm not an expert...

I've tried the following. What's wrong?????




USE="nptl nptlonly" emerge -pv cross-arm-unknown-linux-gnu/glibc
hese are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] cross-arm-unknown-linux-gnu/glibc-2.5  USE="nls -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) (-nptl) (-nptlonly) -profile (-selinux)" 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
Comment 3 SpanKY gentoo-dev 2006-12-18 15:19:44 UTC
unfortunately you just hit one of the limitations in portage

your host profile is masking the nptl flags