Re: Cross-building GHC

2013-05-17 Thread Ludovic Courtès
Nikita Karetnikov skribis: > There is a new problem. 'make bootstrapping-files' fails: > > make -r --no-print-directory -f ghc.mk bootstrapping-files > > [...] > > /usr/bin/find: `libraries/haskeline/dist-install/build': No such file or > directory > /usr/bin/find: `libraries/haskeline/dist-ins

Re: Cross-building GHC

2013-05-16 Thread Nikita Karetnikov
> You need to have both glibc-mipsel.../include and > linux-libre-headers-mipsel.../include in CROSS_CPATH. Can you check > whether this is the case. Thanks, './configure' works now, I guess. Here are the variables that I use (don't forget about the mentioned symlinks): LIBRARY_PATH=/root/.guix

Re: Cross-building GHC

2013-05-16 Thread Ludovic Courtès
Nikita Karetnikov skribis: > 1. It seems that mips64el is not supported. So it's necessary to port >[2] GHC. Ouch. Quite an endeavor, I suppose. > First I installed the cross-compiler to my profile and ran the following > commands: > > # export CPATH="/root/.guix-profile/include" > # expo

Re: Cross-building GHC

2013-05-16 Thread Nikita Karetnikov
I said that "you have to run './configure && make && make install && make clean' [...] to build the Stage 1 compiler." [1] This is not correct: 1. It seems that mips64el is not supported. So it's necessary to port [2] GHC. 2. './configure && make && make install' build the Stage 2 (final)

Re: Cross-building GHC

2013-03-14 Thread Ludovic Courtès
Nikita Karetnikov skribis: >> You mean it _tries_ to use it, because it’s not available in chroot >> 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

Re: Cross-building GHC

2013-03-14 Thread Nikita Karetnikov
> You mean it _tries_ to use it, because it’s not available in chroot > 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=/nix/store/khdyz3i5aih56lxf

Re: Cross-building GHC

2013-03-14 Thread Ludovic Courtès
Nikita Karetnikov skribis: > I'm trying to cross-build the Glasgow Haskell Compiler 7.6.2 [1]. > > I got stuck when I was trying to build a cross-compiler (Stage 1). > For some reason, it uses '/usr/bin/ld' instead of a cross-linker. You mean it _tries_ to use it, because it’s not available in c

Cross-building GHC

2013-03-09 Thread Nikita Karetnikov
I'm trying to cross-build the Glasgow Haskell Compiler 7.6.2 [1]. I got stuck when I was trying to build a cross-compiler (Stage 1). For some reason, it uses '/usr/bin/ld' instead of a cross-linker. Could anyone try to reproduce the problem? The process is described here [2]. If I got it right,