CMake Error at internal/ceres/CMakeLists.txt
envgap__ceres-solver__ceres-solver-840
Original GitHub issue ↗Opened 2022-07-19
01 / FAILURE SIGNATURE
As reported upstream
c++: error: /bigobj: No such file or directory
Not a benchmark task.
- No curated issue-specific recipe or verified environment fix is available.
02 / ENVIRONMENT RECIPE
- Base commit
Not freshly verified- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
ceres-solver/ceres-solver #840 · read the original issue
Hey,
When i run
`cmake ../ceres-solver-2.1.0`
I got a trouble as follows:
CMake Error at internal/ceres/CMakeLists.txt:141 (add_test):
Error evaluating generator expression:
$<TARGET_FILE:cuda_dense_qr_test>
No target "cuda_dense_qr_test"
CMake Error at internal/ceres/CMakeLists.txt:145 (add_test):
Error evaluating generator expression:
$<TARGET_FILE:cuda_dense_cholesky_test>
No target "cuda_dense_cholesky_test"
CMakeError.log:
Performing C++ SOURCE FILE Test HAVE_BIGOBJ failed with the following output:
Change Dir: /home/SENSETIME/wanjunhui/cvproject/external/ceres-bin/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_f0163/fast && /usr/bin/make -f CMakeFiles/cmTC_f0163.dir/build.make CMakeFiles/cmTC_f0163.dir/build
make[1]: Entering directory '/home/SENSETIME/wanjunhui/cvproject/external/ceres-bin/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_f0163.dir/src.cxx.o
/usr/bin/c++ -DHAVE_BIGOBJ -fPIE /bigobj -o CMakeFiles/cmTC_f0163.dir/src.cxx.o -c /home/SENSETIME/wanjunhui/cvproject/external/ceres-bin/CMakeFiles/CMakeTmp/src.cxx
c++: error: /bigobj: No such file or directory
CMakeFiles/cmTC_f0163.dir/build.make:77: recipe for target 'CMakeFiles/cmTC_f0163.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_f0163.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/SENSETIME/wanjunhui/cvproject/external/ceres-bin/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_f0163/fast' failed
make: *** [cmTC_f0163/fast] Error 2
Source file was:
int main() { return 0; }
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/SENSETIME/wanjunhui/cvproject/external/ceres-bin/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_210d6/fast && /usr/bin/make -f CMakeFiles/cmTC_210d6.dir/build.make CMakeFiles/cmTC_210d6.dir/build
make[1]: Entering directory '/home/SENSETIME/wanjunhui/cvproject/external/ceres-bin/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_210d6.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -fPIC -fPIE -o CMakeFiles/cmTC_210d6.dir/src.c.o -c /home/SENSETIME/wanjunhui/cvproject/external/ceres-bin/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_210d6
/home/SENSETIME/wanjunhui/anaconda3/envs/rfdnet_ori/lib/python3.6/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/cmTC_210d6.dir/link.txt --verbose=1
/usr/bin/cc -fPIC CMakeFiles/cmTC_210d6.dir/src.c.o -o cmTC_210d6
CMakeFiles/cmTC_210d6.dir/src.c.o: In function `main':
src.c:(.text+0x3e): undefined reference to `pthread_create'
src.c:(.text+0x4a): undefined reference to `pthread_detach'
src.c:(.text+0x56): undefined reference to `pthread_cancel'
src.c:(.text+0x67): undefined reference to `pthread_join'
src.c:(.text+0x7b): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_210d6.dir/build.make:98: recipe for target 'cmTC04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]
Issue-specific recipe and runtime smoke command require review against the complete issue and repository.
Legacy reproduction is generic install-only; match the actual issue failure before admission.