Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE ERROR at wrap/CMakeLists.txt:29 (target_link_libraries):The "debug" argument must be followed by a library. #120

Closed
yuktimatta12 opened this issue Sep 20, 2019 · 11 comments

Comments

@yuktimatta12
Copy link

On trying to build version 4.0.0 found here: https://bitbucket.org/gtborg/gtsam/get/357e739127de.zip

I face the following issue:
CMAKE ERROR at wrap/CMakeLists.txt:29 (target_link_libraries):The "debug" argument must be followed by a library.

Below is what I see on the terminal window:
The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- GTSAM_SOURCE_ROOT_DIR: [/home/guhao/Documents/gtsam]
Boost 1.43 found.
Found Boost components:
serialization;system;filesystem;thread;program_options;date_time;timer;chrono;regex
-- GTSAM_BOOST_LIBRARIES: optimized;debug
-- Found TBB: /usr/include (found version "4.4") found components: tbb tbbmalloc
-- Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARIES)
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
CMake Warning (dev) at wrap/CMakeLists.txt:29 (target_link_libraries):
Link library type specifier "optimized" is followed by specifier "debug"
instead of a library name. The first specifier will be ignored.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at wrap/CMakeLists.txt:29 (target_link_libraries):
The "debug" argument must be followed by a library.

-- Configuring incomplete, errors occurred!
See also "/home/guhao/Documents/gtsam/build/CMakeFiles/CMakeOutput.log".
See also "/home/guhao/Documents/gtsam/build/CMakeFiles/CMakeError.log".

Any idea what could be going on?
I did try turning the GTSAM_BUILD_WRAP flag to off in the CMakeLists.txt file but the above error merely persists.

@ProfFan ProfFan added this to the GTSAM 4.1 milestone Sep 23, 2019
@ProfFan
Copy link
Collaborator

ProfFan commented Sep 23, 2019

Please try the latest develop and check if there is a similar problem. Also, please including steps for reproduction.

@ProfFan ProfFan removed this from the GTSAM 4.1 milestone Sep 23, 2019
@yuktimatta12
Copy link
Author

yuktimatta12 commented Sep 23, 2019 via email

@ProfFan
Copy link
Collaborator

ProfFan commented Sep 23, 2019

All the command line inputs and outputs.

You are absolutely welcome :)

@yuktimatta12
Copy link
Author

Please see below the command line inputs and outputs:

adas@adas-Latitude-E5550:/usr/local/gtsam-develop$ cd build
adas@adas-Latitude-E5550:/usr/local/gtsam-develop/build$ sudo cmake ..
[sudo] password for adas:
-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- GTSAM_SOURCE_ROOT_DIR: [/usr/local/gtsam-develop]
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET COMPONENTS serialization;system;filesystem;thread;program_options;date_time;timer;chrono;regex
-- Found boost_headers 1.70.0 at /usr/local/lib/cmake/boost_headers-1.70.0
-- Found boost_serialization 1.70.0 at /usr/local/lib/cmake/boost_serialization-1.70.0
-- libboost_serialization.so.1.70.0
-- Adding boost_serialization dependencies: headers
-- Found boost_system 1.70.0 at /usr/local/lib/cmake/boost_system-1.70.0
-- libboost_system.so.1.70.0
-- Adding boost_system dependencies: headers
-- Found boost_filesystem 1.70.0 at /usr/local/lib/cmake/boost_filesystem-1.70.0
-- libboost_filesystem.so.1.70.0
-- Adding boost_filesystem dependencies: headers
-- Found boost_thread 1.70.0 at /usr/local/lib/cmake/boost_thread-1.70.0
-- libboost_thread.so.1.70.0
-- Adding boost_thread dependencies: headers
-- Found boost_program_options 1.70.0 at /usr/local/lib/cmake/boost_program_options-1.70.0
-- libboost_program_options.so.1.70.0
-- Adding boost_program_options dependencies: headers
-- Found boost_date_time 1.70.0 at /usr/local/lib/cmake/boost_date_time-1.70.0
-- libboost_date_time.so.1.70.0
-- Adding boost_date_time dependencies: headers
-- Found boost_timer 1.70.0 at /usr/local/lib/cmake/boost_timer-1.70.0
-- libboost_timer.so.1.70.0
-- Adding boost_timer dependencies: chrono;headers
-- Found boost_chrono 1.70.0 at /usr/local/lib/cmake/boost_chrono-1.70.0
-- libboost_chrono.so.1.70.0
-- Adding boost_chrono dependencies: headers
-- Found boost_regex 1.70.0 at /usr/local/lib/cmake/boost_regex-1.70.0
-- libboost_regex.so.1.70.0
-- Adding boost_regex dependencies: headers
-- Found Boost: /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found suitable version "1.70.0", minimum required is "1.43") found components: serialization system filesystem thread program_options date_time timer chrono regex
-- GTSAM_BOOST_LIBRARIES: optimized;/usr/local/lib/libboost_serialization.so.1.70.0;optimized;/usr/local/lib/libboost_system.so.1.70.0;optimized;/usr/local/lib/libboost_filesystem.so.1.70.0;optimized;/usr/local/lib/libboost_thread.so.1.70.0;optimized;/usr/local/lib/libboost_date_time.so.1.70.0;optimized;/usr/local/lib/libboost_regex.so.1.70.0;debug;debug;debug;debug;debug;debug
-- Found TBB: /usr/include (found suitable version "4.4", minimum required is "4.4") found components: tbb tbbmalloc
-- Found MKL: /opt/intel/mkl/include
-- Found OpenMP_C: -fopenmp (found version "4.0")
-- Found OpenMP_CXX: -fopenmp (found version "4.0")
-- Found OpenMP: TRUE (found version "4.0")
-- Found Eigen version: 3.3.7
CMake Error at wrap/CMakeLists.txt:32 (target_link_libraries):
The "debug" argument must be followed by a library.

-- Configuring incomplete, errors occurred!
See also "/usr/local/gtsam-develop/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/gtsam-develop/build/CMakeFiles/CMakeError.log".

I don't know if this helps but when I try to changing the GTSAM_BUILD_WRAP flag to OFF in the gtsam-develop/CMakeLists.txt file, the above errors shifts from wrap/CMakeLists.txt to gtsam/CMakeLists.txt (though the error remains the same.)

@ProfFan
Copy link
Collaborator

ProfFan commented Sep 23, 2019

  1. Why sudo cmake? Does not make much sense. Please check your local development environment.
  2. What is your system version? CMake Version?

@yuktimatta12
Copy link
Author

  1. The following site mentions sudo cmake as one of the steps to build:
    https://gtsam.org/build/
  2. I'm using Ubuntu version 16.04.6 LTS
    CMake version 3.15

@ProfFan
Copy link
Collaborator

ProfFan commented Sep 23, 2019

@yuktimatta12 Are you sure? I searched for sudo and it is not there.

@yuktimatta12
Copy link
Author

Yes you're right. However if just type "cmake .." without sudo, I get 'permission denied' errors (as you can see below)
I've currently stored the gtsam-develop code in /usr/local which is why I tried it with sudo

adas@adas-Latitude-E5550:/usr/local/gtsam-develop/build$ cmake ..
CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineSystem.cmake:173 (file):
file failed to open for writing (No such file or directory):

/usr/local/gtsam-develop/build/CMakeFiles/CMakeOutput.log

Call Stack (most recent call first):
CMakeLists.txt:1 (project)

CMake Error: Could not open file for write in copy operation /usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineSystem.cmake:185 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdCXX
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:862 (file):
file failed to open for writing (No such file or directory):

/usr/local/gtsam-develop/build/CMakeFiles/CMakeError.log

Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:60 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:862 (file):
file failed to open for writing (No such file or directory):

/usr/local/gtsam-develop/build/CMakeFiles/CMakeError.log

Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:60 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:111 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

-- The CXX compiler identification is unknown
CMake Error: Could not open file for write in copy operation /usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CMakeCXXCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCXXCompiler.cmake:210 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

CMake Error: Could not find cmake module file: /usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CMakeCXXCompiler.cmake
CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:228 (file):
file problem creating directory:
/usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CompilerIdC
Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:862 (file):
file failed to open for writing (No such file or directory):

/usr/local/gtsam-develop/build/CMakeFiles/CMakeError.log

Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:60 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:862 (file):
file failed to open for writing (No such file or directory):

/usr/local/gtsam-develop/build/CMakeFiles/CMakeError.log

Call Stack (most recent call first):
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCompilerId.cmake:60 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
/usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:1 (project)

-- The C compiler identification is unknown
CMake Error: Could not open file for write in copy operation /usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CMakeCCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeDetermineCCompiler.cmake:212 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

CMake Error: Could not find cmake module file: /usr/local/gtsam-develop/build/CMakeFiles/3.15.2/CMakeCCompiler.cmake
-- Check for working CXX compiler: /usr/bin/c++
CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeTestCXXCompiler.cmake:32 (file):
file failed to open for writing (No such file or directory):

/usr/local/gtsam-develop/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

Call Stack (most recent call first):
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeTestCXXCompiler.cmake:37 (try_compile):
Unknown extension ".cxx" for file

/usr/local/gtsam-develop/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

try_compile() works only for enabled languages. Currently these are:

C CXX

See project() command to enable other languages.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

-- Check for working CXX compiler: /usr/bin/c++ -- broken
CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeTestCXXCompiler.cmake:49 (file):
file failed to open for writing (No such file or directory):

/usr/local/gtsam-develop/build/CMakeFiles/CMakeError.log

Call Stack (most recent call first):
CMakeLists.txt:1 (project)

CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeTestCXXCompiler.cmake:53 (message):
The C++ compiler

"/usr/bin/c++"

is not able to compile a simple test program.

It fails with the following output:

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /usr/local/gtsam-develop/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /usr/local/gtsam-develop/build/CMakeCache.txt
CMake Error: : System Error: Permission denied

@ProfFan
Copy link
Collaborator

ProfFan commented Sep 23, 2019

Please refer to general docs for CMake and Linux operations. This is not a bug of GTSAM.

Note that you should not put source code in usr/local

@ProfFan ProfFan closed this as completed Sep 23, 2019
@yuktimatta12
Copy link
Author

Do you have any idea what the cmake error might be due to if not GTSAM?

@ProfFan
Copy link
Collaborator

ProfFan commented Sep 23, 2019

Privilege problems. Please refer to general documentations.

varunagrawal added a commit that referenced this issue Sep 18, 2021
add6075e8 Merge pull request #121 from borglab/feature/constructor-templates
42d4145bb update instantiate_ctors to handle constructor level templates
455ce6169 update test fixtures
3c37fc2a0 update wrapper test fixtures
ffdad925d update interface_parser to pass the tests
bf7416213 add interface_parser test for templated constructor
9fe05d0c9 Merge pull request #120 from borglab/feature/templated-namespace
7622e6432 typo fix
88779c5e6 update instantiator to handle templates in the namespace
0ee86f9a3 add test for templated type in namespace

git-subtree-dir: wrap
git-subtree-split: add6075e8ec0e28d5f47d0a2ecab00deaa9a3da7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants