【发布时间】:2012-05-27 18:21:03
【问题描述】:
我正在尝试从 Cyclone 编程语言的源编译器构建。我正在运行 32 位 Ubuntu 12.04,默认安装 GCC 4.6.3。
但是由于引导实用程序崩溃,make 失败。为了解决这个问题,我正在尝试安装较旧的 GCC 版本。
我已经修补了 /etc/apt/sources.list 并使用 apt-get 安装了 gcc-3.3 和 g++-3.3。但是配置脚本在强制使用 GCC 3.3 时会失败:
$ export CC=gcc-3.3
$ export CXX=g++-3.3
$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc-3.3
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
而 config.log 显示:
...
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lgcc_s
...
ld的版本是2.22
【问题讨论】:
标签: gcc ld configure downgrade cyclone