configure: error: C++ compiler cannot create executables (при сборке любых пакетов из тарболлов)

Sabayon, Calculate, Funtoo, Exherbo

Модератор: /dev/random

sbar
Сообщения: 354
ОС: Gentoo

configure: error: C++ compiler cannot create executables

Сообщение sbar »

вот такая проблема после пересборки мира:

Код: Выделить всё

pr0b3l@desktop ~/.fluxx/pekwm-0.1.5 $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
pr0b3l@desktop ~/.fluxx/pekwm-0.1.5 $ gcc --version
gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
а при сборки из ebuild'ов - все хорошо.
из config.log - ничего не понятно (мне), поэтому прикладываю. а гугл все время мне советует CFLAGS проверить, но с ними все в порядке.
куда копать?
У вас нет необходимых прав для просмотра вложений в этом сообщении.
Спасибо сказали:
Аватара пользователя
Zm1y
Сообщения: 153
Статус: Steel rat
ОС: Gentoo 2007.0 profile

Re: configure: error: C++ compiler cannot create executables

Сообщение Zm1y »

Pr0b3L писал(а):
29.07.2007 23:26
вот такая проблема после пересборки мира:

Код: Выделить всё

pr0b3l@desktop ~/.fluxx/pekwm-0.1.5 $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
pr0b3l@desktop ~/.fluxx/pekwm-0.1.5 $ gcc --version
gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
а при сборки из ebuild'ов - все хорошо.
из config.log - ничего не понятно (мне), поэтому прикладываю. а гугл все время мне советует CFLAGS проверить, но с ними все в порядке.
куда копать?



env-update && source /etc/profile помочь может... (скорее всего траблда возникла после обновления gcc)
work : Sempron 2800/1024/40+120+80+160/NVGFfx6600Gt
Home: 1 2xOpteron x2 3500/4096/4x500SATAII+(2x120+1x80)IDE/NVGFfx7300Gt
2 NoteBook Asus Z99H Gentoo 2007.0 profile
3 NoteBook HP pavillion 6570ea Gentoo 2007.0 profile
Спасибо сказали:
Civil
Сообщения: 199
ОС: Gentoo Current

Re: configure: error: C++ compiler cannot create executables

Сообщение Civil »

Pr0b3L
1) А что мешает найти ebuild или сделать его самому?
2) CXXFLAGS проверь. Очень вероятно, что из-за него проблема (может быть вместо " использовал ' или `, а это важно), ибо смущает надпись: g++: ${CFLAGS}: No such file or directory.
"Кто управляет прошлым, тот управляет будущим; кто управляет настоящим, тот управляет прошлым" (Д. Оруэлл "1984")
Спасибо сказали:
sbar
Сообщения: 354
ОС: Gentoo

Re: configure: error: C++ compiler cannot create executables

Сообщение sbar »

дело оказалось в CPPFLAGS, теперь все нормально, спасибо :)
вписал вручную CPPFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" вместо CPPFLAGS="${CFLAGS}".
Спасибо сказали:
Аватара пользователя
serzh-z
Бывший модератор
Сообщения: 8259
Статус: Маньяк
ОС: Arch, Fedora, Ubuntu

Re: configure: error: C++ compiler cannot create executables

Сообщение serzh-z »

Pr0b3L писал(а):
30.07.2007 13:29
вписал вручную CPPFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS
Спасибо сказали: