在 RHEL 8.8 中安装 GCC 5.2.0

在 RHEL 8.8 中安装 GCC 5.2.0

我正在尝试在我的 RHEL 8.8 服务器中安装 GCC 5.2.0,因为它需要我正在使用的工具。但是,我在运行命令时收到错误make。以下是我使用的命令,包括我收到的错误:

tar -xvf gcc-5.2.0.tar.gz
cd gcc-5.2.0
./contrib/download_prerequisites
cd ..
mkdir gcc-build-5.2.0
cd gcc-build-5.2.0
$PWD/../gcc-5.2.0/configure --enable-checking=release --enable-packages=c,c++ --disable-multilib
strace make -j 4

Error:
make[3]: *** [build/gensupport.o] Error 1
rm gcc.pod
make[3]: Leaving directory `/root/gcc-build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/root/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/gcc-build'
[{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0, NULL) = 1597031
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1597031, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 1597031
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=2997, ...}) = 0
read(7, "# Locale name alias data base.\n#"..., 4096) = 2997
read(7, "", 4096)                       = 0
close(7)                                = 0
openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "make: ", 6make: )                   = 6
write(2, "*** [all] Error 2", 17*** [all] Error 2)       = 17
write(2, "\n", 1
)                       = 1
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(4)                                = 0
read(3, "+", 1)                         = 1
read(3, "+", 1)                         = 1
read(3, "+", 1)                         = 1
read(3, "", 1)                          = 0
close(3)                                = 0
chdir("/root/gcc-build")                = 0
close(1)                                = 0
exit_group(2)                           = ?
+++ exited with 2 +++

我已经安装了“开发人员工具”和“gcc-c++”,但仍然出现此错误并卡在此。希望有人能帮助调试它。

相关内容