From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: Initial cross-compilation support Date: Mon, 04 Mar 2013 04:19:24 +0400 Message-ID: <87txos2f03.fsf@karetnikov.org> References: <87txoxv7x9.fsf@gnu.org> <201303031726.08488.andreas@enge.fr> 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]:39841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCJ7B-0004TD-CK for bug-guix@gnu.org; Sun, 03 Mar 2013 19:18:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCJ78-0003Ua-VY for bug-guix@gnu.org; Sun, 03 Mar 2013 19:18:49 -0500 Received: from [2a01:7e00::f03c:91ff:fedf:181] (port=36303 helo=cooksoni.karetnikov.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCJ78-0003UW-PY for bug-guix@gnu.org; Sun, 03 Mar 2013 19:18:46 -0500 In-Reply-To: <201303031726.08488.andreas@enge.fr> (Andreas Enge's message of "Sun, 3 Mar 2013 17:26:08 +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: Andreas Enge Cc: bug-guix@gnu.org --=-=-= > Congratulations! I tried the build and it worked without problem. How can I try it? I set the LIBRARY_PATH variable: export LIBRARY_PATH=/nix/store/mifp2p1zjlvb4ndslw1r8grkpglybqjf-glibc-cross-mips64el-linux-gnu-2.17/lib and tried to compile a test file 'foo.c': int main() {return 0;} However, 'ld' failed to find 'crt1.o' and 'crti.o': # /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/bin/mips64el-linux-gnu-gcc foo.c /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/libexec/gcc/mips64el-linux-gnu/ld: cannot find crt1.o: No such file or directory /nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/libexec/gcc/mips64el-linux-gnu/ld: cannot find crti.o: No such file or directory collect2: error: ld returned 1 exit status Is it necessary to set any other variables? --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJRM+jMAAoJEM+IQzI9IQ38yCEQAJD6l0eJ8oO0GZ9Pp1eQEf06 STIG63JK1fliQTHIqO/VGIPBSizHRngJD6gDqDjJ1tWg4mWX0LqwZMWBhUq8pZ8n CvJ3O01Yth2zTPB0bqDUYAHiTWyXSs0oDVvsbvIUKDffcHW/s4vVrKoNf/9BXBK3 XKQUg22cY/dHgO+OhswOEDPUkIcXbKXj4oJ4j70xeXpMRtPFEOHJOYQgBC80ptaO rGziD/eFIUhiO8vgDQLYd23IaIT47CCx2m2kJHp+3StiWWMevpJhDXhxjuZpMBMh pruhJ+zc2RoDA7c17dtCuhyLT0RpIReHCkQYA+gCUKaIak4qswJXTb9xsu+2d3P8 om5JZBXFhzlOzkEqeC1iXgShCJMDv109lPNDJF7qYsel8L9NEgQLmMO4Rt8MNauN iFDB7ypBI6WP/9UTJzkDyIEUOD3v1Ul1gfaiMyeP9ioIdYBHlclbqeNP6wpHJNP6 wpk57WMRFDm/fHscHBFhUurg4azvik8lGvpz30MJ3ST7qE4JmfBR6OvLOIFGyWj8 FHW70Pi5IN5gIv2hGOHnjb1qPIgL1THGBIUywx2EOjfmZbvG/l70uA7HfJVHxNKD smiB0yEgiNlAZrmG97iUJcEJcsqK9Cbwlu67deEprKb4FYaW24r25jb1TSh4yq94 BjJWUD1oaO7d8RYR4GUM =6y6L -----END PGP SIGNATURE----- --=-=-=--