From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: Cross-building GHC Date: Thu, 14 Mar 2013 23:12:09 +0400 Message-ID: <87obelg5iu.fsf@karetnikov.org> References: <87sj443got.fsf@karetnikov.org> <87620trip2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGDXV-0003tw-Po for bug-guix@gnu.org; Thu, 14 Mar 2013 15:10:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGDXT-0006ml-8i for bug-guix@gnu.org; Thu, 14 Mar 2013 15:10:09 -0400 In-Reply-To: <87620trip2.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 14 Mar 2013 18:32:09 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: bug-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > You mean it _tries_ to use it, because it=E2=80=99s not available in chro= ot > builds, right? It'll try to use '/usr/bin/ld' if I run 'unset COMPILER_PATH'. I guess that it's trying to autodetect the right linker during './configure'. However, if I run export COMPILER_PATH=3D/nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cros= s-mips64el-linux-gnu-4.7.2/libexec/gcc/mips64el-linux-gnu:/nix/store/khdyz3= i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/libexec/gcc/m= ips64el-linux-gnu/4.7.2 to specify the location of subprograms, it'll complain about unrecognized opcodes. For example: configure: Building in-tree ghc-pwd /tmp/ghc30831_0/ghc30831_0.s: Assembler messages: /tmp/ghc30831_0/ghc30831_0.s:23:0: Error: Unrecognized opcode `cmpl $92,3(%esi)' /tmp/ghc30831_0/ghc30831_0.s:24:0: Error: Unrecognized opcode `jne .LcF1' > Perhaps it needs both a native GCC and a cross-GCC (ditto for =E2=80=98ld= =E2=80=99), no? > (For instance because ghc-pwd is a program to run during the build, so > it needs to be a native program.) I think that it's the reason for the above messages, but I can't say for sure. > Does it have --with-target-gcc or similar in addition to --with-gcc? No. Is there a workaround (e.g., envvars)? --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJRQiENAAoJEM+IQzI9IQ38necQAJaTg9y+tTJ+xWXm/2I9oRQL mTFVee6sCbyKsIB944pMMQ9vIszGVnWix7YbMI/hUvfzGnBGIz5qJu1mJ57DbTbl W4pogkHFrnBtLucilr34zP3s6TGKGz012htOTaVGNGY0vEBqHZG4iD0K7Su13/rX o0JQI57yKvF2xMD8Jn5KkLbOkCYbGl4rwOwEmXT85MkAgOIJPVRSghsY8aDTw6sY qyPs+Ijpue4ZB8O8sm/WhDGWVn4NLDamZm1zzQ6vXtWIRly7i87DHzq+32OZP6EB JNbCd2ypkDHuW6nADostj7nTNQlW0+6pZfx7wQCvykadRI5LIZs8o3Z/49N2sTD5 u1cUATNLR3kR8RsgoX68ucpVf3pgMH2ghC6ZunS24r+U+5nTWUDKP6+TBrD7b3r+ i/osFQ9aXgIR61e0zKBc5ePAg+nLaZ1W3ZvIAVE5B+L+VHWvohwK0xoh6GBQ5CO1 cze3xrhAVOINf6nKGUi4Uux3+BMA7Sbr4HlJHLEAkR4wn8+s18R0/o8Mnrq3nhUr TXZJ351vS4kfDLP9IfQsNiJhoS15/Yr7Vl5KQobyUCZSYd11CNF/UFObdqJQvxIn dYCljdQm+8Fg/5y6HUZpufVaWtJPNDA3FksL1PJh7sc8Hv2ubuZlzIaXuj31LNIM PzOokeoBjsqaI1Z3sUSV =2QEc -----END PGP SIGNATURE----- --=-=-=--