cannot overwrite non-directory编译问题的解决

cp -fpR /home/a/work/qsdk/qsdk_git/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/initial/. /home/a/work/qsdk/qsdk_git/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/
cp: cannot overwrite non-directory '/home/a/work/qsdk/qsdk_git/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/./mips-openwrt-linux-uclibc/lib' with directory '/home/a/work/qsdk/qsdk_git/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/initial/./mips-openwrt-linux-uclibc/lib'
make[3]: *** [/home/a/work/qsdk/qsdk_git/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/stamp/.gcc_initial_installed] Error 1

解决方法:

手动删掉:

rm -rf /home/a/work/qsdk/qsdk_git/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/initial/./mips-openwrt-linux-uclibc/

然后手动复制:

cp -fpR /home/a/work/qsdk/qsdk_git/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/initial/. /home/a/work/qsdk/qsdk_git/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/

如果还是不行,执行多几次复制命令,覆盖复制多几次。

你可能感兴趣的:(Linux库的编译)