gpt4 book ai didi

linux - gcc 在 hpc 上出错

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:18:35 25 4
gpt4 key购买 nike

我想用我们大学的hpc,但是系统的gcc版本太旧,无法编译我需要的新包。所以我想在本地安装一个新版本的gcc。

我下载了gcc-5.2.0包并进行了配置。当我制作文件时,有一些错误,导致进程被杀死。进程被杀死前的最后一句话是

/home/$USERNAME/software/gcc-5.2.0/host-x86_64-unknown-linux-gnu/prev-gcc/xg++ -B/home/$USERNAME/software/gcc-5.2.0/host-x86_64-unknown-linux-gnu/prev-gcc/ -B/home/$USERNAME/local/gcc-5.2.0/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/home/$USERNAME/software/gcc-5.2.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/$USERNAME/software/gcc-5.2.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/$USERNAME/software/gcc-5.2.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/home/$USERNAME/software/gcc-5.2.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/home/$USERNAME/software/gcc-5.2.0/libstdc++-v3/libsupc++ -L/home/$USERNAME/software/gcc-5.2.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/$USERNAME/software/gcc-5.2.0/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/$USERNAME/local/gmp-4.3.2//include -I/home/$USERNAME/local/mpfr-2.4.2/include -I/home/$USERNAME/local/mpc-1.0.1//include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace -o insn-recog.o -MT insn-recog.o -MMD -MP -MF ./.deps/insn-recog.TPo insn-recog.c

错误信息为

xg++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
make[3]: *** [insn-recog.o] Error 4
make[3]: Leaving directory '/home/$USERNAME/software/gcc-5.2.0/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/$USERNAME/software/gcc-5.2.0'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/home/$USERNAME/software/gcc-5.2.0'
make: *** [all] Error 2

我查了一些关于这类问题的问题,好像是内存不够引起的。但是我在一个有超过 20G 空闲内存的 hpc 上运行。所以我不知道问题是什么以及如何解决。

操作系统版本为Red Hat 4.4.7-3

最佳答案

事实证明,还是内存的问题。登录节点似乎没有使用交换内存。我必须登录到测试节点才能安装软件。

关于linux - gcc 在 hpc 上出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47320354/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com