Скомпилируйте старую версию gcc - PullRequest
1 голос
/ 08 июня 2011

Я пытаюсь скомпилировать версию gcc gcc4.3.2, используя версию gcc 4.1.2 20080704 (Red Hat 4.1.2-50) на ОС CentOS 5.5. Первоначально компилятор жаловался на необходимость библиотек gmp и mpfr, которые затем были успешно загружены, скомпилированы и установлены.

После установки использовалась новая команда настройки:

.. / gcc4.3.2 / gcc-4.3.2 / configure --prefix = / home / shahw / gccdir / --with-gmp = / usr / local / --with-mpfr = / usr / local /

Теперь я сталкиваюсь со следующей ошибкой:

checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... /home/shahw/gccobj/./gcc/xgcc -
B/home/shahw/gccobj/./gcc/ -B/home/shahw/gccdir//x86_64-unknown-linux-gnu/bin/               
B/home/shahw/gccdir//x86_64-unknown-linux-gnu/lib/ -isystem /home/shahw/gccdir//x86_64-    
unknown-linux-gnu/include -isystem /home/shahw/gccdir//x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/shahw/gccobj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/shahw/gccobj'
make: *** [all] Error 2

config.log в конце содержит следующее:

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 0

Любой намек на потенциальное решение был бы очень признателен.

1 Ответ

0 голосов
/ 08 июня 2011

Вот ссылка, которая кажется хорошей для начала: http://www.linuxquestions.org/questions/linux-from-scratch-13/why-cannot-compute-suffix-of-object-files-350753/

...