Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100994 - emerge apache crashes with error: x86_64-pc-linux-gnu-gcc: : No such file or directory
Summary: emerge apache crashes with error: x86_64-pc-linux-gnu-gcc: : No such file or ...
Status: RESOLVED DUPLICATE of bug 94453
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-01 07:55 UTC by Casper
Modified: 2005-08-01 10:12 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casper 2005-08-01 07:55:16 UTC
"emerge apache" will result in an crash because it cant find
x86_64-pc-linux-gnu-gcc.

gcc-config -l shows:
[1] x86_64-pc-linux-gnu-3.4.4 *
[2] x86_64-pc-linux-gnu-3.4.4-hardened
[3] x86_64-pc-linux-gnu-3.4.4-hardenednopie
[4] x86_64-pc-linux-gnu-3.4.4-hardenednopiessp
[5] x86_64-pc-linux-gnu-3.4.4-hardenednossp

Reproducible: Always
Steps to Reproduce:
1.emerge apache
2.
3.

Actual Results:  
portage/apache-2.0.54-r12/work/httpd-2.0.54/modules/filters
-I/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/modules/proxy
-I/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/include
-I/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/modules/generators
-I/usr/include/openssl
-I/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/modules/dav/main
-prefer-non-pic -static -c util.c && touch util.lo
x86_64-pc-linux-gnu-gcc: : No such file or directory
make[2]: *** [util.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/apache-2.0.54-r12/work/httpd-2.0.54/server'
make: *** [all-recursive] Error 1
 
!!! ERROR: net-www/apache-2.0.54-r12 failed.
!!! Function src_compile, Line 157, Exitcode 2
!!! problem compiling apache2
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
emerge finishing withou any errors

Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.12.0_pre1
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~x86"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -pipe -ffast-math -fomit-frame-pointer -floop-optimize
-funroll-loops"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=k8 -pipe -ffast-math -fomit-frame-pointer -floop-optimize
-funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2 ccache
chroot crypt cups curl dedicated directfb dvd encode fbcon foomaticdb fortran
ftp gif gnome gpm gtk gtk2 hardenedphp iconv imlib ipv6 java jpeg kde libcaca
lm_sensors lzw lzw-tiff memlimit mhash mp3 mpeg ncurses nls nptl nptlonly
offensive opengl pam pdflib perl php png python qt quicktime readline sdl snmp
socks5 spell ssl tcltk tcpd tetex tidy tiff truetype-fonts type1-fonts usb
userlocales vhosts xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Andrew D Kirch 2005-08-01 08:18:30 UTC
run gcc-config 1
env-update
and attempt to rebuild
Comment 2 Casper 2005-08-01 08:29:26 UTC
(In reply to comment #1)
> run gcc-config 1
> env-update
> and attempt to rebuild

still the same error
Comment 3 Andrew D Kirch 2005-08-01 08:33:25 UTC
Ok if you're still getting the same error take a look at your cflags.  After
discussion with a few devs at least -ffast-math and -fomit-frame-pointers can
generate bad code on AMD64.  You may be best off to strip out the extra flags (I
use -O2 myself) and recompile world via emerge -e world.  This will take awhile
but ensure your compiler and environment are sane, where it appears at this
point they are not.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-08-01 10:12:43 UTC

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