试图在CentOS 6上构建gcc-4.7.2,rpath找不到我的共享库

时间:2017-08-21 19:12:08

标签: linux gcc

以下编译命令行失败,包含"没有这样的文件"错误:

/tmp/test/gcc-4.7.2-build_dir/./gcc/xgcc
    -B/tmp/test/gcc-4.7.2-build_dir/./gcc/
    -B/tmp/test/4.7.2/x86_64-redhat-linux/bin/
    -B/tmp/test/4.7.2/x86_64-redhat-linux/lib/
    --with-cloog-lib=/usr/intel/pkgs/gcc/4.7.2/lib64
    -Wl,-rpath=/tmp/test/4.7.2/lib
    -B/tmp/test/4.7.2/lib
    -isystem /tmp/test/4.7.2/x86_64-redhat-linux/include
    -isystem /tmp/test/4.7.2/x86_64-redhat-linux/sys-include
    -c -g -O2  conftest.c

/tmp/test/gcc-4.7.2-build_dir/./gcc/cc1: error while loading shared libraries: libcloog-ppl.so.1: cannot open shared object file: No such file or directory

如何在构建gcc-4.7.2

期间包含运行时库路径

0 个答案:

没有答案