Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190510 - crossdev fails in glibc-headers (--with-headers)
Summary: crossdev fails in glibc-headers (--with-headers)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-28 12:40 UTC by Bob Deblier
Modified: 2007-10-07 03:43 UTC (History)
0 users

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


Attachments
Log file (cross-ia64-unknown-linux-gnu-linux-headers.log,103.31 KB, text/plain)
2007-08-28 12:41 UTC, Bob Deblier
Details
cross-ia64-unknown-linux-gnu-glibc-headers.log (cross-ia64-unknown-linux-gnu-glibc-headers.log,3.68 KB, text/plain)
2007-08-28 18:30 UTC, Bob Deblier
Details
cross-ia64-unknown-linux-gnu-info.log (cross-ia64-unknown-linux-gnu-info.log,9.66 KB, text/plain)
2007-08-28 18:31 UTC, Bob Deblier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Deblier 2007-08-28 12:40:08 UTC
I think there's a problem in the build sequence for toolchains ia64-unknown-linux-gnu; after building binutils it proceeds with glibc-headers (which fails because it needs ia64-unknown-linux-gnu-cpp) instead of with gcc stage 1.


Reproducible: Always

Steps to Reproduce:
1. crossdev -S -t ia64-unknown-linux-gnu


Actual Results:  

Output:

--------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   ia64
 * Target System:         ia64-unknown-linux-gnu
 * Stage:                 4 (C/C++ compiler)

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

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

 * glibc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-ia64-unknown-linux-gnu-info.log
 * /var/log/portage/cross-ia64-unknown-linux-gnu-glibc-headers.log
Comment 1 Bob Deblier 2007-08-28 12:41:25 UTC
Created attachment 129471 [details]
Log file
Comment 2 SpanKY gentoo-dev 2007-08-28 14:05:21 UTC
you posted the wrong log files ... you should have posted:
/var/log/portage/cross-ia64-unknown-linux-gnu-info.log
/var/log/portage/cross-ia64-unknown-linux-gnu-glibc-headers.log

but you attached:
/var/log/portage/cross-ia64-unknown-linux-gnu-linux-headers-quick.log

please re-open once you've posted the correct ones
Comment 3 Bob Deblier 2007-08-28 18:30:33 UTC
Created attachment 129497 [details]
cross-ia64-unknown-linux-gnu-glibc-headers.log
Comment 4 Bob Deblier 2007-08-28 18:31:03 UTC
Created attachment 129499 [details]
cross-ia64-unknown-linux-gnu-info.log
Comment 5 Bob Deblier 2007-08-28 18:35:59 UTC
Requested log files provided. As mentioned earlier, the problem is the apparent absence of ia64-unknown-linux-gnu-cpp, which is not built until gcc stage 1.

Looks like a classic chicken-and-the-egg problem: to build the headers you need the compiler, but the compiler apparently needs the headers. From looking inside the crossdev script I can see that ia64 is a special case, which gets a special flag (WITH_DEF_HEADERS) set to "yes".
Comment 6 SpanKY gentoo-dev 2007-10-07 03:43:18 UTC
fixed in cvs