Hi,
I’m trying to install FreeFEM++ on my laptop.
Everything seems to work out fine till I run: make -j
Errors appear as: g++ -shared -fPIC -g -DNDEBUG -O3 -mmmx -mavx -std=c++14 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -I/usr/local/ff-petsc/r/include -I/usr/include/hdf5/serial -I/usr/include ‘dfft.o’ -o dfft.so '-lfftw3’ /usr/bin/ld: /usr/local/lib/libfftw3.a(assert.o): relocation R_X86_64_PC32 against symbol `stdout@@GLIBC_2.2.5’ can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[4]: *** [Makefile:897: dfft.so] Error 1 make[4]: *** Waiting for unfinished jobs…
Another try with the *deb file. Running a code with load Petsc gives:
Load: lg_fem lg_mesh lg_mesh3 eigenvalue parallelempi **
** load: init metis (v 5 )
**PETSc Error — Open MPI library version ** Open MPI v4.0.3, package: Debian OpenMPI, ident: 4.0.3, repo rev: v4.0.3, Mar 03, 2020 does not match what PETSc was compiled with 2.1, aborting PETSC ERROR: Logging has not been enabled. You might have forgotten to call PetscInitialize().
The .deb will not work on Linux Mint. Your library installed FFTW3 is messed up (does not support shared library), so you should add --disable-system-fftw --disable-download_fftw, then reconfigure and recompile.
** Error line number 1, in file – unkown --, before token ** lex: Error input opening file **
** current line = -1 mpirank 0 / 1 Compile error : lex: Error input opening file **
** line number :1, ** terminate called after throwing an instance of ‘ErrorCompile’
** what(): Compile error : lex: Error input opening file **
** line number :1,
You are not using the version you just compiled, so of course it’s not working. You need to remove everything that is not related to your latest installation that should work.