Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548796 - dev-lang/ghc fails to build - ghc: could not execute: i686-pc-linux-gnu-gcc
Summary: dev-lang/ghc fails to build - ghc: could not execute: i686-pc-linux-gnu-gcc
Status: RESOLVED DUPLICATE of bug 531016
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-06 19:21 UTC by Antti Järvinen
Modified: 2016-05-14 17:23 UTC (History)
0 users

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


Attachments
emerge.info of the machine (emerge.info,4.59 KB, application/x-info)
2015-05-06 19:22 UTC, Antti Järvinen
Details
build log from "emerge x11" (build.log,4.93 KB, text/plain)
2015-05-12 18:06 UTC, Antti Järvinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Järvinen 2015-05-06 19:21:26 UTC
On minimal gentoo system that is actually running inside virtualbox on amd64 hw emulating i486 hw command "emerge x11" fails when emerging ghc-7.6.3. It looks like configure scripts tries to select wrong compiler. Gcc itself is functional, but in i686-pc-linux-gnu-gcc flavour. 

output goes like this:
 * econf: updating ghc-7.6.3/libraries/unix/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu --target=i486-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --with-gcc=i486-pc-linux-gnu-gcc --enable-bootstrap-with-devel-snapshot
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for ghc... /var/tmp/portage/dev-lang/ghc-7.6.3-r1/work/usr/bin/ghc
checking version of ghc... 7.6.3
checking build system type... i486-pc-linux-gnu
checking host system type... i486-pc-linux-gnu
checking target system type... i486-pc-linux-gnu
HOST: i486-pc-linux-gnu
GHC build  : i386-unknown-linux
GHC host   : i386-unknown-linux
GHC target : i386-unknown-linux
configure: Building in-tree ghc-pwd
ghc: could not execute: i686-pc-linux-gnu-gcc
configure: error: Building ghc-pwd failed
Comment 1 Antti Järvinen 2015-05-06 19:22:16 UTC
Created attachment 402778 [details]
emerge.info of the machine
Comment 2 Michael Palimaka (kensington) gentoo-dev 2015-05-09 19:21:46 UTC
Please attach the full build log.
Comment 3 Antti Järvinen 2015-05-12 18:06:46 UTC
Created attachment 403146 [details]
build log from "emerge x11"
Comment 4 Antti Järvinen 2015-05-12 18:11:25 UTC
Please find attached build.log. In addition it might be worth noting that inside virtualbox 

$ uname -a 
Linux entuu 3.18.11-gentoo #1 SMP Wed Apr 15 00:41:03 EEST 2015 i686 AMD Athlon(
tm) 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linux
$ cat /proc/cpuinfo

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 43
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
stepping        : 1
cpu MHz         : 1795.979
cache size      : 512 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
...

and
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/i486-pc-linux-gnu/gcc-bin/4.8.4/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i486-pc-linux-gnu/4.8.4/lto-wrapper
Target: i486-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/configure -
-host=i486-pc-linux-gnu --build=i486-pc-linux-gnu --prefix=/usr --bindir=/usr/i4
86-pc-linux-gnu/gcc-bin/4.8.4 --includedir=/usr/lib/gcc/i486-pc-linux-gnu/4.8.4/
include --datadir=/usr/share/gcc-data/i486-pc-linux-gnu/4.8.4 --mandir=/usr/shar
e/gcc-data/i486-pc-linux-gnu/4.8.4/man --infodir=/usr/share/gcc-data/i486-pc-lin
ux-gnu/4.8.4/info --with-gxx-include-dir=/usr/lib/gcc/i486-pc-linux-gnu/4.8.4/in
clude/g++-v4 --with-python-dir=/share/gcc-data/i486-pc-linux-gnu/4.8.4/python --
enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-we
rror --with-system-zlib --enable-nls --without-included-gettext --enable-checkin
g=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.4
 p1.5, pie-0.6.1' --enable-libstdcxx-time --enable-shared --enable-threads=posix
 --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec
 --disable-fixed-point --with-arch=i486 --enable-targets=all --disable-libgcj --
enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloo
g --enable-libsanitizer
Thread model: posix
gcc version 4.8.4 (Gentoo 4.8.4 p1.5, pie-0.6.1) 

if that helps at all. The system has been emerged as "i486", e.g. in make.conf CFLAGS="-O2 -march=i486" -pipe"
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2015-05-14 20:23:27 UTC
> $ cat /proc/cpuinfo
> 
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 43
> model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
> stepping        : 1
> cpu MHz         : 1795.979
> cache size      : 512 KB
> physical id     : 0
> siblings        : 1
> core id         : 0
> cpu cores       : 1
> apicid          : 0

> Target: i486-pc-linux-gnu

Yeah, it's a known issue of prebuilt binaries using i686 CHOST.

One day we will workaround it, but do you really need dev-haskell/x11
on i486 triplet and not x11-base/xorg-x11 package?
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2016-05-14 17:23:59 UTC

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