From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gFwoN7F2C2W+WgEAG6o9tA:P1 (envelope-from ) for ; Thu, 21 Sep 2023 00:48:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gFwoN7F2C2W+WgEAG6o9tA (envelope-from ) for ; Thu, 21 Sep 2023 00:48:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A7E4B5B1EB for ; Thu, 21 Sep 2023 00:48:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=univ-grenoble-alpes.fr header.s=2020 header.b=2kj84cdH; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=univ-grenoble-alpes.fr ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695250097; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=eqQErq5T7kg3tFRA/+ngyXKMY4j1utFolST69HuLcic=; b=EOy+vYBKfOeaQyThhf5ydrezh8OIe2/wcHQBNKu6iRqbOTVyVNK6rhBJUVoPSq5yGP5WML gxa7A7haAm7jPwg7EzIqhLpbk5KfeNn9vTC7HQwv+phvjDb62uz+H51U6qQWP40d+ZyaM9 kCLQTp5DMBL24/c78QEXZKXk5wB531lfV5zUTvFyk1a3LA2gOZ/1wvKytENnBT6156DdWQ dhPQllIOCqvpEK9y2Ujm2HPgM9sv215Ia6VtQr/w2NxT3Pg2GWuqUjrrur6GaW2WzWfvY+ gKqBPdn0Yf2vfmEQ5Eh/4xYNuX4BHQ4AVNpUpoN6ay9dtFY8+7poxVL2SA7myg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=univ-grenoble-alpes.fr header.s=2020 header.b=2kj84cdH; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=univ-grenoble-alpes.fr ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695250097; a=rsa-sha256; cv=none; b=GWsQfjj3VrBIwz0rGnWlR9Pdog/imS8jisWOXCHb7WcOee2Eh1aT5jXJSMY9cFEpniRK/E VrD4X0eO8Mz3zI/hCWArIWPj4EPp78CxNH3bBUx/7LvOf9fPrL+x/F4wz+CGMxfvQ047Dq VkQEhC6dbCMLjIuBtMvkejFFkQ5PHeEPoNze/oRbYtmsiFP+8tuWLpALW3xg1tDN6j/CtO o7QwI9TEohbWvFV8kA3UJQzzs7Rwi5aNbV9yTMIftvVfyTfBm9h5MlZj9c0L5LasTeAjfq 35buipV19NJkgBotcKsnDRLIlKD7FwJGZUr9bseZYqDINA/pUKBli0TaSaTbNg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj5yt-0006tK-7p; Wed, 20 Sep 2023 18:47:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qis7b-0003Hx-Dn for help-guix@gnu.org; Wed, 20 Sep 2023 03:59:43 -0400 Received: from zm-mta-out-3.u-ga.fr ([152.77.200.56]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qis7J-0001M9-A7 for help-guix@gnu.org; Wed, 20 Sep 2023 03:59:42 -0400 Received: from mailhub.u-ga.fr (mailhub-1.u-ga.fr [129.88.178.98]) by zm-mta-out-3.u-ga.fr (Postfix) with ESMTP id 4524240228 for ; Wed, 20 Sep 2023 09:59:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=univ-grenoble-alpes.fr; s=2020; t=1695196751; bh=HHaVLFhRYR5ue+z5gzoSCeXfwvoc29JcBVHABq7cnFk=; h=From:To:Subject:Date:From; b=2kj84cdHrigjis40U/eNXgg2hTC/CpM8SmDqFNIKzYhuIoxigJRK3mPjy0nzWpeo5 LMsOwxywOe6aslsLWZOO3KrjYrrDndbsjG/H8y1/YHIODQZBaiABuhwpsFQVuGzM1x 5i1crLPd1weIKCquHxqDkW9DmS6FcK3YdRwaq/wc2znhZLdGwfq6aSOyuKtgNj3/0m vVXpbGCepk+NehFIqCP5rpnDpTbI5RXNNqJ2Sk4AQ0/f6WlerSyWvcVaC/828YKljm G0UvtXKimYkB4biZphLJo0vJwkmwOpDVqDoIUc4oPUBaJqwUUjyjinhNkMPjgXPfNo 0nWoDLWYebo4g== Received: from smtps.univ-grenoble-alpes.fr (smtps2.u-ga.fr [152.77.18.2]) by mailhub.u-ga.fr (Postfix) with ESMTP id 42EC110005A for ; Wed, 20 Sep 2023 09:59:11 +0200 (CEST) Received: from crevetete.univ-grenoble-alpes.fr (crevetete.imag.fr [129.88.43.91]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jahiere@univ-grenoble-alpes.fr) by smtps.univ-grenoble-alpes.fr (Postfix) with ESMTPSA id 3EE35140053 for ; Wed, 20 Sep 2023 09:59:11 +0200 (CEST) User-agent: mu4e 1.10.5; emacs 27.1 From: Erwan Jahier To: help-guix@gnu.org Subject: dune-based package design trouble Date: Wed, 20 Sep 2023 09:52:03 +0200 Message-ID: <87editff74.fsf@univ-grenoble-alpes.fr> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Greylist: Whitelist-UGA SMTP Authentifie (jahiere@univ-grenoble-alpes.fr) via submission-587 ACL (42) Received-SPF: pass client-ip=152.77.200.56; envelope-from=erwan.jahier@univ-grenoble-alpes.fr; helo=zm-mta-out-3.u-ga.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 20 Sep 2023 18:47:37 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -4.38 X-Spam-Score: -4.38 X-Migadu-Queue-Id: A7E4B5B1EB X-TUID: GFhGRRP7DlrZ Hello, I am a newguix tring to package some of his software. Since I already have opam packages, I used =3Dguix import opam=3D, that helped a little. Of course, my packages have dependancies, and not all of them exist in the main guix repo. I have able to build some of them (ocaml-junit, ocaml-junit-alcotest, ocaml-yaml, ocaml-functory, ocaml-conf-graphviz), but I am having trouble with ocaml-mlgmpidl, for which the build phase isn't able to (ocaml-)find gmp (see below). So I've tried to package ocaml-gmp, but I am stuck again. The error "/bin/sh: bad interpreter: No such file or directory" is raised during the build phase that runs a =3Dconfigure=3D script that refers to a non existing /bin/sh. The problem is that the =3Dpatch-source-shebangs=3D phase cannot be applied, as this =3Dconfigure=3D script is generated and run inside the build phase (via =3Ddune build=3D). I feel like it might be a dune expert question, but I try my luck here. Erwan. #+begin_src scheme (define-public ocaml-gmp (package (name "ocaml-gmp") (version "6.2.1-4") (source (origin (method url-fetch) (uri "https://github.com/mirage/ocaml-gmp/releases/download/6.2.1-4/gm= p-6.2.1-4.tbz") (sha256 (base32 "0w9b4c180wfha6z7clk51kxs3fdq4z2vb9vdgfaa3azp2bxad3yc"= )))) (build-system dune-build-system) (propagated-inputs (list m4)) (arguments `(#:phases (modify-phases %standard-phases (replace 'build (lambda _ (invoke "dune" "build" "-p" "gmp") #t)) ))) (home-page "https://github.com/mirage/ocaml-gmp") (synopsis "The GNU Multiple Precision Arithmetic Library") (description "Dune packaging of the GMP library, suitable for cross-compi= lation.") (license license:lgpl3)) ) (define-public ocaml-mlgmpidl (package (name "ocaml-mlgmpidl") (version "1.2.15") (source (origin (method url-fetch) (uri "https://github.com/nberth/mlgmpidl/archive/1.2.15.tar.g= z") (sha256 (base32 "0hcaan4n5li0rnr55ilgxgd8w00lza9an6w4yj7v66dc= b7plbasj")))) (build-system dune-build-system) (arguments `(#:tests? #f; #:phases (modify-phases %standard-phases (add-before 'build 'update-deprecated (lambda* (#:key outputs #:allow-other-keys) ((invoke "./configure" "--prefix" (assoc-ref outputs "out")) )))))) (inputs (list perl ocaml-findlib camlidl gmp mpfr ocaml-bigarray-compat= )) (home-page "https://www.inrialpes.fr/pop-art/people/bjeannet/mlxxxidl-f= orge/mlgmpidl/") (synopsis "OCaml interface to the GMP library") (description #f) (license license:lgpl2.1)) ; with linking exception ) #+end_src #+begin_src sh $ ./pre-inst-env guix build ocaml-gmp --keep-failed ;;; note: source file /home/jahier/local/guix/gnu/packages/ocaml.scm ;;; newer than compiled /home/jahier/local/guix/gnu/packages/ocaml.go ;;; note: source file /home/jahier/local/guix/gnu/packages/ocaml.scm ;;; newer than compiled /gnu/store/a2pk3n91qybpkhghg1zr4260xwz21vqh-p= rofile/lib/guile/3.0/site-ccache/gnu/packages/ocaml.go ;;; note: source file /home/jahier/local/guix/gnu/packages/ocaml.scm ;;; newer than compiled /home/jahier/.cache/guile/ccache/3.0-LE-8-4.6= /home/jahier/local/guix/gnu/packages/ocaml.scm.go substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivation will be built: /gnu/store/j26ah7gyimydbw4zi30anbhfcqm7vz8h-ocaml-gmp-6.2.1-4.drv building /gnu/store/j26ah7gyimydbw4zi30anbhfcqm7vz8h-ocaml-gmp-6.2.1-4.drv.= .. starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' environment variable `PATH' set to `/gnu/store/y2mcznccgvcdpc5bl8z0b07nrzcc= d1na-dune-3.6.1/bin:/gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-ocaml-4.14.= 0/bin:/gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocaml-findlib-1.9.5/bin:/= gnu/store/sxx22f98vfbavcqmdksm6as8fvskpxiw-tar-1.34/bin:/gnu/store/x24bm49a= g5dvki72mjdz195bfb89nrnb-gzip-1.12/bin:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8= psrxn00-bzip2-1.0.8/bin:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.= 44/bin:/gnu/store/zmcf5kpqiighkbh7wslf91qdjwj06yr1-diffutils-3.8/bin:/gnu/s= tore/210yfax18r2g2inxrml9435ikhfcca6m-patch-2.7.6/bin:/gnu/store/c8jyph2lxw= 0m9na34fg8h70n4nnnz7is-findutils-4.9.0/bin:/gnu/store/hc05d76f1j3iz3v2bs5jz= 4fpljl1r4dj-gawk-5.2.1/bin:/gnu/store/xxcfsimvxz7z4dj593gnqbkzc6picwzq-sed-= 4.8/bin:/gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/bin:/gnu/store= /6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/bin:/gnu/store/a5i8avx826brw5grn= 3n4qv40g514505c-coreutils-9.1/bin:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm66= 18-make-4.3/bin:/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.= 1.16/bin:/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin:/gnu/= store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/bin:/gnu/store/5lqhcv9= 1ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin:/gnu/store/gsjczqir1wbz8p770zndrpw= 4rnppmxi3-glibc-2.35/bin:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-= 2.35/sbin:/gnu/store/2awzcd1jdd8h65ahdn62ydllrs2s2pk1-m4-1.4.19/bin:/gnu/st= ore/6fq5x7m49a3m1d66dawk36k0qcmy6i27-dune-configurator-3.6.1/bin:/gnu/store= /spdkficsp4fychyxfplyp8qli0hq47pc-ocaml-csexp-1.5.1/bin:/gnu/store/inkky9cq= 6fxbv7vsibwix0z8svkxkwmj-ocaml-result-1.5/bin' environment variable `OCAMLPATH' set to `/gnu/store/y2mcznccgvcdpc5bl8z0b07= nrzccd1na-dune-3.6.1/lib/ocaml:/gnu/store/y2mcznccgvcdpc5bl8z0b07nrzccd1na-= dune-3.6.1/lib/ocaml/site-lib:/gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-o= caml-4.14.0/lib/ocaml:/gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocaml-fin= dlib-1.9.5/lib/ocaml:/gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocaml-find= lib-1.9.5/lib/ocaml/site-lib:/gnu/store/6fq5x7m49a3m1d66dawk36k0qcmy6i27-du= ne-configurator-3.6.1/lib/ocaml:/gnu/store/6fq5x7m49a3m1d66dawk36k0qcmy6i27= -dune-configurator-3.6.1/lib/ocaml/site-lib:/gnu/store/spdkficsp4fychyxfply= p8qli0hq47pc-ocaml-csexp-1.5.1/lib/ocaml:/gnu/store/spdkficsp4fychyxfplyp8q= li0hq47pc-ocaml-csexp-1.5.1/lib/ocaml/site-lib:/gnu/store/inkky9cq6fxbv7vsi= bwix0z8svkxkwmj-ocaml-result-1.5/lib/ocaml:/gnu/store/inkky9cq6fxbv7vsibwix= 0z8svkxkwmj-ocaml-result-1.5/lib/ocaml/site-lib' environment variable `CAML_LD_LIBRARY_PATH' unset environment variable `BASH_LOADABLES_PATH' unset environment variable `C_INCLUDE_PATH' set to `/gnu/store/j8wlfmlmfvpbza6is9= wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mng= shq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.= 1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:/gnu= /store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4x65s= nfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy82p92= ac6g5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnpp= mxi3-glibc-2.35/include:/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-l= ibre-headers-5.15.49/include' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/j8wlfmlmfvpbza= 6is9wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l= 3mngshq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-= 5.2.1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:= /gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4= x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy8= 2p92ac6g5xw48l0lwwz4-gcc-11.3.0/include/c++:/gnu/store/5lqhcv91ijy82p92ac6g= 5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3= -glibc-2.35/include:/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre= -headers-5.15.49/include' environment variable `LIBRARY_PATH' set to `/gnu/store/y2mcznccgvcdpc5bl8z0= b07nrzccd1na-dune-3.6.1/lib:/gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-oca= ml-4.14.0/lib:/gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocaml-findlib-1.9= .5/lib:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/lib:/gnu/sto= re/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/lib:/gnu/store/hc05d76f1j3iz3= v2bs5jz4fpljl1r4dj-gawk-5.2.1/lib:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimnc= wj-xz-5.2.8/lib:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/l= ib:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib:/gnu/store/l0= yryi5jsa1grnvw01c9nkz9c81cv224-glibc-2.35-static/lib:/gnu/store/visfdda934g= vivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35/lib:/gnu/store/6fq5x7m49a3m1d= 66dawk36k0qcmy6i27-dune-configurator-3.6.1/lib:/gnu/store/spdkficsp4fychyxf= plyp8qli0hq47pc-ocaml-csexp-1.5.1/lib:/gnu/store/inkky9cq6fxbv7vsibwix0z8sv= kxkwmj-ocaml-result-1.5/lib' environment variable `GUIX_LOCPATH' set to `/gnu/store/visfdda934gvivwihwhl= m63fdqhhcc8a-glibc-utf8-locales-2.35/lib/locale' phase `set-paths' succeeded after 0.0 seconds starting phase `install-locale' using 'en_US.utf8' locale for category "LC_ALL" phase `install-locale' succeeded after 0.0 seconds starting phase `unpack' gmp-6.2.1-4/.github gmp-6.2.1-4/.github/workflows gmp-6.2.1-4/.github/workflows/CI.yml gmp-6.2.1-4/.gitignore gmp-6.2.1-4/.ocamlformat gmp-6.2.1-4/CHANGES.md gmp-6.2.1-4/COPYING gmp-6.2.1-4/COPYING.LESSERv3 gmp-6.2.1-4/README.md gmp-6.2.1-4/dune-project gmp-6.2.1-4/dune-workspace.solo5 gmp-6.2.1-4/gmp.opam gmp-6.2.1-4/src gmp-6.2.1-4/src/build.sh.in gmp-6.2.1-4/src/dune gmp-6.2.1-4/src/gmp-6.2.1.tar.xz gmp-6.2.1-4/test gmp-6.2.1-4/test/dummy.ml gmp-6.2.1-4/test/dummy_stubs.c gmp-6.2.1-4/test/dune gmp-6.2.1-4/test/test.expected gmp-6.2.1-4/test/test.ml phase `unpack' succeeded after 0.2 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' patch-shebang: ./src/build.sh.in: changing `/bin/sh' to `/gnu/store/rib9g2i= g1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh' phase `patch-source-shebangs' succeeded after 0.0 seconds starting phase `ocaml-findlib-environment' phase `ocaml-findlib-environment' succeeded after 0.0 seconds starting phase `patch-generated-file-shebangs' phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `build' File "src/dune", line 14, characters 0-319: 14 | (rule 15 | (targets gmp.h libgmp.a dllgmp.so) 16 | (deps gmp-6.2.1.tar.xz build.sh) 17 | (action 18 | (with-stdout-to 19 | build.log 20 | (run sh ./build.sh "%{ocaml-config:c_compiler}" "%{ocaml-config:hos= t}" 21 | "%{ocaml-config:ocamlc_cflags}" 22 | %{ocaml-config:supports_shared_libraries} 23 | "%{ocaml-config:native_c_libraries}")))) ./build.sh: ./configure: /bin/sh: bad interpreter: No such file or directory error: in phase 'build': uncaught exception: %exception #<&invoke-error program: "dune" arguments: ("build") exit-status= : 1 term-signal: #f stop-signal: #f> phase `build' failed after 0.3 seconds command "dune" "build" failed with status 1 note: keeping build directory `/tmp/guix-build-ocaml-gmp-6.2.1-4.drv-6' builder for `/gnu/store/j26ah7gyimydbw4zi30anbhfcqm7vz8h-ocaml-gmp-6.2.1-4.= drv' failed with exit code 1 build of /gnu/store/j26ah7gyimydbw4zi30anbhfcqm7vz8h-ocaml-gmp-6.2.1-4.drv = failed View build log at '/var/log/guix/drvs/j2/6ah7gyimydbw4zi30anbhfcqm7vz8h-oca= ml-gmp-6.2.1-4.drv.bz2'. guix build: error: build of `/gnu/store/j26ah7gyimydbw4zi30anbhfcqm7vz8h-oc= aml-gmp-6.2.1-4.drv' failed $ ./pre-inst-env guix build ocaml-mlgmpidl --keep-failed ;;; note: source file /home/jahier/local/guix/gnu/packages/ocaml.scm ;;; newer than compiled /home/jahier/local/guix/gnu/packages/ocaml.go ;;; note: source file /home/jahier/local/guix/gnu/packages/ocaml.scm ;;; newer than compiled /gnu/store/a2pk3n91qybpkhghg1zr4260xwz21vqh-p= rofile/lib/guile/3.0/site-ccache/gnu/packages/ocaml.go ;;; note: source file /home/jahier/local/guix/gnu/packages/ocaml.scm ;;; newer than compiled /home/jahier/.cache/guile/ccache/3.0-LE-8-4.6= /home/jahier/local/guix/gnu/packages/ocaml.scm.go substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivation will be built: /gnu/store/2vss9ph7rgvqamqjd32y1qs1qh72myrl-ocaml-mlgmpidl-1.2.15.drv building /gnu/store/2vss9ph7rgvqamqjd32y1qs1qh72myrl-ocaml-mlgmpidl-1.2.15.= drv... starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' environment variable `PATH' set to `/gnu/store/y2mcznccgvcdpc5bl8z0b07nrzcc= d1na-dune-3.6.1/bin:/gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-ocaml-4.14.= 0/bin:/gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocaml-findlib-1.9.5/bin:/= gnu/store/sxx22f98vfbavcqmdksm6as8fvskpxiw-tar-1.34/bin:/gnu/store/x24bm49a= g5dvki72mjdz195bfb89nrnb-gzip-1.12/bin:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8= psrxn00-bzip2-1.0.8/bin:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.= 44/bin:/gnu/store/zmcf5kpqiighkbh7wslf91qdjwj06yr1-diffutils-3.8/bin:/gnu/s= tore/210yfax18r2g2inxrml9435ikhfcca6m-patch-2.7.6/bin:/gnu/store/c8jyph2lxw= 0m9na34fg8h70n4nnnz7is-findutils-4.9.0/bin:/gnu/store/hc05d76f1j3iz3v2bs5jz= 4fpljl1r4dj-gawk-5.2.1/bin:/gnu/store/xxcfsimvxz7z4dj593gnqbkzc6picwzq-sed-= 4.8/bin:/gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/bin:/gnu/store= /6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/bin:/gnu/store/a5i8avx826brw5grn= 3n4qv40g514505c-coreutils-9.1/bin:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm66= 18-make-4.3/bin:/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.= 1.16/bin:/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin:/gnu/= store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/bin:/gnu/store/5lqhcv9= 1ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin:/gnu/store/gsjczqir1wbz8p770zndrpw= 4rnppmxi3-glibc-2.35/bin:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-= 2.35/sbin:/gnu/store/lj75fc25zx2y9pqvfp95la84rdhlj4f8-perl-5.36.0/bin:/gnu/= store/wazczxixf2s0aakw586gh1pk8s3yc74d-camlidl-1.09/bin:/gnu/store/b29gw382= cvsk6963xhq9aj84rlwmhn8m-ocaml-bigarray-compat-1.1.0/bin:/gnu/store/6fq5x7m= 49a3m1d66dawk36k0qcmy6i27-dune-configurator-3.6.1/bin:/gnu/store/spdkficsp4= fychyxfplyp8qli0hq47pc-ocaml-csexp-1.5.1/bin:/gnu/store/inkky9cq6fxbv7vsibw= ix0z8svkxkwmj-ocaml-result-1.5/bin' environment variable `OCAMLPATH' set to `/gnu/store/y2mcznccgvcdpc5bl8z0b07= nrzccd1na-dune-3.6.1/lib/ocaml:/gnu/store/y2mcznccgvcdpc5bl8z0b07nrzccd1na-= dune-3.6.1/lib/ocaml/site-lib:/gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-o= caml-4.14.0/lib/ocaml:/gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocaml-fin= dlib-1.9.5/lib/ocaml:/gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocaml-find= lib-1.9.5/lib/ocaml/site-lib:/gnu/store/wazczxixf2s0aakw586gh1pk8s3yc74d-ca= mlidl-1.09/lib/ocaml:/gnu/store/wazczxixf2s0aakw586gh1pk8s3yc74d-camlidl-1.= 09/lib/ocaml/site-lib:/gnu/store/b29gw382cvsk6963xhq9aj84rlwmhn8m-ocaml-big= array-compat-1.1.0/lib/ocaml:/gnu/store/b29gw382cvsk6963xhq9aj84rlwmhn8m-oc= aml-bigarray-compat-1.1.0/lib/ocaml/site-lib:/gnu/store/6fq5x7m49a3m1d66daw= k36k0qcmy6i27-dune-configurator-3.6.1/lib/ocaml:/gnu/store/6fq5x7m49a3m1d66= dawk36k0qcmy6i27-dune-configurator-3.6.1/lib/ocaml/site-lib:/gnu/store/spdk= ficsp4fychyxfplyp8qli0hq47pc-ocaml-csexp-1.5.1/lib/ocaml:/gnu/store/spdkfic= sp4fychyxfplyp8qli0hq47pc-ocaml-csexp-1.5.1/lib/ocaml/site-lib:/gnu/store/i= nkky9cq6fxbv7vsibwix0z8svkxkwmj-ocaml-result-1.5/lib/ocaml:/gnu/store/inkky= 9cq6fxbv7vsibwix0z8svkxkwmj-ocaml-result-1.5/lib/ocaml/site-lib' environment variable `CAML_LD_LIBRARY_PATH' unset environment variable `BASH_LOADABLES_PATH' unset environment variable `C_INCLUDE_PATH' set to `/gnu/store/j8wlfmlmfvpbza6is9= wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mng= shq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.= 1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:/gnu= /store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4x65s= nfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy82p92= ac6g5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnpp= mxi3-glibc-2.35/include:/gnu/store/ib2n2vzqpchc3bhh9i712w5sq9zapn8d-gmp-6.2= .1/include:/gnu/store/cs3hw1wnxgijjzsd61whc8ar3qy9wjd6-mpfr-4.2.0/include:/= gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49/incl= ude' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/j8wlfmlmfvpbza= 6is9wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l= 3mngshq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-= 5.2.1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:= /gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4= x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy8= 2p92ac6g5xw48l0lwwz4-gcc-11.3.0/include/c++:/gnu/store/5lqhcv91ijy82p92ac6g= 5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3= -glibc-2.35/include:/gnu/store/ib2n2vzqpchc3bhh9i712w5sq9zapn8d-gmp-6.2.1/i= nclude:/gnu/store/cs3hw1wnxgijjzsd61whc8ar3qy9wjd6-mpfr-4.2.0/include:/gnu/= store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49/include' environment variable `LIBRARY_PATH' set to `/gnu/store/y2mcznccgvcdpc5bl8z0= b07nrzccd1na-dune-3.6.1/lib:/gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-oca= ml-4.14.0/lib:/gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocaml-findlib-1.9= .5/lib:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/lib:/gnu/sto= re/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/lib:/gnu/store/hc05d76f1j3iz3= v2bs5jz4fpljl1r4dj-gawk-5.2.1/lib:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimnc= wj-xz-5.2.8/lib:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/l= ib:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib:/gnu/store/l0= yryi5jsa1grnvw01c9nkz9c81cv224-glibc-2.35-static/lib:/gnu/store/visfdda934g= vivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35/lib:/gnu/store/lj75fc25zx2y9p= qvfp95la84rdhlj4f8-perl-5.36.0/lib:/gnu/store/wazczxixf2s0aakw586gh1pk8s3yc= 74d-camlidl-1.09/lib:/gnu/store/ib2n2vzqpchc3bhh9i712w5sq9zapn8d-gmp-6.2.1/= lib:/gnu/store/cs3hw1wnxgijjzsd61whc8ar3qy9wjd6-mpfr-4.2.0/lib:/gnu/store/b= 29gw382cvsk6963xhq9aj84rlwmhn8m-ocaml-bigarray-compat-1.1.0/lib:/gnu/store/= 6fq5x7m49a3m1d66dawk36k0qcmy6i27-dune-configurator-3.6.1/lib:/gnu/store/spd= kficsp4fychyxfplyp8qli0hq47pc-ocaml-csexp-1.5.1/lib:/gnu/store/inkky9cq6fxb= v7vsibwix0z8svkxkwmj-ocaml-result-1.5/lib' environment variable `GUIX_LOCPATH' set to `/gnu/store/visfdda934gvivwihwhl= m63fdqhhcc8a-glibc-utf8-locales-2.35/lib/locale' environment variable `PERL5LIB' set to `/gnu/store/lj75fc25zx2y9pqvfp95la84= rdhlj4f8-perl-5.36.0/lib/perl5/site_perl' phase `set-paths' succeeded after 0.0 seconds starting phase `install-locale' using 'en_US.utf8' locale for category "LC_ALL" phase `install-locale' succeeded after 0.0 seconds starting phase `unpack' mlgmpidl-1.2.15/ mlgmpidl-1.2.15/.gitignore mlgmpidl-1.2.15/COPYING mlgmpidl-1.2.15/Changes mlgmpidl-1.2.15/Makefile mlgmpidl-1.2.15/Makefile.config.in mlgmpidl-1.2.15/Makefile.config.model mlgmpidl-1.2.15/Makefile.depend mlgmpidl-1.2.15/README mlgmpidl-1.2.15/configure mlgmpidl-1.2.15/gmp_caml.c mlgmpidl-1.2.15/gmp_caml.h mlgmpidl-1.2.15/gmp_random.idl mlgmpidl-1.2.15/index.tex mlgmpidl-1.2.15/introduction.mli mlgmpidl-1.2.15/mlgmpidl.tex mlgmpidl-1.2.15/mpf.idl mlgmpidl-1.2.15/mpfr.idl mlgmpidl-1.2.15/mpfrf.ml mlgmpidl-1.2.15/mpfrf.mli mlgmpidl-1.2.15/mpq.idl mlgmpidl-1.2.15/mpqf.ml mlgmpidl-1.2.15/mpqf.mli mlgmpidl-1.2.15/mpz.idl mlgmpidl-1.2.15/mpzf.ml mlgmpidl-1.2.15/mpzf.mli mlgmpidl-1.2.15/opam/ mlgmpidl-1.2.15/opam/opam mlgmpidl-1.2.15/perlscript_c.pl mlgmpidl-1.2.15/perlscript_caml.pl mlgmpidl-1.2.15/session.ml phase `unpack' succeeded after 0.0 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' patch-shebang: ./configure: changing `/bin/sh' to `/gnu/store/rib9g2ig1xf3k= clyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh' phase `patch-source-shebangs' succeeded after 0.0 seconds starting phase `ocaml-findlib-environment' phase `ocaml-findlib-environment' succeeded after 0.0 seconds starting phase `patch-generated-file-shebangs' phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `update-deprecated' checking compilation with cc : not working checking compilation with gcc : working checking compilation with gcc -Wcast-qual: working checking compilation with gcc -Wswitch: working checking compilation with gcc -Wall: working checking compilation with gcc -Wextra: working checking compilation with gcc -Wundef: working checking compilation with gcc -Wcast-align: working checking compilation with gcc -Wno-unused: working checking compilation with gcc -Wno-unused-parameter: working checking compilation with gcc -Wno-unused-function: working checking compilation with gcc -fPIC: working checking compilation with gcc -Werror-implicit-function-declaration: working checking compilation with gcc -Wbad-function-cast: working checking compilation with gcc -Wstrict-prototypes: working checking compilation with gcc -std=3Dc99: working binary ar: found in /gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.= 38/bin binary ranlib: found in /gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutil= s-2.38/bin binary sed: found in /gnu/store/xxcfsimvxz7z4dj593gnqbkzc6picwzq-sed-4.8/bin binary grep: found in /gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/= bin binary perl: found in /gnu/store/lj75fc25zx2y9pqvfp95la84rdhlj4f8-perl-5.36= .0/bin binary install: found in /gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreut= ils-9.1/bin looking for gmp without prefix include gmp.h: found library gmp: found library gmp found without prefix looking for mpfr without prefix include mpfr.h: found library mpfr: found library mpfr found without prefix library mpfr major version: 4 binary ocamlc.opt: found in /gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-oca= ml-4.14.0/bin binary ocamlopt.opt: found in /gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-o= caml-4.14.0/bin binary ocamldep: found in /gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-ocaml= -4.14.0/bin binary ocamldoc: found in /gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-ocaml= -4.14.0/bin binary ocamlmktop: found in /gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-oca= ml-4.14.0/bin binary ocamlmklib: found in /gnu/store/dv3v554glm914qaf1sypwa3bgv5x3g43-oca= ml-4.14.0/bin binary camlidl: found in /gnu/store/wazczxixf2s0aakw586gh1pk8s3yc74d-camlid= l-1.09/bin binary ocamlfind: found in /gnu/store/vcbmrxf417r1mbazx145y9fmbx1bbk4b-ocam= l-findlib-1.9.5/bin ocamlfind: Package `gmp' not found include caml/mlvalues.h: found include caml/camlidlruntime.h: not found OCaml not found error: in phase 'update-deprecated': uncaught exception: %exception #<&invoke-error program: "./configure" arguments: ("--prefix" "/= gnu/store/v4c02g0s0r7n4kkl0rvkkf3xnrhqriia-ocaml-mlgmpidl-1.2.15") exit-sta= tus: 1 term-signal: #f stop-signal: #f> phase `update-deprecated' failed after 1.1 seconds command "./configure" "--prefix" "/gnu/store/v4c02g0s0r7n4kkl0rvkkf3xnrhqri= ia-ocaml-mlgmpidl-1.2.15" failed with status 1 note: keeping build directory `/tmp/guix-build-ocaml-mlgmpidl-1.2.15.drv-31' builder for `/gnu/store/2vss9ph7rgvqamqjd32y1qs1qh72myrl-ocaml-mlgmpidl-1.2= .15.drv' failed with exit code 1 build of /gnu/store/2vss9ph7rgvqamqjd32y1qs1qh72myrl-ocaml-mlgmpidl-1.2.15.= drv failed View build log at '/var/log/guix/drvs/2v/ss9ph7rgvqamqjd32y1qs1qh72myrl-oca= ml-mlgmpidl-1.2.15.drv.bz2'. guix build: error: build of `/gnu/store/2vss9ph7rgvqamqjd32y1qs1qh72myrl-oc= aml-mlgmpidl-1.2.15.drv' failed $ #+end_src