Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269955 - crossdev fails at glibc with linux-headers version
Summary: crossdev fails at glibc with linux-headers version
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 14:52 UTC by Kuryshev Mikhail
Modified: 2009-05-17 21:45 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,10.98 KB, text/plain)
2009-05-15 14:55 UTC, Kuryshev Mikhail
Details
crossdev --portage --debug (verbose-log.txt,121.29 KB, text/plain)
2009-05-16 18:04 UTC, Kuryshev Mikhail
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kuryshev Mikhail 2009-05-15 14:52:56 UTC
+++ This bug was initially created as a clone of Bug #130429 +++

When i'am trying to create powerpc-compatible toolchain it falls with at glibc dependance on linux-headers. Same results on i686 host.

crossdev --b 2.18-r1 --g 4.1.2 --k 2.6.21 --l 2.6.1 -t powerpc
--------------------------------------------------------------------------------
* Host Portage ARCH:     amd64
* Target Portage ARCH:   ppc
* Target System:         powerpc-unknown-linux-gnu
* Stage:                 4 (C/C++ compiler)

* binutils:              binutils-2.18-r1
* gcc:                   gcc-4.1.2
* headers:               linux-headers-2.6.21
* libc:                  glibc-2.6.1

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

* glibc failed :(
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-powerpc-unknown-linux-gnu-info.log
* /var/log/portage/cross-powerpc-unknown-linux-gnu-glibc.log
----------------------------------------------------------------
cat /var/log/portage/cross-powerpc-unknown-linux-gnu-glibc.log

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) cross-powerpc-unknown-linux-gnu/glibc-2.6.1 from local_repo
 * glibc-ports-2.6.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...             [ ok ]
 * glibc-2.6.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                   [ ok ]
 * glibc-2.6.1-patches-1.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...       [ ok ]
 * glibc-libidn-2.6.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
 * Checking gcc for __thread support ...                                                                                               [ ok ]
 * Checking linux-headers version (>=2.6.9) ...                                                                                        [ !! ]

 * You need linux-headers of at least version 2.6.9
 * for NPTL support!
 * 
 * ERROR: cross-powerpc-unknown-linux-gnu/glibc-2.6.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 3326:  Called eblit-run 'src_unpack'
 *             environment, line 1033:  Called eblit-glibc-src_unpack
 *        src_unpack.eblit, line  124:  Called toolchain-glibc_src_unpack
 *        src_unpack.eblit, line   59:  Called check_nptl_support
 *        src_unpack.eblit, line   44:  Called die
 * The specific snippet of code:
 *              die "linux-headers version too low!"
 *  The die message:
 *   linux-headers version too low!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/cross-powerpc-unknown-linux-gnu:glibc-2.6.1:20090515-144420.log'.
 * The ebuild environment file is located at '/var/tmp/cross/powerpc-unknown-linux-gnu/portage/cross-powerpc-unknown-linux-gnu/glibc-2.6.1/temp/environment'.
 * This ebuild is from an overlay named 'local_repo': '/usr/local/portage/'
 * 

>>> Failed to emerge cross-powerpc-unknown-linux-gnu/glibc-2.6.1, Log file:

>>>  '/var/log/portage/cross-powerpc-unknown-linux-gnu:glibc-2.6.1:20090515-144420.log'
----------------------------------------------------------

PS. Same result on i686 host. Also googled it and found some workarounds with symlinking /usr/powerpc-unknown-linux-gnu/usr/include to /usr/powerpc-unknown-linux-gnu/include, but they doesn't work.
Comment 1 Kuryshev Mikhail 2009-05-15 14:55:13 UTC
Created attachment 191389 [details]
emerge --info
Comment 2 SpanKY gentoo-dev 2009-05-16 13:56:55 UTC
re-run crossdev with --portage --debug and post the resulting glibc log file
Comment 3 Kuryshev Mikhail 2009-05-16 18:04:09 UTC
Created attachment 191493 [details]
crossdev --portage --debug

Here is problem chunk.

+ echo -ne ' [32;01m*[0m Checking linux-headers version (>=2.6.9) ...'
 [32;01m*[0m Checking linux-headers version (>=2.6.9) ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=47
+ LAST_E_CMD=ebegin
+ return 0
++ check_kheader_version 132617
+++ tail -n 1
++++ tc-getCPP powerpc-unknown-linux-gnu
++++ tc-getPROG CPP cpp powerpc-unknown-linux-gnu
++++ local var=CPP
++++ local prog=cpp
++++ [[ -n '' ]]
++++ local search=
++++ [[ -n powerpc-unknown-linux-gnu ]]
+++++ type -p powerpc-unknown-linux-gnu-cpp
++++ search=/usr/bin/powerpc-unknown-linux-gnu-cpp
++++ [[ -z /usr/bin/powerpc-unknown-linux-gnu-cpp ]]
++++ [[ -n /usr/bin/powerpc-unknown-linux-gnu-cpp ]]
++++ prog=powerpc-unknown-linux-gnu-cpp
++++ export CPP=powerpc-unknown-linux-gnu-cpp
++++ CPP=powerpc-unknown-linux-gnu-cpp
++++ echo powerpc-unknown-linux-gnu-cpp
++++ alt_build_headers
++++ [[ -z '' ]]
+++++ alt_headers
+++++ [[ -z '' ]]
+++++ is_crosscompile
+++++ [[ x86_64-pc-linux-gnu != powerpc-unknown-linux-gnu ]]
+++++ ALT_HEADERS=/usr/powerpc-unknown-linux-gnu/usr/include
+++++ echo /usr/powerpc-unknown-linux-gnu/usr/include
++++ ALT_BUILD_HEADERS=/usr/powerpc-unknown-linux-gnu/usr/include
++++ tc-is-cross-compiler
+++++ [[ x86_64-pc-linux-gnu != x86_64-pc-linux-gnu ]]
++++ return
++++ echo /usr/powerpc-unknown-linux-gnu/usr/include
+++ powerpc-unknown-linux-gnu-cpp -I /usr/powerpc-unknown-linux-gnu/usr/include
+++ printf '#include <linux/version.h>\nLINUX_VERSION_CODE\n'
++ local version=132132
++ [[ 132132 -ge 132617 ]]
++ echo 1
+ eend 1
+ local retval=1
+ shift
+ _eend 1 eerror ''
+ local retval=1 efunc=eerror msg
+ shift 2
+ [[ 1 == \0 ]]
+ [[ -n '' ]]
+ msg='[34;01m[ [31;01m!![34;01m ][0m'
+ [[ yes == \y\e\s ]]
+ echo -e '[A[102C  [34;01m[ [31;01m!![34;01m ][0m'
[A[102C  [34;01m[ [31;01m!![34;01m ][0m
+ return 1
+ LAST_E_CMD=eend
+ return 1
+ echo

+ eerror 'You need linux-headers of at least version 2.6.9'

But i can't find where he gets LINUX_VERSION_CODE == 132617
Comment 4 SpanKY gentoo-dev 2009-05-17 21:45:05 UTC
132617 is correct.  that is 2.6.9.

132132 is 2.4.36.  in other words you installed the wrong headers.