gpt4 book ai didi

linux - make gcc : "cp: Permission denied" 期间出错

转载 作者:行者123 更新时间:2023-12-05 07:06:57 27 4
gpt4 key购买 nike

我做了什么

在我最初的空构建目录中,我配置了 gcc

/home/anthony/Documents/gcc-pi/gcc/configure --prefix=/opt/gcc --enable-multilib --disable-shared --enable-static --disable-bootstrap -- disable-libstdcxx-pch --enable-languages=all --enable-libgomp --enable-threads=posix --enable-tls --with-system-zlib --with-isl --enable-__cxa_atexit --enable-主机共享 CFLAGS='-lpthread -fPIC' CXXFLAGS='-lpthread -fPIC' CPPFLAGS='-fPIC'

然后我发出 make 并在成功构建之后,构建最终失败并显示以下内容

make[2]: Entering directory '/home/anthony/Documents/gcc/gcc'
mkdir -p ada/bldtools/sinfo
rm -f ada/bldtools/sinfo/sinfo.ads ada/bldtools/sinfo/sinfo.adb ada/bldtools/sinfo/xsinfo.adb ada/bldtools/sinfo/csinfo.adb
cp -p /home/anthony/Documents/gcc-pi/gcc/gcc/ada/sinfo.ads /home/anthony/Documents/gcc-pi/gcc/gcc/ada/sinfo.adb /home/anthony/Documents/gcc-pi/gcc/gcc/ada/xsinfo.adb /home/anthony/Documents/gcc-pi/gcc/gcc/ada/csinfo.adb ada/bldtools/sinfo
make[2]: cp: Permission denied
make[2]: *** [/home/anthony/Documents/gcc-pi/gcc/gcc/ada/Make-generated.in:44: ada/sinfo.h] Error 127
make[2]: Leaving directory '/home/anthony/Documents/gcc/gcc'
make[1]: *** [Makefile:4411: all-gcc] Error 2
make[1]: Leaving directory '/home/anthony/Documents/gcc'
make: *** [Makefile:970: all] Error 2

我尝试了什么

我试过了

  1. sudo make
  2. sudo chmod 777 -R gcc 源和构建目录
  3. sudo cp -p /home/anthony/Documents/gcc-pi/gcc/gcc/ada/sinfo.ads /home/anthony/Documents/gcc-pi/gcc/gcc/ada/sinfo.adb /home/anthony/Documents/gcc-pi/gcc/gcc/ada/xsinfo.adb /home/anthony/Documents/gcc-pi/gcc/gcc/ada/csinfo.adb ada/bldtools/sinfod ```

所有这些都未能推进构建。请注意,最后一个命令成功了,但是当我在此之后尝试继续构建时,它会产生相同的错误。

有什么想法吗?提前致谢。

最佳答案

有同样的问题。看起来问题与 gcc 包有关,因为它包含“cp”目录。在“https://aur.archlinux.org/packages/libgccjit/?O=10&PP=10”中找到了解决方案。就我而言,我有“。”我的 PATH 环境变量中的文件夹。删除它使编译过程继续。

关于linux - make gcc : "cp: Permission denied" 期间出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62306699/

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