Hi everybody,
I’m trying to install Julia on DragonflyBSD from the source.
I installed gcc, fortran, OpenBLAS, and SuiteSparse on DragonflyBSD with no problem.
Now, I got this error at the end of the gmake
process:
gcc -march=native -mtune=native -m64 -o build/libblastrampoline.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_x86_64 -DF2C_AUTODETECTION -DCBLAS_DIVERGENCE_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -c libblastrampoline.c
libblastrampoline.c: In function 'init':
libblastrampoline.c:514:23: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'RAND_MAX'?
char curr_lib[PATH_MAX];
^~~~~~~~
RAND_MAX
libblastrampoline.c:514:23: note: each undeclared identifier is reported only once for each function it appears in
gmake[2]: *** [Makefile:47: build/libblastrampoline.o] Error 1
gmake[1]: *** [/julia/deps/blastrampoline.mk:18: scratch/blastrampoline-b127bc8dd4758ffc064340fff2aef4ead552f386/build-compiled] Error 2
gmake: *** [Makefile:86: julia-deps] Error 2
root@:/julia #
What should I do? Thank you.