zimoun writes: > Hi, > > I am working on the package Gmsh. > > Well, say the upstream repo is cloned and I am following the upstream readme. > Basically, it is a CMake build system for C++ code with some Fortran. > > So, if I am doing: > mkdir build-1 && cd build-1 > guix environment gmsh --pure > cmake .. && make > ./gmsh -info # ok :-) > > If I am doing: > mkdir build-2 && cd build-2 > guix environment --pure --ad-hoc \ > cmake make binutils glibc gfortran@5.5.0 gcc@5.5.0 > cmake .. && make > ./gmsh -info # ok :-) > > Now, I would like to build a version with PETSc. > > mkdir build-3 && cd build-3 > guix environment --pure --ad-hoc \ > cmake make binutils glibc gfortran@5.5.0 gcc@5.5.0 \ > petsc > cmake .. && make > ./gmsh -info # fail! One tip, try using gcc-toolchain@5.5.0 rather than binutils, glibc and gcc@5.5.0. I'm not quite sure why, but I've had it help me with other compilation issues.