Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489732 - Emerging sys-devel/gcc-4.8.1-r1 failed at compile (configuration?) phase
Summary: Emerging sys-devel/gcc-4.8.1-r1 failed at compile (configuration?) phase
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2013-10-29 09:54 UTC by Hiroshi Takenaka
Modified: 2013-10-30 08:17 UTC (History)
1 user (show)

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

The complete build log of sys-devel/gcc (20131029_GCC_build.log,9.85 KB, text/x-log)
2013-10-29 09:54 UTC, Hiroshi Takenaka
an archive of gcc build logs (gcc-build-logs.tar.bz2,5.20 KB, application/x-bzip)
2013-10-29 09:59 UTC, Hiroshi Takenaka
The build log of dev-libs/gmp (20131029_emerge-gmp.log,5.74 KB, text/plain)
2013-10-29 12:26 UTC, Hiroshi Takenaka

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroshi Takenaka 2013-10-29 09:54:45 UTC
Created attachment 362202 [details]
The complete build log of sys-devel/gcc

During world update, emerging sys-devel/gcc-4.8.1-r1 failed,
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at  See also for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.
 * ERROR: sys-devel/gcc-4.8.1-r1::gentoo failed (compile phase):
 *   failed to run configure

It says that it failed at compile phase but it seems to fail at configuration.

The emerge --info and -pqv logs are the followings:
-----emerge --info-----
Portage 2.2.7 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.17, 3.11.2-gentoo i686)
System uname: Linux-3.11.2-gentoo-i686-Intel-R-_Celeron-R-_CPU_450_@_2.20GHz-with-gentoo-2.2
KiB Mem:      768112 total,     21316 free
KiB Swap:    1048572 total,    865480 free
Timestamp of tree: Mon, 28 Oct 2013 08:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r4, 3.2.5-r3, 3.3.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
CFLAGS="-O2 -march=i686 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="X acl acpi alsa berkdb bzip2 cjk cli cracklib crypt cxx dri dvd fortran gdbm gstreamer hal iconv modules mudflap ncurses nls nptl opengl openmp pam pcre readline session ssl tcpd unicode upcall x86 xfce zlib" ABI_X86="32" ALSA_CARDS="ens1371" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="vmware vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

-----emerge -pqv sys-devel/gcc------
[ebuild  NS   ] sys-devel/gcc-4.8.1-r1 [4.7.3-r1] USE="cxx fortran mudflap nls nptl openmp (-altivec) -doc (-fixed-point) -gcj -go -graphite -gtk (-hardened) (-libssp) -lto (-multilib) -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 

The complete build log is attached.
Comment 1 Hiroshi Takenaka 2013-10-29 09:59:22 UTC
Created attachment 362206 [details]
an archive of gcc build logs

The error message recommended this archive to be included in the bugzilla.
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2013-10-29 10:11:39 UTC
Do you have dev-libs/gmp in your system? What does this command return on you?

find /usr/include  -type f -name gmp.h
Comment 3 Hiroshi Takenaka 2013-10-29 11:29:53 UTC
The command 'find /usr/include -type f -name gmp.h'
returns nothing.

It seems that I don't have sys-libs/gmp.
Comment 4 Hiroshi Takenaka 2013-10-29 12:04:34 UTC
emerge -pqv dev-libs/gmp returns the following.

[ebuild   R   ] dev-libs/gmp-5.1.3-r1  USE="cxx -doc -pgo -static-libs" 

It seems that dev-libs/gmp has been emerged, however,
it has not been correctly installed, such as lacking gmp.pc.

Comment 5 Hiroshi Takenaka 2013-10-29 12:23:17 UTC
I emerged dev-libs/gmp.
However, both gmp.h and gmp.pc are not found.
The package does not seem to be correctly installed.

I add the build log of dev-libs/gmp.

Comment 6 Hiroshi Takenaka 2013-10-29 12:26:44 UTC
Created attachment 362226 [details]
The build log of dev-libs/gmp

Emerging this package seems successful but not correctly installed.
Comment 7 Panagiotis Christopoulos (RETIRED) gentoo-dev 2013-10-29 12:46:39 UTC
It seems there is some udev issue on your system. Please paste the output of "emerge -pv udev" and check whether you've compiled your kernel with CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y (zgrep -i devtmpfs /proc/config.gz) . Check also if you have the udev and udev-mount scripts inside /etc/init.d . Last, is udevd running (pgrep udevd) ?
Comment 8 Hiroshi Takenaka 2013-10-30 07:49:44 UTC
The output of 'emerge -pv udev' is:
Calculating dependencies  .... ...... done!
[ebuild  N     ] sys-fs/udev-init-scripts-26  0 kB
[ebuild     U  ] sys-apps/systemd-208-r2:0/1 [207-r2:0/0] USE="acl filecaps fir
mware-loader gudev kmod pam tcpd -audit -cryptsetup -doc -gcrypt -http -introsp
ection -lzma -policykit -python -qrcode (-selinux) {-test} -vanilla -xattr (-op
enrc%)" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 0 kB
[ebuild     U  ] virtual/udev-206-r3 [206-r2] USE="gudev kmod -introspection (-
selinux) -static-libs" 0 kB

Total: 3 packages (2 upgrades, 1 new), Size of downloads: 0 kB

And there is no config.gz in /proc but:
hiro@Gentoo-PC /usr/src/linux $ grep DEVTMPFS .config

I don't have any scripts of udev and udev-mount in /etc/init.d

I am using systemd for init process because I have a problems to mount /dev/pts and /dev/shm during booting process (Bug 486998).
Comment 9 Panagiotis Christopoulos (RETIRED) gentoo-dev 2013-10-30 08:17:44 UTC
If the only reason for having systemd in your system is issues you have inside /dev/* then maybe you should consider unmerging systemd and re-emerging sys-fs/udev with the openrc use flag enabled and revert back to normal openrc booting. I don't know what you're trying to achieve generally, it seems to me that you're messing around with your vm atm so:

*) if you're just trying to install gentoo on vmware to learn and play, follow the normal documentation until you're more familiar with how things work

*) if you know what you're doing and want to play with systemd, carry on but try to find proper documentation on systemd on gentoo (if it exists) and ask on other channels like forums or irc. 

In either case, if I were you I would backup my current work and start a fresh gentoo installation following our official documentation[1]. I'm resolving this as TEST-REQUEST for now. Please reopen if you still have issues and you believe there is a bug.