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
Created attachment 163034 [details] Logfile /var/log/portage/cross-armeb-softfloat-linux-uclibc-info.log Logfile #1 of crossdev
Created attachment 163036 [details] Logfile /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc-headers.log Logfile #2 of crossdev
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
P.S. I Don't attach my logfiles, the error messages are exactly the same.
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.
With 0.9.27-r1, the headers build, but the actual uclibc merge crashes later. So, thist is NOT a workaround :-(
Created attachment 163195 [details] The error log of uclibc-0.9.27-r1 #1
Created attachment 163197 [details] The error log of uclibc-0.9.27-r1 #2
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
Actually where it bombs out it should be gcc vs uclibc. The headers ebuild should be bitching about no *-gcc
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.
(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'. *
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.
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.
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?
Created attachment 163454 [details] emerge --info of the machine that built a cross toolchain
Created attachment 163455 [details] emerge --info of the machine that fails building the same toolchain
(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...
*** This bug has been marked as a duplicate of bug 234748 ***