When building a cross toolchain using crossdev with -s2 -t arm-unknown-linux-uclibc, after building the gcc stage 1, the build of linux-headers failed with several "make: arm-unknown-linux-uclibc-gcc: Command not found" errors. The required arm gcc is actually installed at /usr/arm-unknown-linux-uclibc/gcc-bin/3.4.4/arm-unknown-linux-uclibc-gcc. But there is no symlink for it in /usr/bin, like those for binutils, such as /usr/bin/arm-unknown-linux-uclibc-ld linking to ../arm-unknown-linux-uclibc/bin/ld. Reproducible: Always Steps to Reproduce: 1. run 'crossdev -v -s2 -t arm-unknown-linux-uclibc' 2. 3. Actual Results: After stage 1 gcc, the build of linux-headers fails with "make: arm-unknown-linux-uclibc-gcc: Command not found". Expected Results: There should be symlink in /usr/bin for stage 1 gcc. /var/log/portage/cross-arm-unknown-linux-uclibc-info.log ======================================================== -------------------------------------------------------------------------------- * Host Portage ARCH: x86 * Target Portage ARCH: arm * Target System: arm-unknown-linux-uclibc * Stage: 2 (C compiler & libc) * binutils: binutils-[latest] * gcc: gcc-[latest] * headers: linux-headers-[latest] * libc: uclibc-[latest] * PORTDIR_OVERLAY: /usr/local/portage * PORT_LOGDIR: /var/log/portage * PKGDIR: /usr/portage/packages/cross/arm-unknown-linux-uclibc * PORTAGE_TMPDIR: /var/tmp/cross/arm-unknown-linux-uclibc _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - Gentoo Base System version 1.6.12 Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686) ================================================================= System uname: 2.6.11-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 1.90GHz Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 8 2005, 15:46:06)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages/cross/arm-unknown-linux-uclibc" PORTAGE_TMPDIR="/var/tmp/cross/arm-unknown-linux-uclibc" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr cjk crypt cups curl dv emboss encode esd fam flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 java jpeg junit libg++ libwww live mad mikmod mmx mmx2 motif mozilla mp3 mpeg mysql ncurses network nls nptl ogg oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline samba sdl spell sqlite sse sse2 ssl svga tcltk tcpd theora tiff truetype truetype-fonts type1-fonts userlocales vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS /var/log/portage/cross-arm-unknown-linux-uclibc-linux-headers.log ================================================================= Calculating dependencies >>> Unpacking source... arm >>> Unpacking linux-2.6.11.tar.bz2 to /var/tmp/cross/arm-unknown-linux-uclibc/portage/linux-headers-2.6.11-r2/work * gentoo-headers-2.6.11-1.tar.bz2 unpacked * Applying 2.6-ppc64-Makefile.patch (-p0+) ... [ ok ] * Applying 2.6.0-fb.patch (-p0+) ... [ ok ] * Applying 2.6.0-sysctl_h-compat.patch (-p0+) ... [ ok ] * Applying 2.6.10-generic-arm-prepare.patch (-p0+) ... [ ok ] * Applying 2.6.11-appCompat.patch (-p0+) ... [ ok ] * Applying 2.6.8.1-soundcard-ppc64.patch (-p0+) ... [ ok ] * Applying 2.6.8.1-strict-ansi-fix.patch (-p0+) ... [ ok ]>>> Source unpacked. make: arm-unknown-linux-uclibc-gcc: Command not found make: arm-unknown-linux-uclibc-gcc: Command not found HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include HOSTCC scripts/basic/docproc make: arm-unknown-linux-uclibc-gcc: Command not found make: arm-unknown-linux-uclibc-gcc: Command not found SHIPPED scripts/kconfig/zconf.tab.h HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/mconf.o [...] CRC-CCITT functions (CRC_CCITT) [N/m/y/?] (NEW) n CRC32 functions (CRC32) [Y/?] y CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [N/m/y/?] (NEW) nmake: arm-unknown-linux-uclibc-gcc: Command not found make: arm-unknown-linux-uclibc-gcc: Command not found make: arm-unknown-linux-uclibc-gcc: Command not found SPLIT include/linux/autoconf.h -> include/config/* make: arm-unknown-linux-uclibc-gcc: Command not found CC scripts/mod/empty.o /bin/sh: arm-unknown-linux-uclibc-gcc: command not found make[2]: *** [scripts/mod/empty.o] Error 127 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2 !!! ERROR: cross-arm-unknown-linux-uclibc/linux-headers-2.6.11-r2 failed. !!! Function compile_headers, Line 386, Exitcode 2 !!! prepare failed !!! If you need support, post the topmost build error, NOT this status message. ...done! >>> emerge (1 of 1) cross-arm-unknown-linux-uclibc/linux-headers-2.6.11-r2 to / [...]
Mike, should crossdev run gcc-config for the target compiler, or should the user do that ?
the eclass should be doing it ... it used to not but i fixed it and i have yet to experience this bug on my systems ;/
attach the build logs like crossdev told you to mainly i want the gcc-stage1 log
Created attachment 62820 [details] gcc stage 1 build log Since the error occurs when building linux-headers, I didn't attach the gcc stage 1 build log. Here it is.
what version of gcc-config do you have ? older versions (1.3.10) had a bug which would cause toolchain.eclass to not properly run gcc-config
(In reply to comment #5) > what version of gcc-config do you have ? older versions (1.3.10) had a bug > which would cause toolchain.eclass to not properly run gcc-config It was 1.3.11-r3. Today, I just updated to 1.3.11-r4 as it has become stable. Will try again, but don't know if there is any difference.
*** Bug 111304 has been marked as a duplicate of this bug. ***
Is this still an issue with gcc-config?