bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial cross-compilation support


From: Nikita Karetnikov
Subject: Re: Initial cross-compilation support
Date: Mon, 04 Mar 2013 04:19:24 +0400

> 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?

Attachment: pgp5mOZrOzKyR.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]