Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Error building Lints #14

Description

@gustavojra
┌ Error: Error building `Lints`: 
│ project(Lints)
│ 
│ cmake_minimum_required(VERSION 2.8.12)
│ #set(CMAKE_INSTALL_RPATH "${CMAKE_BINARY_DIR}/lib")
│ set(CMAKE_MACOSX_RPATH 1)
│ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
│ set(CMAKE_CXX_FLAGS "-IEIGENPATH -IBOOSTPATH -I${CMAKE_BINARY_DIR}/include/ -L/Users/aroeira/.julia/artifacts/f1e4795fbec3fb6d8c009193181d95d6db7eb3ad/lib")
│ #set(CMAKE_CXX_FLAGS "-I/usr/include/eigen3 -L${CMAKE_BINARY_DIR}/lib/")
│ 
│ 
│ find_package(JlCxx REQUIRED)
│ #find_package(Libint2 REQUIRED)
│ #find_package(Eigen3 REQUIRED)
│ get_target_property(JlCxx_location JlCxx::cxxwrap_julia LOCATION)
│ get_filename_component(JlCxx_location ${JlCxx_location} DIRECTORY)
│ set(CMAKE_SKIP_BUILD_RPATH TRUE)
│ set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
│ set(CMAKE_INSTALL_RPATH "\$ORIGIN:${CMAKE_INSTALL_PREFIX}/lib:${JlCxx_location}")
│ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
│ 
│ message(STATUS "Found JlCxx at ${JlCxx_location}")
│ 
│ add_library(Lints SHARED ../src/Lints.cpp)
│ 
│ link_directories(${CMAKE_BINARY_DIR}/lib/)
│ target_link_libraries(Lints JlCxx::cxxwrap_julia)
│ target_link_libraries(Lints libint2)
│ 
│ install(TARGETS
│     Lints
│ LIBRARY DESTINATION lib
│ ARCHIVE DESTINATION lib
│ RUNTIME DESTINATION lib)
│ -- The C compiler identification is Clang 4.0.1
│ -- The CXX compiler identification is Clang 4.0.1
│ -- Check for working C compiler: /Users/aroeira/psi4conda/bin/x86_64-apple-darwin13.4.0-clang
│ -- Check for working C compiler: /Users/aroeira/psi4conda/bin/x86_64-apple-darwin13.4.0-clang -- broken
│ CMake Error at /Users/aroeira/psi4conda/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
│   The C compiler
│ 
│     "/Users/aroeira/psi4conda/bin/x86_64-apple-darwin13.4.0-clang"
│ 
│   is not able to compile a simple test program.
│ 
│   It fails with the following output:
│ 
│     Change Dir: /Users/aroeira/.julia/packages/Lints/QjDsV/deps/CMakeFiles/CMakeTmp
│     
│     Run Build Command(s):/usr/bin/make cmTC_f0aee/fast 
│     /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_f0aee.dir/build.make CMakeFiles/cmTC_f0aee.dir/build
│     Building C object CMakeFiles/cmTC_f0aee.dir/testCCompiler.c.o
│     /Users/aroeira/psi4conda/bin/x86_64-apple-darwin13.4.0-clang   -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -o CMakeFiles/cmTC_f0aee.dir/testCCompiler.c.o   -c /Users/aroeira/.julia/packages/Lints/QjDsV/deps/CMakeFiles/CMakeTmp/testCCompiler.c
│     Linking C executable cmTC_f0aee
│     /Users/aroeira/psi4conda/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f0aee.dir/link.txt --verbose=1
│     /Users/aroeira/psi4conda/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs  CMakeFiles/cmTC_f0aee.dir/testCCompiler.c.o  -o cmTC_f0aee 
│     ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
│     ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
│     clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
│     make[1]: *** [cmTC_f0aee] Error 1
│     make: *** [cmTC_f0aee/fast] Error 2
│     
│ 
│   
│ 
│   CMake will not be able to correctly generate this project.
│ Call Stack (most recent call first):
│   CMakeLists.txt:1 (project)
│ 
│ 
│ -- Configuring incomplete, errors occurred!
│ See also "/Users/aroeira/.julia/packages/Lints/QjDsV/deps/CMakeFiles/CMakeOutput.log".
│ See also "/Users/aroeira/.julia/packages/Lints/QjDsV/deps/CMakeFiles/CMakeError.log".
│ ERROR: LoadError: failed process: Process(`cmake -DCMAKE_PREFIX_PATH=/Users/aroeira/.julia/artifacts/6017255205dc4fbf4d962903a855a0c631f092dc .`, ProcessExited(1)) [1]
│ 
│ Stacktrace:
│  [1] run(::Cmd; wait::Bool) at /Applications/Julia-1.4.app/Contents/Resources/julia/lib/julia/sys.dylib:?
│  [2] run(::Cmd) at ./process.jl:438
│  [3] top-level scope at /Users/aroeira/.julia/packages/Lints/QjDsV/deps/build.jl:14
│  [4] include(::String) at /Applications/Julia-1.4.app/Contents/Resources/julia/lib/julia/sys.dylib:?
│  [5] top-level scope at none:5
│ in expression starting at /Users/aroeira/.julia/packages/Lints/QjDsV/deps/build.jl:14
└ @ Pkg.Operations /Applications/Julia-1.4.app/Contents/Resources/julia/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions