From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Guix system cross-compile Date: Sat, 23 Mar 2019 17:15:35 +0100 Message-ID: <87y355y3bs.fsf@gnu.org> References: <87ef7kfk2v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7jJ3-0000hP-Rn for guix-devel@gnu.org; Sat, 23 Mar 2019 12:15:39 -0400 In-Reply-To: <87ef7kfk2v.fsf@gmail.com> (Mathieu Othacehe's message of "Wed, 06 Mar 2019 10:06:32 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mathieu Othacehe Cc: Guix-devel Hi Mathieu, Sorry for not replying earlier=E2=80=A6 Mathieu Othacehe skribis: > I'm digging up the --target option topic for guix system. I'd like to be > able at first to produce a cross-compiled disk-image as discussed here: > > https://lists.gnu.org/archive/html/guix-devel/2017-10/msg00242.html > > Besides packages for whom cross-compilation is broken, I'm hitting a > problem that seems to be described here: > > https://lists.gnu.org/archive/html/bug-guix/2017-08/msg00140.html > > when running: > > guix system disk-image --target=3Darm-linux-gnueabihf config.scm --no-gra= fts > > Something forces the cross-compilation of make-boot0 which isn't > cross-compilable, even with grafting disabled (log attached). > > Any idea on how to investigate this? [...] > build of /gnu/store/nc2qbmv0c0mj7nflhpwjsvn3pqm4byab-make-boot0-4.2.1.drv= failed > View build log at '/var/log/guix/drvs/nc/2qbmv0c0mj7nflhpwjsvn3pqm4byab-m= ake-boot0-4.2.1.drv.bz2'. > cannot build derivation `/gnu/store/27x086jl1pa585gjmbdrcki7szd5qc5s-bzip= 2-1.0.6.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/qdcqcc1701j8jk6w80gafpp1mscpkiji-core= utils-8.30.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/791bb2j5yr74ad2h4f020lmnv8l9s0b2-diff= utils-3.6.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/knwahdlrmhnig8s77gfmfcqj7zwxap6v-find= utils-4.6.0.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/dgc8pkrnsf35zr9bj7j8vwfwvs7jd2xq-gawk= -4.2.1.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/q3yaljifyj5bcl4bbs78h7kj1fw7mv47-glib= c-2.28.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/8jm8bah8cqwpbmcb7g2x9h1whbfk6j0w-grep= -3.1.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/whsrmay3ddj2nifxvj8l7f2jqlil4vvy-gzip= -1.9.drv': 1 dependencies couldn't be built > building /gnu/store/b0j18x8b8jgyq5s581s2qv6bsdb804k4-modprobe.drv... > cannot build derivation `/gnu/store/fh8xjdi7h8baqwhkhapldhfv62bbmda6-patc= h-2.7.6.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/bb1l5zb19nva2kvxxwy2z6zs5z9zvmr4-sed-= 4.5.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/qks66p38kj8vm99nr7qgpf26p57kbsb0-tar-= 1.30.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/9kp8pl1whm0f6wi7mfmkrmkhrbi4k7il-xz-5= .2.4.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/mq8jaavjxmqfayfdwhvr4mxycw52wl6y-ca-c= ertificate-bundle.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/bray04ln6qvpw7dd40li84i9k0v7mynx-font= s-dir.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/s167zzl6h92k72xb2f06jg4ai20mcfqp-info= -dir.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/3fkw085xjia3p3gznk0hnw3rwn59992h-manu= al-database.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/vg73b8j47zgf71fg6547wa5hhz31v1l2-shep= herd-nscd.scm.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/pbbd2zbixzla23fijbznnaz09wfx047j-prof= ile.drv': 1 dependencies couldn't be built > note: keeping build directory `/tmp/guix-build-modprobe.drv-6' > cannot build derivation `/gnu/store/nr5qprp6n0gggw2ym7cgn9pzwhjry9s1-shep= herd.conf.drv': 1 dependencies couldn't be built > building /gnu/store/gnmiac4byjlr875lqy28fvndvkdfrpva-module-import-compil= ed.drv... > cannot build derivation `/gnu/store/qbwkrj7v4dgwzfh9cjizv9zgcmkpswnx-syst= em.drv': 1 dependencies couldn't be built > note: keeping build directory `/tmp/guix-build-module-import-compiled.drv= -6' > cannot build derivation `/gnu/store/l45gylnvs8cv2nd35i86z6nqg598x4kf-disk= -image.drv': 1 dependencies couldn't be built > guix system: error: build of `/gnu/store/l45gylnvs8cv2nd35i86z6nqg598x4kf= -disk-image.drv' failed Could you do it with --max-jobs=3D1 so we get a clearer view of the chain of derivations that=E2=80=99s failing? To test system cross-compilation, I suggest starting from a trimmed list for the =E2=80=98packages=E2=80=99 list, smaller than =E2=80=98%base-packag= es=E2=80=99. I=E2=80=99m guessing that all the packages added there with =E2=80=98canoni= cal-package=E2=80=99 are the cause of the problem (=E2=80=98make-boot0=E2=80=99 being cross-comp= iled.) You can reproduce this problem like this: guix build -e '(@@ (gnu packages commencement) coreutils-final)' \ --target=3Darm-linux-gnueabihf --no-grafts (=E2=80=98coreutils-final=E2=80=99 is the same as (canonical-package coreut= ils).) So if you remove these, that should work. HTH! Ludo=E2=80=99.