Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234914 - crossdev-0.9.18-r9 crossdev armeb-softfloat-linux-uclibc fails on amd64 and x86
Summary: crossdev-0.9.18-r9 crossdev armeb-softfloat-linux-uclibc fails on amd64 and x86
Status: RESOLVED DUPLICATE of bug 234748
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-16 13:00 UTC by tazinblack
Modified: 2008-10-27 06:54 UTC (History)
0 users

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


Attachments
Logfile /var/log/portage/cross-armeb-softfloat-linux-uclibc-info.log (cross-armeb-softfloat-linux-uclibc-info.log,11.38 KB, text/plain)
2008-08-16 13:05 UTC, tazinblack
Details
Logfile /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc-headers.log (cross-armeb-softfloat-linux-uclibc-uclibc-headers.log,22.44 KB, text/plain)
2008-08-16 13:05 UTC, tazinblack
Details
The error log of uclibc-0.9.27-r1 #1 (cross-armeb-softfloat-linux-uclibc-info.log,12.03 KB, text/plain)
2008-08-18 11:20 UTC, Tobias Leupold
Details
The error log of uclibc-0.9.27-r1 #2 (cross-armeb-softfloat-linux-uclibc-uclibc.log,17.58 KB, text/plain)
2008-08-18 11:20 UTC, Tobias Leupold
Details
emerge --info of the machine that built a cross toolchain (cross_working_emerge--info.txt,3.72 KB, text/plain)
2008-08-21 09:19 UTC, Tobias Leupold
Details
emerge --info of the machine that fails building the same toolchain (cross_failed_emerge--info.txt,3.86 KB, text/plain)
2008-08-21 09:19 UTC, Tobias Leupold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tazinblack 2008-08-16 13:00:55 UTC
Building crossdev environment with crossdev armeb-softfloat-linux-uclibc fails


Reproducible: Always

Steps to Reproduce:
1.crossdev armeb-softfloat-linux-uclibc
2.
3.

Actual Results:  
crossdev armeb-softfloat-linux-uclibc
--------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   arm
 * Target System:         armeb-softfloat-linux-uclibc
 * Stage:                 4 (C/C++ compiler)

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

 * PORTDIR_OVERLAY:       /usr/portage/local/layman/wschlich-testing
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/armeb-softfloat-linux-uclibc
 * PORTAGE_TMPDIR:        /var/tmp/cross/armeb-softfloat-linux-uclibc
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...     [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-binutils.log
 * Emerging cross-binutils ...                                            [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-linux-headers-quick.log
 * Emerging cross-linux-headers-quick ...                                 [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc-headers.log
 * Emerging cross-uclibc-headers ...

 * uclibc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-armeb-softfloat-linux-uclibc-info.log
 * /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc-headers.log



Expected Results:  
Build a crossdev environment
Comment 1 tazinblack 2008-08-16 13:05:04 UTC
Created attachment 163034 [details]
Logfile /var/log/portage/cross-armeb-softfloat-linux-uclibc-info.log

Logfile #1 of crossdev
Comment 2 tazinblack 2008-08-16 13:05:48 UTC
Created attachment 163036 [details]
Logfile /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc-headers.log

Logfile #2 of crossdev
Comment 3 Tobias Leupold 2008-08-17 14:08:06 UTC
Same Situation here:

erhome tobias # crossdev -t armeb-softfloat-linux-uclibc
--------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   arm
 * Target System:         armeb-softfloat-linux-uclibc
 * Stage:                 4 (C/C++ compiler)

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

 * PORTDIR_OVERLAY:       /var/portage/overlays/local
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/binpkg/cross/armeb-softfloat-linux-uclibc
 * PORTAGE_TMPDIR:        /var/tmp/cross/armeb-softfloat-linux-uclibc
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                               [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-binutils.log
 * Emerging cross-binutils ...                                                                                      [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-linux-headers-quick.log
 * Emerging cross-linux-headers-quick ...                                                                           [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc-headers.log
 * Emerging cross-uclibc-headers ...

 * uclibc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-armeb-softfloat-linux-uclibc-info.log
 * /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc-headers.log
Comment 4 Tobias Leupold 2008-08-17 14:10:15 UTC
P.S. I Don't attach my logfiles, the error messages are exactly the same.
Comment 5 Tobias Leupold 2008-08-18 08:22:35 UTC
I tried some other versions of uclibc via --libc. It compiles with 0.9.27-r1, but all other versions (0.9.28.3, 0.9.28.3-r6, 0.9.28.3-r7) show the same behaviour and crash.
Comment 6 Tobias Leupold 2008-08-18 09:03:51 UTC
With 0.9.27-r1, the headers build, but the actual uclibc merge crashes later. So, thist is NOT a workaround :-(
Comment 7 Tobias Leupold 2008-08-18 11:20:32 UTC
Created attachment 163195 [details]
The error log of uclibc-0.9.27-r1 #1
Comment 8 Tobias Leupold 2008-08-18 11:20:41 UTC
Created attachment 163197 [details]
The error log of uclibc-0.9.27-r1 #2
Comment 9 solar (RETIRED) gentoo-dev 2008-08-18 15:16:30 UTC
I think I know the bug you are encountering and it seems related to ordering.

Here is the semi quick work around.

crossdev -t armeb-softfloat-linux-uclibc
.. (wait for it to bomb out)

emerge cross-armeb-softfloat-linux/uclibc

... let it finish. Then go back to crossdev and 

crossdev -t armeb-softfloat-linux-uclibc
Comment 10 solar (RETIRED) gentoo-dev 2008-08-18 15:17:47 UTC
Actually where it bombs out it should be gcc vs uclibc. The headers ebuild should be bitching about no *-gcc
Comment 11 Tobias Leupold 2008-08-18 17:01:32 UTC
Does not work here. uclibc crashes building the locales. Setting USE="-nls -iconv", it crashes later with some

make[1]: execvp: armeb-softfloat-linux-uclibc-gcc: Permission denied

messages. Emergeing the cross-gcc crashes with

checking float.h usability... no
checking float.h presence... yes
configure: WARNING: float.h: present but cannot be compiled
configure: WARNING: float.h:     check for missing prerequisite headers?
configure: WARNING: float.h: see the Autoconf documentation
configure: WARNING: float.h:     section "Present But Cannot Be Compiled"
configure: WARNING: float.h: proceeding with the preprocessor's result
configure: WARNING: float.h: in the future, the compiler will take precedence
configure: WARNING:     ## ----------------------------------------- ##
configure: WARNING:     ## Report this to the package-unused lists.  ##
configure: WARNING:     ## ----------------------------------------- ##
checking for float.h... yes
checking for endian.h... (cached) no
checking for inttypes.h... (cached) no
checking locale.h usability... no
checking locale.h presence... no
checking for locale.h... no
checking for float.h... (cached) yes
checking for stdint.h... (cached) no
checking for ld that supports -Wl,-z,relro... yes
checking for main in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libstdc++-v3] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/cross-armeb-softfloat-linux-uclibc/gcc-4.1.2/work/build'
make: *** [all] Fehler 2
 *
 * ERROR: cross-armeb-softfloat-linux-uclibc/gcc-4.1.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4585:  Called toolchain_src_compile
 *             environment, line 5102:  Called gcc_src_compile
 *             environment, line 2942:  Called gcc_do_make
 *             environment, line 2772:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with all
 *
 * 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-armeb-softfloat-linux-uclibc:gcc-4.1.2:20080818-163243.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-armeb-softfloat-linux-uclibc/gcc-4.1.2/temp/environment'.
 * This ebuild is from an overlay: '/var/portage/overlays/local/'
 *

Re-running USE="-iconv -nls" crossdev -t armeb-softfloat-linux-uclibc still crashes at the build cross-uclibc-headers step complainig about a missing armeb-softfloat-linux-uclibc-gcc.
Comment 12 tazinblack 2008-08-19 16:38:32 UTC
(In reply to comment #9)
> I think I know the bug you are encountering and it seems related to ordering.
> 
> Here is the semi quick work around.
> 
> crossdev -t armeb-softfloat-linux-uclibc
> .. (wait for it to bomb out)
> 
> emerge cross-armeb-softfloat-linux/uclibc
> 
> ... let it finish. Then go back to crossdev and 
> 
> crossdev -t armeb-softfloat-linux-uclibc
> 

I think you mean :

emerge cross-armeb-softfloat-linux-uclibc/uclibc

But this doesn't work, too.

Here's a bit of the output. If you need more let me know :

make: *** [wctables.h] Speicherzugriffsfehler
make: *** Warte auf noch nicht beendete Prozesse...
 * 
 * ERROR: cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2545:  Called die
 * The specific snippet of code:
 *           emake || die "make locales failed";
 *  The die message:
 *   make locales failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7/temp/environment'.
 * 

 * Messages for package cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7:

 * You really should consider setting UCLIBC_CPU
 * Otherwise, the build will be generic (read: slow).
 * Available CPU options:
 * 
 * ERROR: cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2545:  Called die
 * The specific snippet of code:
 *           emake || die "make locales failed";
 *  The die message:
 *   make locales failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7/temp/environment'.
 *

Comment 13 solar (RETIRED) gentoo-dev 2008-08-19 16:43:36 UTC
Well I can't read .de but I'm pretty sure that says segfault in wctables.h if so long standing problem which the solution is to make sure you USE="-*" to get nls/iconv disabled. UCLIBC_CPU=GENERIC_ARM is what it will default to. See the ebuild for all supported arm platforms. This works. I just built the toolchain for a nslu2 also.
Comment 14 Tobias Leupold 2008-08-19 16:52:18 UTC
It does definitely not work. The segfault with wctables.h is actually caused by the nls/iconv use flag (as I said above), but even with

USE="-*" UCLIBC_CPU=GENERIC_ARM

crossdev dies building cross-uclibc-headers, and

USE="-*" UCLIBC_CPU=GENERIC_ARM emerge cross-armeb-softfloat-linux-uclibc/uclibc

dies with some "execvp: armeb-softfloat-linux-uclibc-gcc: Permission denied" errors (exactly as described above, see my post).

Still the same situation.
Comment 15 Tobias Leupold 2008-08-21 09:18:20 UTC
I played around a bit and got a working cross toolchain on my notebook with the following versions:

=cross-armeb-softfloat-linux-uclibc/binutils-2.16.1-r3
=cross-armeb-softfloat-linux-uclibc/linux-headers-2.6.23-r3
=cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7
=cross-armeb-softfloat-linux-uclibc/gcc-3.4.6-r2

interestingly, the same setup fails with the errors described above on my desktop -- although both machines have a quite equal setup. I'll attach emerge --info from both machines, perhaps, anybody can find out why it fails on one of them?
Comment 16 Tobias Leupold 2008-08-21 09:19:00 UTC
Created attachment 163454 [details]
emerge --info of the machine that built a cross toolchain
Comment 17 Tobias Leupold 2008-08-21 09:19:24 UTC
Created attachment 163455 [details]
emerge --info of the machine that fails building the same toolchain
Comment 18 tazinblack 2008-08-21 17:58:16 UTC
(In reply to comment #15)
> I played around a bit and got a working cross toolchain on my notebook with the
> following versions:
> 
> =cross-armeb-softfloat-linux-uclibc/binutils-2.16.1-r3
> =cross-armeb-softfloat-linux-uclibc/linux-headers-2.6.23-r3
> =cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7
> =cross-armeb-softfloat-linux-uclibc/gcc-3.4.6-r2
> 
> interestingly, the same setup fails with the errors described above on my
> desktop -- although both machines have a quite equal setup. I'll attach emerge
> --info from both machines, perhaps, anybody can find out why it fails on one of
> them?
> 


(In reply to comment #15)
> I played around a bit and got a working cross toolchain on my notebook with the
> following versions:
> 
> =cross-armeb-softfloat-linux-uclibc/binutils-2.16.1-r3
> =cross-armeb-softfloat-linux-uclibc/linux-headers-2.6.23-r3
> =cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28.3-r7
> =cross-armeb-softfloat-linux-uclibc/gcc-3.4.6-r2
> 
> interestingly, the same setup fails with the errors described above on my
> desktop -- although both machines have a quite equal setup. I'll attach emerge
> --info from both machines, perhaps, anybody can find out why it fails on one of
> them?
> 

Sorry, but on both, my notebook and my big machine even the above versions fail.
Maybe you're a lucky guy having a working cross toolchain and I ave still to wait for a solution. So my nslu2 will have to wait...
Comment 19 SpanKY gentoo-dev 2008-10-27 06:54:21 UTC

*** This bug has been marked as a duplicate of bug 234748 ***