From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: guix environment and ld? Date: Fri, 8 Feb 2019 20:59:34 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsCoj-0005WY-Il for help-guix@gnu.org; Fri, 08 Feb 2019 15:32:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsCoi-0000M0-Mb for help-guix@gnu.org; Fri, 08 Feb 2019 15:32:09 -0500 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:40313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsCoi-0000Cx-Fk for help-guix@gnu.org; Fri, 08 Feb 2019 15:32:08 -0500 Received: by mail-qt1-x835.google.com with SMTP id j36so5454971qta.7 for ; Fri, 08 Feb 2019 12:31:38 -0800 (PST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix 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! and ldd ./gmsh returns libpetsc.3.10 not found. If I check the CMake file, then the PETSc library is found and all seem alright. And libpetsc.3.10 is in the environment profile. Hum? I am a bit confused. Do I miss something? Note it builds fine with: mkdir build-4 && cd build-4 guix environment gmsh --pure --ad-hoc petsc cmake .. && make ./gmsh -info # ok I know that `guix environment gmsh' "imports" more than cmake make binutils glibc gfortran@5.5.0 gcc@5.5.0 but they are the minimal set to build gmsh as the build-2 shows. So, I do not suspect that the issue comes from that. Well, I am packaging the friend solver of Gmsh ;-) http://getdp.info/ Side question: guix environment --ad-hoc gcc@5.5.0 gfortran@5.5.0 warns about " ambiguous package specification `gcc@5.5.0'". Is it expected? because it is not ambiguous. Other side question and maybe related: it warns about "collision encountered" between gcc and gfortran with fto1 cc1 liblto_plugin.la cc1plus mkheaders. Does the issue come from that? If yes, how to avoid the collision? Thank you for any insight and/or comment. All the best, simon