Project-HAMi / HAMi-core

HAMi-core compiles libvgpu.so, which ensures hard limit on GPU in container
72 stars 37 forks source link

build error with "cc1: error: too many filenames given. Type cc1 --help for usage" #5

Open marviniter opened 4 months ago

marviniter commented 4 months ago

Build lib error with:

cc1: error: too many filenames given.  Type cc1 --help for usage
cc1: fatal error: CMakeFiles/test_alloc.dir/test_alloc.c.d: No such file or directory
compilation terminated.
A-transformer commented 2 weeks ago

same issue make[1]: [CMakeFiles/Makefile2:718: test/CMakeFiles/test_runtime_host_alloc.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:484: test/CMakeFiles/test_alloc_managed.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:562: test/CMakeFiles/test_create_array.dir/all] Error 2 cc1: error: too many filenames given; type ‘cc1 --help’ for usage cc1: fatal error: CMakeFiles/test_runtime_alloc_managed.dir/test_runtime_alloc_managed.c.d: No such file or directory compilation terminated. make[2]: [test/CMakeFiles/test_host_register.dir/build.make:76: test/CMakeFiles/test_host_register.dir/test_host_register.c.o] Error 1 make[2]: Leaving directory '/root/HAMi-core/build' make[1]: [CMakeFiles/Makefile2:614: test/CMakeFiles/test_host_register.dir/all] Error 2 make[2]: [test/CMakeFiles/test_runtime_alloc_managed.dir/build.make:76: test/CMakeFiles/test_runtime_alloc_managed.dir/test_runtime_alloc_managed.c.o] Error 1 make[2]: Leaving directory '/root/HAMi-core/build' make[1]: [CMakeFiles/Makefile2:692: test/CMakeFiles/test_runtime_alloc_managed.dir/all] Error 2 cc1: error: too many filenames given; type ‘cc1 --help’ for usage cc1: fatal error: CMakeFiles/test_runtime_alloc.dir/test_runtime_alloc.c.d: No such file or directory compilation terminated. make[2]: [test/CMakeFiles/test_runtime_alloc.dir/build.make:76: test/CMakeFiles/test_runtime_alloc.dir/test_runtime_alloc.c.o] Error 1