* [gentoo-embedded] crossdev - glibc can't find linux-headers
@ 2006-04-19 14:38 Jan Girlich
2006-04-19 17:29 ` Mike Frysinger
0 siblings, 1 reply; 6+ messages in thread
From: Jan Girlich @ 2006-04-19 14:38 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 862 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I use crossdev from yesterdays portage. Before invoking crossdev I
updated my host to the newest "~x86" packets (gcc, glibc, linux-headers
and binutils, the same versions crossdev tries to install)
My target is armeb-softfloat-linux-gnu
I attached the crossdev-output to this mail.
crossdev stops at glibc because it can't find the kernel-headers/thinks
the kernel-headers are too old, which is not right (just an
interpretation, have a look at the attached log-files).
I couldn't find a bug which describes the same problem as I have.
SO, how can I tell crossdev/glibc that there is a new linux-headers?
TIA
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFERkt6vuM9o4Jvd/8RAvjPAJ4xKWLR42T3QtW0NLlCYaXXPZa3SgCfenzI
8eNoNwqE+GO9m5YeSn8/taA=
=idDP
-----END PGP SIGNATURE-----
[-- Attachment #2: cross-armeb-softfloat-linux-gnu-glibc.log --]
[-- Type: application/octet-stream, Size: 23834 bytes --]
[-- Attachment #3: cross-armeb-softfloat-linux-gnu-info.log --]
[-- Type: text/plain, Size: 3690 bytes --]
----------------------------------------------------------------------------------------------------------------------------------------
^[[32;01m*^[[0m Host Portage ARCH: x86
^[[32;01m*^[[0m Target Portage ARCH: arm
^[[32;01m*^[[0m Target System: armeb-softfloat-linux-gnu
^[[32;01m*^[[0m Stage: 4 (C/C++ compiler)
^[[32;01m*^[[0m binutils: binutils-[latest]
^[[32;01m*^[[0m gcc: gcc-[latest]
^[[32;01m*^[[0m headers: linux-headers-[latest]
^[[32;01m*^[[0m libc: glibc-[latest]
^[[32;01m*^[[0m PORTDIR_OVERLAY: /usr/local/portage
^[[32;01m*^[[0m PORT_LOGDIR: /var/log/portage
^[[32;01m*^[[0m PKGDIR: /usr/portage/packages/cross/armeb-softfloat-linux-gnu
^[[32;01m*^[[0m PORTAGE_TMPDIR: /var/tmp/cross/armeb-softfloat-linux-gnu
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _
Gentoo Base System version 1.6.14
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.40GHz
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/cross/armeb-softfloat-linux-gnu"
PORTAGE_TMPDIR="/var/tmp/cross/armeb-softfloat-linux-gnu"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.treehouse.test/gentoo-portage"
USE="x86 X aac aalib alsa aotuv apm audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 caps cdb cdparanoia cups curl custom-cflags dga directfb divx4linux dri dv dvd dvdread emboss encode exif expat fam fbcon flac foomaticdb fortran fuse gdbm ggi gif glut gphoto2 gpm gstreamer gtk gtk2 guile hal idn imagemagick imlib isdnlog java javascript jpeg junit lcd lcms libcaca libg++ libwww live lzo mad matroska mikmod mmx mmxext mng mp3 mpeg musicbrainz mysql ncurses nls nowin nsplugin offensive ogg oggvorbis opengl pam pcre pdflib perl png pppd python qt quicktime readline real recode samba sdl slp sndfile spell sse sse2 ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev usb v4l v4l2 visualization vorbis win32codecs winbind xanim xgetdefault xml2 xmms xprint xv xvid xvmc zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS
[-- Attachment #4: crossdev.txt --]
[-- Type: text/plain, Size: 1905 bytes --]
----------------------------------------------------------------------------------------------------------------------------------------
* Host Portage ARCH: x86
* Target Portage ARCH: arm
* Target System: armeb-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/armeb-softfloat-linux-gnu
* PORTAGE_TMPDIR: /var/tmp/cross/armeb-softfloat-linux-gnu
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _
* Forcing the latest versions of binutils-config/gcc-config ... [ ok ]
* Log: /var/log/portage/cross-armeb-softfloat-linux-gnu-binutils.log
* Emerging cross-binutils ... [ ok ]
* Log: /var/log/portage/cross-armeb-softfloat-linux-gnu-gcc-stage1.log
* Emerging cross-gcc-stage1 ... [ ok ]
* Log: /var/log/portage/cross-armeb-softfloat-linux-gnu-linux-headers.log
* Emerging cross-linux-headers ... [ ok ]
* Log: /var/log/portage/cross-armeb-softfloat-linux-gnu-glibc.log
* Emerging cross-glibc ...
* glibc failed :(
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-armeb-softfloat-linux-gnu-info.log
* /var/log/portage/cross-armeb-softfloat-linux-gnu-glibc.log
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] crossdev - glibc can't find linux-headers
2006-04-19 14:38 [gentoo-embedded] crossdev - glibc can't find linux-headers Jan Girlich
@ 2006-04-19 17:29 ` Mike Frysinger
2006-04-19 22:59 ` Jan Girlich
0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2006-04-19 17:29 UTC (permalink / raw
To: gentoo-embedded; +Cc: Jan Girlich
On Wednesday 19 April 2006 10:38, Jan Girlich wrote:
> crossdev stops at glibc because it can't find the kernel-headers/thinks
> the kernel-headers are too old, which is not right (just an
> interpretation, have a look at the attached log-files).
only glibc-2.4-r2 will work at this point in time due to all the sysroot
changes in toolchain related ebuilds
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] crossdev - glibc can't find linux-headers
2006-04-19 17:29 ` Mike Frysinger
@ 2006-04-19 22:59 ` Jan Girlich
2006-04-20 0:25 ` Mike Frysinger
0 siblings, 1 reply; 6+ messages in thread
From: Jan Girlich @ 2006-04-19 22:59 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mike Frysinger wrote:
> On Wednesday 19 April 2006 10:38, Jan Girlich wrote:
>
>>crossdev stops at glibc because it can't find the kernel-headers/thinks
>>the kernel-headers are too old, which is not right (just an
>>interpretation, have a look at the attached log-files).
>
> only glibc-2.4-r2 will work at this point in time due to all the sysroot
> changes in toolchain related ebuilds
> -mike
I can't compile glibc-2.4-r1. It complains about missing __target
support in gcc. I don't know what this is about but recompiled my host's
glibc with nptl and nptlonly and made a revdep-rebuild. Still the same
problem.
>>> md5 files ;-) files/2.3.4/glibc-2.3.4-mips-prot_grows-undefine>>>
Unpacking source...
^[[32;01m*^[[0m Checking gcc for __thread support ... no
^[[31;01m*^[[0m Could not find a gcc that supports the __thread directive!
^[[31;01m*^[[0m please update to gcc-3.2.2-r1 or later, and try again.
!!! ERROR: cross-armeb-softfloat-linux-gnu/glibc-2.4-r1 failed.
!!! Function check_nptl_support, Line 772, Exitcode 0
!!! No __thread support in gcc!
!!! If you need support, post the topmost build error, NOT this status
message.
The forum and bugzilla didn't give me much usable hints. Or I didn't
search in the right way.
gcc-config is up to date.
thinkpad ~ # LANG="C" armeb-softfloat-linux-gnu-gcc -c
/usr/portage/sys-libs/glibc/files/test-__thread.c
/usr/portage/sys-libs/glibc/files/test-__thread.c:1: error: thread-local
storage not supported for this target
I found this information. Is it still accurate for glibc-2.3.6? And how
to deal with this? I can't overview the impact of this for my goal to
create an armeb-softfloat-linux-gnu toolchain.
"Since version 2.3.5, the glibc is built with TLS support on all
platforms which support it, unless it is explicitely disabled.
Therefore the code you have given in example will work correctly on the
following platforms: alpha, amd64, i386, ia64, powerpc, s390, sparc.
On arm, m68k, hppa, mips and mipsel, you will get the following message:
error: thread-local storage not supported for this target"
TIA
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFERsDEvuM9o4Jvd/8RAg0rAJ0d6kY8T9DrB8cqxMgBlUT52xT/nwCfY39f
Ib2mptTF5iqfv6qhFOZSTGg=
=csIS
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] crossdev - glibc can't find linux-headers
2006-04-19 22:59 ` Jan Girlich
@ 2006-04-20 0:25 ` Mike Frysinger
2006-04-22 9:00 ` [gentoo-embedded] crossdev - glibc can't find __thread-support Jan Girlich
0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2006-04-20 0:25 UTC (permalink / raw
To: gentoo-embedded; +Cc: Jan Girlich
On Wednesday 19 April 2006 18:59, Jan Girlich wrote:
> Mike Frysinger wrote:
> > On Wednesday 19 April 2006 10:38, Jan Girlich wrote:
> >>crossdev stops at glibc because it can't find the kernel-headers/thinks
> >>the kernel-headers are too old, which is not right (just an
> >>interpretation, have a look at the attached log-files).
> >
> > only glibc-2.4-r2 will work at this point in time due to all the sysroot
> > changes in toolchain related ebuilds
>
> I can't compile glibc-2.4-r1.
i said 2.4-r2, not 2.4-r1
> It complains about missing __target support in gcc.
arm targets need gcc-4.1
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] crossdev - glibc can't find __thread-support
2006-04-20 0:25 ` Mike Frysinger
@ 2006-04-22 9:00 ` Jan Girlich
2006-04-22 9:35 ` Mike Frysinger
0 siblings, 1 reply; 6+ messages in thread
From: Jan Girlich @ 2006-04-22 9:00 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mike Frysinger wrote:
> On Wednesday 19 April 2006 18:59, Jan Girlich wrote:
>>I can't compile glibc-2.4-r1.
>
> i said 2.4-r2, not 2.4-r1
Okay, this was my mistake.
>>It complains about missing __target support in gcc.
>
> arm targets need gcc-4.1
So I tried to compile gcc-4.1.0 which failed because of a bug in a patch
for arm softfloat etc. but now it works and I invoked crossdev again:
crossdev armeb-softfloat-linux-gnu --g 4.1.0 --l 2.4-r2
But glibc still fails and this time complains about missing __thread
support:
running configure fragment for ports/sysdeps/arm/elf
checking for ARM TLS support... no
running configure fragment for nptl/sysdeps/pthread
configure: error: compiler support for __thread is required
!!! ERROR: cross-armeb-softfloat-linux-gnu/glibc-2.4-r2 failed.
So I tried to find out what this is about and as far as I learned from
google this is about linuxthreads vs. nptl. In earlier versions of glibc
you were often advised to delete the subdirectory nptl in the sources so
you won't compile nptl support. But since glibc-2.4 you need to compile
with USE="nptl nptlonly" because support for linuxthreads has been
dropped. On the other hand I found some pretty old places telling that
arm does not support nptl yet.
Am I stuck here now or is there any hope?
Thanks
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFESfDEvuM9o4Jvd/8RAmsqAJ43K5HMPZ0Hl/atGrOQ3zWGLSr2wwCfbDWo
WITHwMlv/FI3FuTagufGbbg=
=WLHM
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-embedded] crossdev - glibc can't find __thread-support
2006-04-22 9:00 ` [gentoo-embedded] crossdev - glibc can't find __thread-support Jan Girlich
@ 2006-04-22 9:35 ` Mike Frysinger
0 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2006-04-22 9:35 UTC (permalink / raw
To: gentoo-embedded; +Cc: Jan Girlich
On Saturday 22 April 2006 05:00, Jan Girlich wrote:
> So I tried to compile gcc-4.1.0 which failed because of a bug in a patch
> for arm softfloat etc.
yeah i fixed that earlier today (yesterday?)
> crossdev armeb-softfloat-linux-gnu --g 4.1.0 --l 2.4-r2
>
> But glibc still fails and this time complains about missing __thread
> support:
you need binutils-2.16.90 or better and you need to make sure gcc-4.1.0 is
built with that version (i.e. simply upgrading your existing
cross-arm-binutils wont fix the situation)
i'd suggest:
crossdev -C armeb-softfloat-linux-gnu
crossdev --b 2.16.92 --g 4.1.0 --l 2.4-r2
btw, ive never tested softfloat/glibc so i make no promises ;)
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-22 9:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 14:38 [gentoo-embedded] crossdev - glibc can't find linux-headers Jan Girlich
2006-04-19 17:29 ` Mike Frysinger
2006-04-19 22:59 ` Jan Girlich
2006-04-20 0:25 ` Mike Frysinger
2006-04-22 9:00 ` [gentoo-embedded] crossdev - glibc can't find __thread-support Jan Girlich
2006-04-22 9:35 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox