Linking problem #6

Closed
opened 2025-10-14 17:42:57 -06:00 by navan · 0 comments
Owner

Originally created by @kma on 3/2/2020

Hi,

We have this error trying to link VinaLC:

[ 82%] Building CXX object src/CMakeFiles/VinaLC.dir/weighted_terms.cpp.o
Linking CXX static library libVinaLC.a
[ 85%] Built target VinaLC
apps/CMakeFiles/vinalc.dir/build.make:165: *** target pattern contains no `%'.  Stop.
make[1]: *** [apps/CMakeFiles/vinalc.dir/all] Error 2
make: *** [all] Error 2

where the line 165 contains:

apps/vinalc: Boost::mpi-NOTFOUND

Loaded modules :

$ module list 
Currently Loaded Modulefiles:
  1) gcc/6.4                 2) mpi/openmpi/gcc/3.0.0   3) lib/boost/gcc/1.72.0    4) tools/cmake/3.2.3

Cmake command line:

cmake ../ -DCMAKE_C_COMPILER=/opt/mpi/openmpi/gcc/3.0.0/bin/mpicc -DCMAKE_CXX_COMPILER=/opt/mpi/openmpi/gcc/3.0.0/bin/mpicc  -DCMAKE_INSTALL_PREFIX=/opt/vinalc  -DMPI_CXX_COMPILER=/opt/mpi/openmpi/gcc/3.0.0/bin/mpicxx 
-- Building on a Linux system
-- The host processor is x86_64
Boost 1.35 found.
Found Boost components:
   program_options;system;filesystem;regex;serialization;mpi;thread
-- Using C++ compiler: GNU
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/BUILDS/VinaLC/build

It seems a linking problem. Any idea ?

Thank you.

*Originally created by @kma on 3/2/2020* Hi, We have this error trying to link VinaLC: ``` [ 82%] Building CXX object src/CMakeFiles/VinaLC.dir/weighted_terms.cpp.o Linking CXX static library libVinaLC.a [ 85%] Built target VinaLC apps/CMakeFiles/vinalc.dir/build.make:165: *** target pattern contains no `%'. Stop. make[1]: *** [apps/CMakeFiles/vinalc.dir/all] Error 2 make: *** [all] Error 2 ``` where the line 165 contains: `apps/vinalc: Boost::mpi-NOTFOUND` Loaded modules : ``` $ module list Currently Loaded Modulefiles: 1) gcc/6.4 2) mpi/openmpi/gcc/3.0.0 3) lib/boost/gcc/1.72.0 4) tools/cmake/3.2.3 ``` Cmake command line: ``` cmake ../ -DCMAKE_C_COMPILER=/opt/mpi/openmpi/gcc/3.0.0/bin/mpicc -DCMAKE_CXX_COMPILER=/opt/mpi/openmpi/gcc/3.0.0/bin/mpicc -DCMAKE_INSTALL_PREFIX=/opt/vinalc -DMPI_CXX_COMPILER=/opt/mpi/openmpi/gcc/3.0.0/bin/mpicxx -- Building on a Linux system -- The host processor is x86_64 Boost 1.35 found. Found Boost components: program_options;system;filesystem;regex;serialization;mpi;thread -- Using C++ compiler: GNU -- Configuring done -- Generating done -- Build files have been written to: /opt/BUILDS/VinaLC/build ``` It seems a linking problem. Any idea ? Thank you.
navan closed this issue 2025-10-14 17:43:10 -06:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/VinaLC#6
No description provided.