Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on Arch linux #18

Closed
sgarnotel opened this issue May 24, 2018 · 4 comments
Closed

Compilation error on Arch linux #18

sgarnotel opened this issue May 24, 2018 · 4 comments

Comments

@sgarnotel
Copy link
Member

Compilation output:
make[3] : on entre dans le répertoire « /home/simon/Documents/Install/FreeFem/FreeFem-sources/src/nw »
g++ -g -DNDEBUG -O3 -mmmx -mavx -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -rdynamic -o FreeFem++ sansrgraph.o parallelempi-empty.o ffapi.o ../lglib/liblg.a ../fflib/libff.a -Wl,-rpath,/usr/local/ff-petsc/real/lib -L/usr/local/ff-petsc/real/lib -lumfpack -lklu -lcholmod -lbtf -lccolamd -lcolamd -lcamd -lamd -lsuitesparseconfig -larpack -llapack -llapack -lblas -ldl -lm -lrt /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/../../../libgfortran.so /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/../../../libquadmath.so -L/usr/lib -lm -ldl -lz -lsz -lhdf5_hl -lhdf5 -lhdf5_hl
../fflib/libff.a(lgfem.o) : Dans la fonction « TypeSolve<true, Solve>::SolveInit::operator()(void*) const » :
/home/simon/Documents/Install/FreeFem/FreeFem-sources/src/fflib/problem.hpp:493 : référence indéfinie vers « AnyTypeWithOutCheck Problem::eval<double, Fem2D::GFESpaceFem2D::Mesh3, v_fes3>(void*, Problem::Data<Fem2D::GFESpaceFem2D::Mesh3 >, CountPointer<MatriceCreuse >&, MatriceCreuse<CadnaType::Scalaire>&) const »
/home/simon/Documents/Install/FreeFem/FreeFem-sources/src/fflib/problem.hpp:491 : référence indéfinie vers « AnyTypeWithOutCheck Problem::eval<std::complex, Fem2D::GFESpaceFem2D::Mesh3, v_fes3>(void*, Problem::Data<Fem2D::GFESpaceFem2D::Mesh3 >, CountPointer<MatriceCreuse<std::complex > >&, MatriceCreuse<CadnaType<std::complex >::Scalaire>&) const »
/home/simon/Documents/Install/FreeFem/FreeFem-sources/src/fflib/problem.hpp:484 : référence indéfinie vers « AnyTypeWithOutCheck Problem::eval<double, Fem2D::FESpace, v_fes>(void*, Problem::DataFem2D::FESpace, CountPointer<MatriceCreuse >&, MatriceCreuse<CadnaType::Scalaire>&) const »
collect2: error: ld a retourné le statut de sortie 1
make[3]: *** [Makefile:578: FreeFem++] Error 1
make[3] : on quitte le répertoire « /home/simon/Documents/Install/FreeFem/FreeFem-sources/src/nw »

@sgarnotel
Copy link
Member Author

sgarnotel commented Jun 4, 2018

This bug is due to gcc version 8.1.0 on Arch.

The solution is to compile gcc 7.3.0 and openmpi 3.1.1 (with gcc 7.3.0) before recompile FreeFem++

@stefanhusmann
Copy link

stefanhusmann commented Aug 25, 2018

The error is also in GCC 8.2.0 on Arch Linux, and probably also in Debian when using their flavour of gcc 8. Compiling with gcc 7 is not a solution, but only a workaround.

Debian bug report

@sgarnotel sgarnotel reopened this Aug 25, 2018
@frederichecht
Copy link
Contributor

frederichecht commented Aug 27, 2018 via email

frederichecht added a commit that referenced this issue Aug 27, 2018
@sgarnotel
Copy link
Member Author

Fixed in ad68038

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants