level 2
极曦
楼主
VMware共享文件夹中通过cmake来交叉编译项目出现“fatal error: cmTC_44cb4: Input/output error”,原因已知是代码在虚拟机与windows共享文件夹中;解决方法:将其移至linux 用户目录下则解决此问题。
但是项目要用svn,所以不太方便,想问下有没有好的解决办法。
下面是cmake过程出现的详细信息。
CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler
"/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /mnt/hgfs/Linux/ThuStd/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_44cb4/fast"
/usr/bin/make -f CMakeFiles/cmTC_44cb4.dir/build.make
CMakeFiles/cmTC_44cb4.dir/build
make[1]: Entering directory
'/mnt/hgfs/Linux/ThuStd/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_44cb4.dir/testCCompiler.c.o
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
--sysroot=/usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux-gnueabi
-DOPEN_ADAS_INFO -O2 -pipe -g -feliminate-unused-debug-types
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-imx6qsabresd/1.0-r8=/usr/src/debug/meta-environment-imx6qsabresd/1.0-r8
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/sysroots/x86_64-linux=
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/sysroots/x86_64-nativesdk-pokysdk-linux=
-O3 -DNDEBUG -o CMakeFiles/cmTC_44cb4.dir/testCCompiler.c.o -c
/mnt/hgfs/Linux/ThuStd/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_44cb4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_44cb4.dir/link.txt
--verbose=1
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
--sysroot=/usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux-gnueabi
-O2 -pipe -g -feliminate-unused-debug-types
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-imx6qsabresd/1.0-r8=/usr/src/debug/meta-environment-imx6qsabresd/1.0-r8
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/sysroots/x86_64-linux=
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/sysroots/x86_64-nativesdk-pokysdk-linux=
-O3 -DNDEBUG -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
CMakeFiles/cmTC_44cb4.dir/testCCompiler.c.o -o cmTC_44cb4
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.9.3/real-ld:
fatal error: cmTC_44cb4: Input/output error
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_44cb4.dir/build.make:97: recipe for target 'cmTC_44cb4'
failed
make[1]: *** [cmTC_44cb4] Error 1
make[1]: Leaving directory
'/mnt/hgfs/Linux/ThuStd/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_44cb4/fast' failed
make: *** [cmTC_44cb4/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:9 (project)
-- Configuring incomplete, errors occurred!
2020年07月21日 14点07分
1
但是项目要用svn,所以不太方便,想问下有没有好的解决办法。
下面是cmake过程出现的详细信息。
CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler
"/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /mnt/hgfs/Linux/ThuStd/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_44cb4/fast"
/usr/bin/make -f CMakeFiles/cmTC_44cb4.dir/build.make
CMakeFiles/cmTC_44cb4.dir/build
make[1]: Entering directory
'/mnt/hgfs/Linux/ThuStd/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_44cb4.dir/testCCompiler.c.o
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
--sysroot=/usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux-gnueabi
-DOPEN_ADAS_INFO -O2 -pipe -g -feliminate-unused-debug-types
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-imx6qsabresd/1.0-r8=/usr/src/debug/meta-environment-imx6qsabresd/1.0-r8
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/sysroots/x86_64-linux=
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/sysroots/x86_64-nativesdk-pokysdk-linux=
-O3 -DNDEBUG -o CMakeFiles/cmTC_44cb4.dir/testCCompiler.c.o -c
/mnt/hgfs/Linux/ThuStd/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_44cb4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_44cb4.dir/link.txt
--verbose=1
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
--sysroot=/usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux-gnueabi
-O2 -pipe -g -feliminate-unused-debug-types
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-imx6qsabresd/1.0-r8=/usr/src/debug/meta-environment-imx6qsabresd/1.0-r8
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/sysroots/x86_64-linux=
-fdebug-prefix-map=/home/hope/work/nxp/fsl-release-bsp/imx6q-qt/tmp/sysroots/x86_64-nativesdk-pokysdk-linux=
-O3 -DNDEBUG -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
CMakeFiles/cmTC_44cb4.dir/testCCompiler.c.o -o cmTC_44cb4
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.9.3/real-ld:
fatal error: cmTC_44cb4: Input/output error
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_44cb4.dir/build.make:97: recipe for target 'cmTC_44cb4'
failed
make[1]: *** [cmTC_44cb4] Error 1
make[1]: Leaving directory
'/mnt/hgfs/Linux/ThuStd/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_44cb4/fast' failed
make: *** [cmTC_44cb4/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:9 (project)
-- Configuring incomplete, errors occurred!