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

Compiling NextGenMap from source throws error about not finding opencl on a non-gpu system #30

Open
samfux84 opened this issue Dec 13, 2017 · 1 comment

Comments

@samfux84
Copy link

Hi,

I tried to install NextGenMap 0.5.0 on a pure CPU cluster. I was following the installation instructions provided at:

https://github.com/Cibiv/NextGenMap/wiki/Installation

The installation instructions explicitly state:

In order to build NextGenMap only cMake (>=2.8) and g++ are required.

But when following the instructions, the make step crashes with an error message that libOpenCL could not be found:

cd /scratch/54486642.tmpdir/NextGenMap-0.5.0/build/src && /cluster/apps/cmake/2.8.12/x86_64/bin/cmake -E cmake_link_script CMakeFiles/ngm-core.dir/link.txt --verbose=1
/cluster/apps/gcc/4.8.2/bin/g++   -O2 -g -DNDEBUG -ftree-vectorize -march=corei7-avx -mavx    CMakeFiles/ngm-core.dir/parser/BamParser.cpp.o CMakeFiles/ngm-core.dir/writer/BAMWriter.cpp.o CMakeFiles/ngm-core.dir/parser/VcfParser.cpp.o CMakeFiles/ngm-core.dir/config/Config.cpp.o CMakeFiles/ngm-core.dir/CS.cpp.o CMakeFiles/ngm-core.dir/CSstatic.cpp.o CMakeFiles/ngm-core.dir/misc/Debug.cpp.o CMakeFiles/ngm-core.dir/log/Logging.cpp.o CMakeFiles/ngm-core.dir/MappedRead.cpp.o CMakeFiles/ngm-core.dir/NGM_main.cpp.o CMakeFiles/ngm-core.dir/NGM.cpp.o CMakeFiles/ngm-core.dir/UpdateCheck.cpp.o CMakeFiles/ngm-core.dir/core/NGMTask.cpp.o CMakeFiles/ngm-core.dir/AlignmentBuffer.cpp.o CMakeFiles/ngm-core.dir/PrefixTable.cpp.o CMakeFiles/ngm-core.dir/ReadProvider.cpp.o CMakeFiles/ngm-core.dir/parser/SamParser.cpp.o CMakeFiles/ngm-core.dir/writer/SAMWriter.cpp.o CMakeFiles/ngm-core.dir/writer/ScoreWriter.cpp.o CMakeFiles/ngm-core.dir/seqan/EndToEndAffine.cpp.o CMakeFiles/ngm-core.dir/SequenceProvider.cpp.o CMakeFiles/ngm-core.dir/OutputReadBuffer.cpp.o CMakeFiles/ngm-core.dir/ScoreBuffer.cpp.o CMakeFiles/ngm-core.dir/core/unix.cpp.o CMakeFiles/ngm-core.dir/core/unix_threads.cpp.o CMakeFiles/ngm-core.dir/core/windows_threads.cpp.o CMakeFiles/ngm-core.dir/core/windows.cpp.o  -o ../../bin/ngm-0.5.0/ngm-core -rdynamic -lpthread ../lib/mason/opencl/libMASonOpenCl.a ../lib/bamtools-2.3.0/src/api/libbamtools.a ../lib/zlib-1.2.7/libz.a -Wl,-Bdynamic -lOpenCL 
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/ngm-0.5.0/ngm-core] Error 1
make[2]: Leaving directory `/scratch/54486642.tmpdir/NextGenMap-0.5.0/build'
make[1]: *** [src/CMakeFiles/ngm-core.dir/all] Error 2
make[1]: Leaving directory `/scratch/54486642.tmpdir/NextGenMap-0.5.0/build'
make: *** [all] Error 2
[sfux@eu-c7-001-01 build]$ 

If only cmake and g++ are required, why is the compiler trying to link against opencl, that is not mentioned as dependency to build NextGenMap ?

@philres
Copy link
Member

philres commented Feb 23, 2018 via email

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