Re: Problem with uilding a package for intel onepi fortran compiler.
Hi Cécile, On Fri, 02 Sep 2022 at 18:59, Céline Acary wrote: > Pierre Antoine là-dedans significative progress without reaching to suceed Let’s talk on all that in real life at Guix 10 years Days. :-) Cheers, simon
Re: Problem with uilding a package for intel onepi fortran compiler.
Hi Simon Not really Pierre Antoine là-dedans significative progress without reaching to suceed Cheers > Le 2 sept. 2022 à 18:46, zimoun a écrit : > > Hi Cécile, > > I am really late to the party. Did you solve the issue in the meantime? > >> On Wed, 13 Apr 2022 at 08:38, Céline Acary-Robert >> wrote: >> >> We are trying to build a package for intel onepi fortran compiler. The >> sources are installed through a script "install" (/bin/sh) which calls >> a binary bootstrapper which allows to download the files and install >> them > > As Thiago noticed, the network is not available inside the build > environment. So it would not be possible that the script would download > these files. > > The workaround is to download them beforehand, if possible, and provide > them as inputs. Hum, I do not find an example in the Guix source; maybe > I remember incorrectly. > > > >> ./install.sh: line 34: >> /tmp/guix-build-intel_oneapi-2022.0.1.70.drv-0/l_fortran-compiler_p_2022.0.1.70_offline/bootstrapper: >> No such file or directory >> error: in phase 'install': uncaught exception: > > Are you sure that the file pointed by the script install.sh at the line > 34 is provided by the source of the package. You can examine the > post-mortem failure with: > >guix build -f oneapi.scm -K >cd /tmp/guix-/source > > and inspect this line 34. > > >>(uri (string-append >> "https://registrationcenter-download.intel.com/akdlm/irc_nas/18436/l_fortran-comp$ > > It is hard to test myself since the URL had been mangled. Could you > provide where can I download the archive? Well, if it is still an > issue. :-) > > > Cheers, > simon
Re: Problem with uilding a package for intel onepi fortran compiler.
Hi Cécile, I am really late to the party. Did you solve the issue in the meantime? On Wed, 13 Apr 2022 at 08:38, Céline Acary-Robert wrote: > We are trying to build a package for intel onepi fortran compiler. The > sources are installed through a script "install" (/bin/sh) which calls > a binary bootstrapper which allows to download the files and install > them As Thiago noticed, the network is not available inside the build environment. So it would not be possible that the script would download these files. The workaround is to download them beforehand, if possible, and provide them as inputs. Hum, I do not find an example in the Guix source; maybe I remember incorrectly. > ./install.sh: line 34: > /tmp/guix-build-intel_oneapi-2022.0.1.70.drv-0/l_fortran-compiler_p_2022.0.1.70_offline/bootstrapper: > No such file or directory > error: in phase 'install': uncaught exception: Are you sure that the file pointed by the script install.sh at the line 34 is provided by the source of the package. You can examine the post-mortem failure with: guix build -f oneapi.scm -K cd /tmp/guix-/source and inspect this line 34. > (uri (string-append > "https://registrationcenter-download.intel.com/akdlm/irc_nas/18436/l_fortran-comp$ It is hard to test myself since the URL had been mangled. Could you provide where can I download the archive? Well, if it is still an issue. :-) Cheers, simon
Re: Problem with uilding a package for intel onepi fortran compiler.
Hello Céline, Céline Acary-Robert writes: > We are trying to build a package for intel onepi fortran compiler. The > sources are installed through a script "install" (/bin/sh) which calls > a binary bootstrapper which allows to download the files and install > them I don’t know about the “no such file or directory” error that you are seeing, but I can tell that if you’re able to fix it, then you’ll run into the problem that the binary bootstrapper won’t be able to download the files. Guix’s build environment doesn’t allow access to the network. A package needs to be able to be built with the declared inputs and native-inputs and nothing more. This is required for security, integrity and build reproducibility of the resulting package. Is it possible to download the files in advance and provide them as inputs to the package? > starting phase `install' > ./install.sh: line 34: What's in line 34 of install.sh? > /tmp/guix-build-intel_oneapi-2022.0.1.70.drv-0/l_fortran-compiler_p_2022.0.1.70_offline/bootstrapper: > No such file or directory If you run guix build with the “--keep-failed” argument, do you see a “bootstraper” file in the directory above? If so, and if it is an ELF binary, does running ‘ldd’ on it show that it has all the libraries that it needs? -- Thanks Thiago