byuflowlab / FLOWExaFMM.jl

Julia wrapper of ExaFMM with modifications for a vortex solver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to Compile ExaFMM running the script ,build.sh,

azizuddin93 opened this issue · comments

Hello! The command sh build.sh is throwing the following error. Please help. I am using WSL on a Lenovo Thinkpad (Windows 10).

aziz@DESKTOP-0KL87VT:~/path/to/FLOWExaFMM$ sh build.sh build.sh: 6: julia: not found build.sh: 11: julia: not found Removing existing build rm: cannot remove 'src/fmm.so': No such file or directory Copying files Configuring build checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for CC... no checking for icpc... no checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for ftn... no checking for ifort... no checking for gfortran... gfortran checking whether we are using the GNU Fortran compiler... yes checking whether gfortran accepts -g... yes checking for ranlib... ranlib checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for ar... ar checking the archiver (ar) interface... ar checking for OpenMP flag of C++ compiler... -fopenmp checking for mpiicpc... no checking for mpicxx... mpicxx checking for mpxlf90_rftn... no checking for mpiifort... no checking for mpif90... mpif90 checking for MPI_Init... yes checking for MPI_Init in -lmpi... yes checking for MPI_Init in -lmpich... yes checking for MPI_Init in -lmpicxx... yes checking for MPI_Init in -lfmpi... no checking for MPI_Init in -lmpichf90... no checking for MPI_Init in -lmpi_cxx... no checking for mpirun... mpirun checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for x86 cpuid output... unknown checking for x86-AVX xgetbv output... unknown checking for x86 cpuid 0x00000000 output... 15:756e6547:6c65746e:49656e69 checking for x86 cpuid 0x80000000 output... 80000008:0:0:0 checking for x86 cpuid 0x00000001 output... 806ec:1080800:fedab203:1f8bfbff checking for x86 cpuid 0x00000007 output... 0:9c27a9:0:bc000000 checking for x86 cpuid 0x80000001 output... 0:0:121:2c100800 checking for x86-AVX xgetbv 0x00000000 output... 7:0 checking whether SSE3 is supported by the processor... yes checking whether SSE3 is supported by the processor and OS... yes checking whether C++ compiler accepts -msse3... yes checking whether AVX is supported by the processor... yes checking whether AVX is supported by the processor and OS... yes checking whether C++ compiler accepts -mavx... yes checking whether AVX2 is supported by the processor... yes checking whether AVX2 is supported by the processor and OS... yes checking whether C++ compiler accepts -mavx2... yes checking whether AVX512-F is supported by the processor... no checking whether AVX512-CD is supported by the processor... no checking whether AVX512-PF is supported by the processor... no checking whether AVX512-ER is supported by the processor... no checking whether AVX512-VL is supported by the processor... no checking whether AVX512-BW is supported by the processor... no checking whether AVX512-DQ is supported by the processor... no checking whether AVX512-IFMA is supported by the processor... no checking whether AVX512-VBMI is supported by the processor... no checking for C++ compiler vendor... gnu checking for C++ compiler vendor... (cached) gnu checking for a sed that does not truncate output... /usr/bin/sed checking whether C++ compiler accepts -Werror=unknown-warning-option... no checking whether C++ compiler accepts -diag-error warn... no checking whether C++ compiler accepts -O0... yes checking whether C++ compiler accepts -g... yes checking whether C++ compiler accepts -Werror... yes checking whether C++ compiler accepts -check all... no checking whether C++ compiler accepts -debug all... no checking whether C++ compiler accepts -diag-disable remark... no checking whether C++ compiler accepts -fmudflap... yes checking whether C++ compiler accepts -fno-strict-aliasing... yes checking whether C++ compiler accepts -fsanitize=address... yes checking whether C++ compiler accepts -fsanitize=leak... yes checking whether C++ compiler accepts -fstack-protector... yes checking whether C++ compiler accepts -ftrapuv... no checking whether C++ compiler accepts -ftrapv... yes checking whether C++ compiler accepts -traceback... no checking whether C++ compiler accepts -Wall... yes checking whether C++ compiler accepts -Warray-bounds... yes checking whether C++ compiler accepts -Wbad-function-cast... no checking whether C++ compiler accepts -Wcast-align... yes checking whether C++ compiler accepts -Wcast-qual... yes checking whether C++ compiler accepts -Wextra... yes checking whether C++ compiler accepts -Wfatal-errors... yes checking whether C++ compiler accepts -Wformat=2... yes checking whether C++ compiler accepts -Wformat-nonliteral... yes checking whether C++ compiler accepts -Wformat-security... yes checking whether C++ compiler accepts -Winit-self... yes checking whether C++ compiler accepts -Winline... yes checking whether C++ compiler accepts -Wmissing-format-attribute... yes checking whether C++ compiler accepts -Wmissing-include-dirs... yes checking whether C++ compiler accepts -Wmissing-noreturn... yes checking whether C++ compiler accepts -Wnested-externs... no checking whether C++ compiler accepts -Wno-missing-field-initializers... yes checking whether C++ compiler accepts -Wno-overloaded-virtual... yes checking whether C++ compiler accepts -Wno-unused-local-typedefs... yes checking whether C++ compiler accepts -Wno-unused-parameter... yes checking whether C++ compiler accepts -Wno-unused-variable... yes checking whether C++ compiler accepts -Wpointer-arith... yes checking whether C++ compiler accepts -Wredundant-decls... yes checking whether C++ compiler accepts -Wreturn-type... yes checking whether C++ compiler accepts -Wshadow... yes checking whether C++ compiler accepts -Wsign-compare... yes checking whether C++ compiler accepts -Wstrict-aliasing... yes checking whether C++ compiler accepts -Wstrict-overflow=5... yes checking whether C++ compiler accepts -Wstrict-prototype... no checking whether C++ compiler accepts -Wswitch-enum... yes checking whether C++ compiler accepts -Wuninitialized... yes checking whether C++ compiler accepts -Wunreachable-code... yes checking whether C++ compiler accepts -Wunused-but-set-variable... yes checking whether C++ compiler accepts -Wwrite-strings... yes checking whether C++ compiler accepts -Wno-error=missing-field-initializers... yes checking whether C++ compiler accepts -Wno-error=overloaded-virtual... yes checking whether C++ compiler accepts -Wno-error=unused-local-typedefs... yes checking whether C++ compiler accepts -Wno-error=unused-parameter... yes checking whether C++ compiler accepts -Wno-error=unused-variable... yes configure: OpenMP : yes configure: MPI : yes configure: CUDA : yes configure: FP32 : no configure: SIMD : -msse3 -mavx -mavx2 configure: Assert : yes configure: Debug : no configure: Vendor : gnu configure: CXX : mpicxx configure: FC : mpif90 configure: CXXFLAGS : -g -O2 configure: FCFLAGS : -g -O2 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating 3d/Makefile config.status: creating config.h config.status: executing depfiles commands Compiling 3d mpicxx -DHAVE_CONFIG_H -DJULIA_ENABLE_THREADING -Dhello_EXPORTS -I/include -I/julia -Wunused-parameter -Wextra -Wreorder -std=gnu++1z -O3 -DNDEBUG -fPIC -ffast-math -I. -I.. -DEXAFMM_WITH_OPENMP -msse3 -mavx -mavx2 -DNDEBUG -DEXAFMM_EAGER -funroll-loops -fabi-version=6 -Wfatal-errors -fopenmp -g -O2 -MT fmm-fmm.o -MD -MP -MF .deps/fmm-fmm.Tpo -c -o fmm-fmm.o test -f 'fmm.cxx' || echo './'fmm.cxx fmm.cxx:10:11: fatal error: jlcxx/jlcxx.hpp: No such file or directory 10 | #include "jlcxx/jlcxx.hpp" //C++ wrapper for julia | ^~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:737: fmm-fmm.o] Error 1 cp: cannot stat 'build/3d/fmm': No such file or directory Done!

I added the latest CxxWrap package using ,add CxxWrap, and then tried the manual method using this link,
[https://nbviewer.org/github/byuflowlab/FLOWVPM.jl/blob/master/docs/installation-linux.ipynb]
but shows the following error

,(@v1.9) pkg> add CxxWrap@0.11.2
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CxxWrap [1f15a43c]:
CxxWrap [1f15a43c] log:
├─possible versions are: 0.7.0-0.13.4 or uninstalled
├─restricted to versions 0.11.2 by an explicit requirement, leaving only versions: 0.11.2
└─restricted by compatibility requirements with libcxxwrap_julia_jll [3eaa8342] to versions: [0.7.0-0.9.1, 0.12.0-0.13.4] or uninstalled — no versions left
└─libcxxwrap_julia_jll [3eaa8342] log:
├─possible versions are: 0.9.7 or uninstalled
└─libcxxwrap_julia_jll [3eaa8342] is fixed to version 0.9.7,

Please help me resolve this issue to proceed with the installation.

Can someone please help?

Try to downgrade to Julia 1.8.5, here it worked for me because than the libcxxxWrap is correct.