Linux共享文件夹下编译错误 fatal error: XXX input/output error
- 【现象描述】
vmware+ubuntu20.04,一个程序在Linux系统中可以编译通过,在Linux和Windows的共享文件夹中编译时报错。
- 【错误信息】
fatal error: XXX input/output error,recipe for target X failed。
- 【原因分析】
根据系统的提示信息,在生成可执行文件时出错。原因是存放可执行文件的位置是Linux和Windows共享的,在Windows中存在权限的问题。经查询 /workplace/ec20/ql-ol-sdk/ql-ol-crosstool/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/…/…/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.9.2/ld 为符号链接,而windows不支持软链接。
- 【解决方案】
在Linux下进行编译。参考链接:https://blog.csdn.net/a0408152/article/details/71750013 。