Hi Simon, Thanks for your reply! I managed to make it work finally. I'm working with an old code that need this specific version of the package. Also, this code does not use configure/make/make install of cmake/make/make install way of installing. Instead I need to run a script exporting variables with a . ./script.sh command I was wondering if you could give me a hint about how to say in a manifest how to run such script (if possible). You can find such script attached. Thanks, Pierre ----- Mail original ----- > De: "Simon Tournier" > À: "Tobias Geerinckx-Rice" , "Pierre Clouzet" , help-guix@gnu.org > Envoyé: Mardi 28 Novembre 2023 16:42:46 > Objet: Re: Error when installing package, CMAKE_Fortran_COMPILER could be found > Hi Pierre, > > On Fri, 24 Nov 2023 at 16:53, Tobias Geerinckx-Rice wrote: > >> It appears that you haven't given the package a FORTRAN compiler to find. Try >> >> (native-inputs (list gfortran)) > > In addition to Tobias’s words, the recipe will fail at the tests: > > --8<---------------cut here---------------start------------->8--- > The following tests FAILED: > 1 - ../gmsh-3.0.6-source/demos/post_processing/lowmem-anim.geo (Failed) > 4 - ../gmsh-3.0.6-source/demos/simple_geo/antenna.geo (Timeout) > 8 - ../gmsh-3.0.6-source/demos/simple_geo/filter.geo (Failed) > 9 - ../gmsh-3.0.6-source/demos/simple_geo/hex.geo (Failed) > 11 - ../gmsh-3.0.6-source/demos/simple_geo/indheat.geo (Failed) > 12 - ../gmsh-3.0.6-source/demos/simple_geo/machine.geo (Timeout) > 13 - ../gmsh-3.0.6-source/demos/simple_geo/piece-extr-rec.geo (Failed) > 14 - ../gmsh-3.0.6-source/demos/simple_geo/piece-extr.geo (Failed) > 16 - ../gmsh-3.0.6-source/demos/simple_geo/pripyrtet.geo (Failed) > 18 - ../gmsh-3.0.6-source/demos/simple_geo/sphere.geo (Failed) > 29 - ../gmsh-3.0.6-source/tutorial/t13.geo (SEGFAULT) > 32 - ../gmsh-3.0.6-source/tutorial/t16.geo (Failed) > 33 - ../gmsh-3.0.6-source/tutorial/t17.geo (Failed) > 35 - ../gmsh-3.0.6-source/tutorial/t3.geo (Failed) > --8<---------------cut here---------------end--------------->8--- > > Well, IIRC, gmsh has some dependencies, depending on the default options > selected at configure time. For instance, see the current Gmsh from the > module (gnu packages maths), e.g., guix edit gmsh or [1] lists all the > dependencies: > > (propagated-inputs > (list fltk > gfortran > glu > gmp > hdf5 > lapack > libx11 > libxext > mesa > metis > opencascade-occt)) > (inputs > (list fontconfig > libxft > python)) > > Moreover, I am not sure for this flag you set in your recipe: > > "-DCMAKE_INSTALL_PREFIX=/opt/nextsim_gnu/gmsh-3.0.6" > > Hope that helps. > > Cheers, > simon > > > 1: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/maths.scm#n3233