The compiling failed with openblas
Created by: qingqing01
Error:
[ 98%] Built target softmax_with_cross_entropy_op
/home/xxx/.third_party/install/openblas/lib/libopenblas.a(memory.o): In function `openblas_fork_handler':
memory.c:(.text+0x190): undefined reference to `pthread_atfork'
From this link https://github.com/xianyi/OpenBLAS/wiki/faq :
It seems that needs to link the pthread library:
How to solve undefined reference errors when statically linking against libopenblas.a
On Linux, if OpenBLAS was compiled with threading support (USE_THREAD=1 by default), custom programs statically linked against libopenblas.a should also link to the pthread library e.g.:
gcc -static -I/opt/OpenBLAS/include -L/opt/OpenBLAS/lib -o my_program my_program.c -lopenblas -lpthread