Skip to content

metis can not find GKlib #233

@Cfather

Description

@Cfather

Hi, I have had this issue when compiling.

Before that I have issues when compiling spral with CUDA (cuda_runtime_api.h not found). I followed the instructions in this previous issue, where I run the following command:

export CPLUS_INCLUDE_PATH=/usr/local/cuda/include

The make process is able to run with issues with CUDA or NVCC, but then run into the following issues, where metis can not find some functions in GKlib.
However, I have confirmed that GKlib has been compiled and installed also in /usr/local/lib.
I wonder if anyone has run into similar issues and would like to help me with this. Thanks in advance!

Output:

nvcc -std=c++11 -g -arch=sm_86 -I../include -I../src -Xptxas="-v" -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_86,code=compute_86 -lcuda  -Xcompiler="-fopenmp" -o spral_ssids driver/spral_ssids.o driver/cuda_helper_gpu.o  -L. -lspral -lmetis  -lopenblas  -L/usr/local/cuda/lib64 -L/usr/local/lib -lhwloc -lm -lOpenCL -lcudart -lnvidia-ml -lxml2 -lpthread -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. -lgfortran -lm -lquadmath -lcublas 
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_86)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_86)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_86)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_52)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_52)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_52)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_60)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_60)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_60)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_61)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_61)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_61)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_62)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_62)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_62)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_70)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_70)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_70)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_72)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_72)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_72)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_75)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_75)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_75)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_80)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_80)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_80)
nvlink warning : Skipping incompatible '/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_87)
nvlink warning : Skipping incompatible '/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_87)
nvlink warning : Skipping incompatible '/usr/lib/x86_64-linux-gnu/libpthread.a' when searching for -lpthread (target: sm_87)
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_randint32'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_errexit'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_mcorePop'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_rmpath'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_malloc_init'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_mcoreDestroy'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_randinit'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_free'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_mcoreCreate'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_CPUSeconds'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_realloc'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_log2'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_jbufs'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_mcorePush'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_siguntrap'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_malloc_cleanup'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_mcoreMalloc'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_idxsmalloc'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_cur_jbufs'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_sigtrap'
/usr/bin/ld: /usr/local/lib/libmetis.so: undefined reference to `gk_malloc'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:2343: spral_ssids] Error 1
make[1]: Leaving directory '/home/roahmlab/Softwares/spral/build'
make: *** [Makefile:1665: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions