Gentoo Archives: gentoo-user

From: Arnau Bria <arnau@×××××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] configure: error: C compiler cannot create executables
Date: Tue, 08 May 2007 13:58:24
Message-Id: 20070508165459.11581c9b@pataki.bogus.net
1 Hi,
2
3 after a emerge -uD world, and depclean, my system asks for some
4 packages:
5 # cat /root/.revdep-rebuild.5_order
6 dev-libs/apr-util-0.9.12
7 dev-lang/perl-5.8.8-r2
8 net-www/apache-2.0.58-r2
9 mail-mta/postfix-2.3.6
10 net-libs/libetpan-0.49
11 dev-lang/php-5.2.1-r3
12 mail-client/claws-mail-2.9.1
13
14 but, when I try to emerge them, I get the error:
15
16 [...]
17 checking build system type... i686-pc-linux-gnu
18 checking host system type... i686-pc-linux-gnu
19 checking target system type... i686-pc-linux-gnu
20 checking for working mkdir -p... yes
21 APR-util Version: 0.9.12
22 checking for chosen layout... apr-util
23 Applying apr-util hints file rules for i686-pc-linux-gnu
24 checking for APR... yes
25 setting CC to "i386-pc-linux-gnu-gcc"
26 setting CPP to "i386-pc-linux-gnu-gcc -E"
27 adding "-pthread" to CFLAGS
28 setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
29 checking for i686-pc-linux-gnu-gcc... i386-pc-linux-gnu-gcc
30 checking for C compiler default output file name... configure: error: C compiler cannot create executables
31 See `config.log' for more details.
32
33 !!! Please attach the following file when filing a report to bugs.gentoo.org:
34 !!! /var/tmp/portage/dev-libs/apr-util-0.9.12/work/apr-util-0.9.12/config.log
35
36 I'm looking forums, google, etc... and I don't find a valid solution.
37 I'm not sure if it's a compiler problem or not, cause I've been able to
38 recompile some packages (binutils, i.e.)
39
40 config.log:
41
42 ## ----------- ##
43 ## Core tests. ##
44 ## ----------- ##
45
46 configure:1581: checking build system type
47 configure:1599: result: i686-pc-linux-gnu
48 configure:1607: checking host system type
49 configure:1621: result: i686-pc-linux-gnu
50 configure:1629: checking target system type
51 configure:1643: result: i686-pc-linux-gnu
52 configure:1664: checking for working mkdir -p
53 configure:1680: result: yes
54 configure:1764: checking for chosen layout
55 configure:1766: result: apr-util
56 configure:1973: checking for APR
57 configure:2033: result: yes
58 configure:2119: checking for i686-pc-linux-gnu-gcc
59 configure:2145: result: i386-pc-linux-gnu-gcc
60 configure:2427: checking for C compiler version
61 configure:2430: i386-pc-linux-gnu-gcc --version </dev/null >&5
62 gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
63 configure:2433: $? = 1
64 configure:2435: i386-pc-linux-gnu-gcc -v </dev/null >&5
65 gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
66 configure:2438: $? = 1
67 configure:2440: i386-pc-linux-gnu-gcc -V </dev/null >&5
68 gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
69 configure:2443: $? = 1
70 configure:2466: checking for C compiler default output file name
71 configure:2469: i386-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -fomit-frame-pointer -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c >&5
72 gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
73 configure:2472: $? = 1
74 configure: failed program was:
75 | /* confdefs.h. */
76 |
77 | #define PACKAGE_NAME ""
78 | #define PACKAGE_TARNAME ""
79 | #define PACKAGE_VERSION ""
80 | #define PACKAGE_STRING ""
81 | #define PACKAGE_BUGREPORT ""
82 | /* end confdefs.h. */
83 |
84 | int
85 | main ()
86 | {
87 |
88 | ;
89 | return 0;
90 | }
91 configure:2511: error: C compiler cannot create executables
92 See `config.log' for more details.
93 [...]
94
95
96 # gcc-config -l
97 [1] i686-pc-linux-gnu-4.1.1 *
98
99 here's some extra info:
100 # emerge --info
101 Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r2, 2.6.19-gentoo-r5 i686)
102 =================================================================
103 System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
104 Gentoo Base System release 1.12.9
105 Timestamp of tree: Tue, 08 May 2007 06:50:01 +0000
106 dev-java/java-config: 1.3.7, 2.0.31-r5
107 dev-lang/python: 2.4.4
108 dev-python/pycrypto: 2.0.1-r5
109 sys-apps/sandbox: 1.2.17
110 sys-devel/autoconf: 2.13, 2.61
111 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
112 sys-devel/binutils: 2.16.1-r3
113 sys-devel/gcc-config: 1.3.16
114 sys-devel/libtool: 1.5.22
115 virtual/os-headers: 2.6.17-r2
116 ACCEPT_KEYWORDS="x86"
117 AUTOCLEAN="yes"
118 CBUILD="i686-pc-linux-gnu"
119 CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
120 CHOST="i686-pc-linux-gnu"
121 CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
122 CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
123 CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
124 DISTDIR="/usr/portage/distfiles"
125 FEATURES="distlocks metadata-transfer sandbox sfperms strict"
126 GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
127 LANG="es_ES.UTF-8"
128 LC_ALL="es_ES.UTF-8"
129 PKGDIR="/usr/portage/packages"
130 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
131 PORTAGE_TMPDIR="/var/tmp"
132 PORTDIR="/usr/portage"
133 SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
134 USE="X alsa apache2 berkdb bitmap-fonts cgi clamav clamd cracklib crypt ctype cups dri gdbm gpm gtk gtk2 iconv imap midi mpeg2 mysql ncurses nls nptl nptlonly opengl pcre perl php ppds python readline sasl session spamassassin spell spl ssl tcltk tcpd thunar truetype-fonts type1-fonts unicode userlocales vhost vhosts win32codecs x86 xfacei xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="r128 ati vesa"
135 Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
136
137
138 TIA,
139 Arnau
140 --
141 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] configure: error: C compiler cannot create executables Arnau Bria <arnau@×××××××××.net>
Re: [gentoo-user] configure: error: C compiler cannot create executables "Bo Ørsted Andresen" <bo.andresen@××××.dk>