【问题标题】:How do I resolve a LIBRARY_PATH Cilk build-error on Ubuntu Linux?如何解决 Ubuntu Linux 上的 LIBRARY_PATH Cilk 构建错误?
【发布时间】:2017-10-24 08:40:23
【问题描述】:

我正在按照Build GCC cilkplus | CilkPlus 上的说明进行操作。我尝试make 并收到此错误:

checking target system type... x86_64-unknown-linux-gnu
checking LIBRARY_PATH variable... contains current directory
configure: error:
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
Makefile:3965: recipe for target 'configure-stage1-gcc' failed
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: Leaving directory '/home/username/b-gcc'
Makefile:21970: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/home/username/b-gcc'
Makefile:894: recipe for target 'all' failed
make: *** [all] Error 2

【问题讨论】:

  • 呃...从源代码构建 GCC 是一个大话题。你是在树外建造吗?即,您不能“就地”构建;您必须在树外或临时目录中构建。在深入了解某人的包装之前,请参阅 GCC wiki 上的 Installing GCC 以获得一些指示。
  • @jww,感谢您的回复,我在 $HOME/ 下创建了一个名为“b-gcc”的新目录
  • 我刚刚添加了 GCC 版本 5 及更高版本,并且 Cilk 内置在其中,所以我通过这种方式解决了问题。

标签: linux gcc autotools autoconf cilk


【解决方案1】:

我刚刚添加了 GCC 版本 5 及更高版本,并且 Cilk 已内置,所以我通过这种方式解决了问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-09
    • 1970-01-01
    • 2022-08-24
    • 2022-01-18
    • 2021-03-09
    • 2016-11-02
    相关资源
    最近更新 更多