Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98075 - missing symlink for stage 1 gcc in /usr/bin, causing linux-headers build fail
Summary: missing symlink for stage 1 gcc in /usr/bin, causing linux-headers build fail
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 111304 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-05 19:58 UTC by Selwyn Tang
Modified: 2005-12-15 00:29 UTC (History)
1 user (show)

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


Attachments
gcc stage 1 build log (cross-arm-unknown-linux-uclibc-gcc-stage1.log,418.93 KB, text/plain)
2005-07-06 21:47 UTC, Selwyn Tang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Selwyn Tang 2005-07-05 19:58:12 UTC
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 /
[...]
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-06 05:35:19 UTC
Mike, should crossdev run gcc-config for the target compiler, or should the user
do that ?
Comment 2 SpanKY gentoo-dev 2005-07-06 20:46:26 UTC
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 ;/
Comment 3 SpanKY gentoo-dev 2005-07-06 20:48:58 UTC
attach the build logs like crossdev told you to

mainly i want the gcc-stage1 log
Comment 4 Selwyn Tang 2005-07-06 21:47:50 UTC
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.
Comment 5 SpanKY gentoo-dev 2005-07-07 19:24:44 UTC
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
Comment 6 Selwyn Tang 2005-07-07 19:31:19 UTC
(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.
Comment 7 SpanKY gentoo-dev 2005-11-18 07:52:54 UTC
*** Bug 111304 has been marked as a duplicate of this bug. ***
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2005-12-15 00:29:37 UTC
Is this still an issue with gcc-config?