From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Rust 1.19 fails to build on i686 on =?utf-8?B?4oCYc3RhZ2lu?= =?utf-8?B?Z+KAmQ==?= Date: Fri, 15 Feb 2019 01:11:02 -0800 Message-ID: <87imxlju1l.fsf@gmail.com> References: <87k1ioq21m.fsf@gnu.org> <20190128162705.052961e4@scratchpost.org> <877eenrhbj.fsf@gnu.org> <20190130185900.7f3d30a9@scratchpost.org> <20190205122839.06b482db@scratchpost.org> <20190205123510.510731a6@scratchpost.org> <20190211223456.0779cf68@scratchpost.org> <87o97hz0ra.fsf@gmail.com> <20190212130658.2c1f2a23@scratchpost.org> <878sykbdgg.fsf@gmail.com> <87imxo9r0k.fsf@gmail.com> <87a7izhtqw.fsf@gmail.com> <20190214181401.661c0430@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guZWg-0001eT-Bq for guix-devel@gnu.org; Fri, 15 Feb 2019 04:11:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guZWc-0004Zm-Fs for guix-devel@gnu.org; Fri, 15 Feb 2019 04:11:17 -0500 In-Reply-To: <20190214181401.661c0430@scratchpost.org> (Danny Milosavljevic's message of "Thu, 14 Feb 2019 18:14:21 +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: Danny Milosavljevic Cc: Guix-devel --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Danny, Danny Milosavljevic writes: > On Wed, 13 Feb 2019 20:35:51 -0800 > Chris Marusich wrote: > >> I looked in the failed build directory, but I couldn't find a core >> dump. When I manually ran the command... >>=20 >> /gnu/store/jxq[...]-mrustc-0.8.0/bin/mrustc >> src/tools/cargo/src/bin/cargo.rs [...] >>=20 >> ...it actually succeeded. > > Does that mean in an i686-linux guix environment? > > If so, that's very good to know and it could be a good workaround to keep= going! > > Did you source the environment-variables, too? Here's more info about what I did. On my x86_64-linux Guix System machine, where the build failed, I ran the following commands: =2D-8<---------------cut here---------------start------------->8--- cd /tmp/guix-build-rust-1.19.0.drv-0 . environment-variables cd rustc-1.19.0-src/ /gnu/store/jxq5p3mx2gavj7hws1drz3pndn87lqrl-mrustc-0.8.0/bin/mrustc src/too= ls/cargo/src/bin/cargo.rs --crate-name cargo --crate-type bin --crate-tag 0= _20_0 -g --cfg debug_assertions -O -o output/cargo-build/cargo -L output/ca= rgo-build --extern cargo=3Doutput/cargo-build/libcargo-0_20_0.hir --extern = crates_io=3Doutput/cargo-build/libcrates_io-0_9_0.hir --extern crossbeam=3D= output/cargo-build/libcrossbeam-0_2_10.hir --extern curl=3Doutput/cargo-bui= ld/libcurl-0_4_6.hir --extern docopt=3Doutput/cargo-build/libdocopt-0_7_0.h= ir --extern env_logger=3Doutput/cargo-build/libenv_logger-0_4_2.hir --exter= n error_chain=3Doutput/cargo-build/liberror_chain-0_10_0.hir --extern filet= ime=3Doutput/cargo-build/libfiletime-0_1_10.hir --extern flate2=3Doutput/ca= rgo-build/libflate2-0_2_19.hir --extern fs2=3Doutput/cargo-build/libfs2-0_4= _1.hir --extern git2=3Doutput/cargo-build/libgit2-0_6_6.hir --extern git2_c= url=3Doutput/cargo-build/libgit2_curl-0_7_0.hir --extern glob=3Doutput/carg= o-build/libglob-0_2_11.hir --extern jobserver=3Doutput/cargo-build/libjobse= rver-0_1_6.hir --extern libc=3Doutput/cargo-build/liblibc-0_2_22.hir --exte= rn libgit2_sys=3Doutput/cargo-build/liblibgit2_sys-0_6_12.hir --extern log= =3Doutput/cargo-build/liblog-0_3_7.hir --extern num_cpus=3Doutput/cargo-bui= ld/libnum_cpus-1_4_0.hir --extern rustc_serialize=3Doutput/cargo-build/libr= ustc_serialize-0_3_24.hir --extern scoped_tls=3Doutput/cargo-build/libscope= d_tls-0_1_0.hir --extern semver=3Doutput/cargo-build/libsemver-0_7_0.hir --= extern serde=3Doutput/cargo-build/libserde-1_0_6.hir --extern serde_derive= =3Doutput/cargo-build/libserde_derive-1_0_6.hir --extern serde_ignored=3Dou= tput/cargo-build/libserde_ignored-0_0_3.hir --extern serde_json=3Doutput/ca= rgo-build/libserde_json-1_0_2.hir --extern shell_escape=3Doutput/cargo-buil= d/libshell_escape-0_1_3.hir --extern tar=3Doutput/cargo-build/libtar-0_4_13= .hir --extern tempdir=3Doutput/cargo-build/libtempdir-0_3_5.hir --extern te= rm=3Doutput/cargo-build/libterm-0_4_5.hir --extern toml=3Doutput/cargo-buil= d/libtoml-0_4_1.hir --extern url=3Doutput/cargo-build/liburl-1_4_0.hir --ex= tern openssl=3Doutput/cargo-build/libopenssl-0_9_12.hir -L output -L /gnu/s= tore/jxq5p3mx2gavj7hws1drz3pndn87lqrl-mrustc-0.8.0/lib/mrust =2D-8<---------------cut here---------------end--------------->8--- The last command exited with exit code 0. For your reference, I've attached the output, also. The mrustc program is a 32-bit executable, which makes sense since the build was for an i686-linux system: =2D-8<---------------cut here---------------start------------->8--- $ file /gnu/store/jxq5p3mx2gavj7hws1drz3pndn87lqrl-mrustc-0.8.0/bin/mrustc /gnu/store/jxq5p3mx2gavj7hws1drz3pndn87lqrl-mrustc-0.8.0/bin/mrustc: ELF 32= -bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked= , interpreter /gnu/store/qk8irm5yp2khq4dj7zcpcaa1g87pfyvw-glibc-2.28/lib/ld= -linux.so.2, for GNU/Linux 2.6.32, stripped =2D-8<---------------cut here---------------end--------------->8--- Do I need to do something special to attempt to run this mrustc program in "i686-linux" mode? For example, I see that the guix-daemon sets the Linux kernel's personality to 32 bits by invoking personality(PER_LINUX32) in nix/libstore/build.cc. Maybe mrustc won't fail unless we do that first? =2D-=20 Chris --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=output.gz Content-Transfer-Encoding: base64 H4sICMmBZlwAA291dHB1dAC1WFtv2zYUfu+vMPrUApOtm29767IUK7AuRZZ1jwJF0RIdilRIynby 63dIWYpkO6WAuWjhSOJ3Dg/P+c5FekAyJ3ryp0DZr5Pv5t+7D/7U9yfq4+Shv/b73V+3774hqUgf Fxrc8alFGPCNRJqoDraartcG1l+y2NtDhXh/21VgcO1ji/lSVoxiqicnSlsbz9at1D1Rgu3I5J+h tVZisDZAf+EZOfTxUR9/XB1IfErhb637mwSDTV4BVu6PL/fghj2R/V1WRqC3Mtjh4bkCLYwiNTx8 0N9lCBrI/0YHHl7P+3LN4gBv7PiK5CPl+bmzL4OGHv988/ekQroYSA927UOs7I3gSiOuJ7c7xGqk zxl2AWElzcFxQfDj5A6cLM8cdLZ+IgVUk0QpCup7dPUXQ9kBqsdc64dPnAs9tDkMX2l8gjmVvmFC 1XIQ2nB+Iv2KOZX+/oBSdoEXlyBnOyPG1BnZzwGncvckFVKK/Q9le6BT+VsJLM2Mc8+i/Abq7ZhN PgAdaAae/dgpC6Zh9Gb4BgLHegU5N/n65b5TEB2TpLdikV+NN4/SHTicri1Zhosd/oYRxOuqXx7i Ft6tdei7StOS9kpWNF3OW/jr4pk1k293fYOCU4Ps+rnU55qxsxS/gGj8LxG475bXJZEDB8TH4J0B emJfBRelkFXRicXr6Sp+FesBzrwBhZdRTnoBbirmRUxv0xuRkZzwVu6+5hzq1QSLEpXAMm/yfpbz eqa0kGRWFo/VdheulSpljMtlsJjHhxjP8zL2Od6mXo6xN5/Op/4spXwGd+8n773NpuZYA7E8Rexf ZZ5WupAEZebyLjS/ufkR8CNqXdV6hqGvCi+tKcua6x8sTfHlRUbTWm9WCRw1J8oLEj/xpwWVU6Os d7Dt4WleReUhzNFuuyz2KsjkS1TxjK+W7Ekyr5S10tiD5gtnA60z+8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L/04 xrmvnr22EAZwgrAaaLniWV/nAHPaqakPF4xd7be+/3Qo5lkkUfa42C6WB56H1arwd4xu9t6xrsCW qzdPnD4Vmz1e89Vmt5K7g1+lEOkyXvNizw87FHsvIAcawmkQ/Kzj2pQwRzXKGfxkrL2Sur3qfS80 t4YL7bWJa3tda9pdQ6A6iHyutLgEwu1F6dyzC8vrBkVnRG63aO9eOq3mbObmX/aL5+W49w303Ydg +H23+xZrv8/+B81zjX90HAAA --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlxmgiYACgkQ3UCaFdgi Rp1osA/+LryxRS/rWfYNwAVS9GDtTWzZGKTm0eiOxuMjlFASt/Inr9a+vVm97IuB j04lrURMKO+NY7y0PhigkLYIU54lqI7qALFp7g/DeyhLsY4jVVm5oCQVEO5vd/Y/ tXWPG/33bmEXJnYvOlIbUTT5wgdW41E6Oxv6NE5cNe7FQXwzY9fHSPakV+TMUS4+ 2fIvpQmcjDbVU4/C/y3lV3q6gFvohzHLxBOOM2wFmpH1qUJDK4DRoMxXXDCQVHnA WN1Z6PFc+fT9UR3ZKgrRNGihI0n891OXY/FcaqOnffd7ssTqs6r8J5mllBvRHTVb qhBr/HzPam9je7Hq8FO0sp1BuqilM00k2sb6q0CgTRWy8/ImeMpbM7fTi5vOgsp+ u5iSn7CIaByig5EvDHO5kLFM6qXx4o7QJrAG7BlCPEeSpMSi2NF8ONAW1n5ZFm6F JzpsClCtxlBRAwkBhtRBJ4gddopjw+bejqLj07NZnUXX1hgz8BJFNaNWHmQwruMk IQPdjDT7QKkRn+EdPkTmsNP7HiqotTXcxsm8eVopPgg7hLbENWtqVHBPumljRx9R oAy8HZMnIbwYHrC5F6ZxQeGWLscshAf5pwAVE+zkMh7Ms+XOP1a+c/N8GStf20Ak apXMfDdTkUn+Uy/P0fO6qPxw3vms5dj0Yso7s27FEHv62w+Y1sw= =4wVd -----END PGP SIGNATURE----- --==-=-=--