From: Nikita Karetnikov <nikita@karetnikov.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: bug-guix@gnu.org
Subject: Re: Cross-building GHC
Date: Fri, 17 May 2013 08:03:52 +0400 [thread overview]
Message-ID: <8738tm8d7b.fsf@karetnikov.org> (raw)
In-Reply-To: <87r4h6aiz6.fsf@gnu.org> ("Ludovic Courtès"'s message of "Thu, 16 May 2013 20:16:13 +0200")
[-- Attachment #1: Type: text/plain, Size: 2485 bytes --]
> 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-profile/lib
CPATH=/root/.guix-profile/include
CROSS_CPATH=/nix/store/xisav2mcispg63ns8w9x5blvd14gyrd7-glibc-cross-mips64el-linux-gnu-2.17/include:/nix/store/2lzg1610m9r6kg37ja7nr5fbk6gccd9h-linux-libre-headers-cross-mips64el-linux-gnu-3.3.8/include
PATH=/nix/store/zp44ibqg7wy7rm6ipffzxx6jd1wm79fd-binutils-cross-mips64el-linux-gnu-2.23.2/bin:/root/.guix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
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-install/build': No such file or directory
/usr/bin/find: `libraries/integer-gmp/dist-install/build': No such file or directory
mkdir inplace
mkdir inplace/bin
mkdir inplace/lib
"rm" -f inplace/bin/mkdirhier
echo '#!/bin/sh' >> inplace/bin/mkdirhier
cat utils/mkdirhier/mkdirhier.sh >> inplace/bin/mkdirhier
chmod +x inplace/bin/mkdirhier
Creating includes/ghcautoconf.h...
Done.
"rm" -f includes/ghcplatform.h
Creating includes/ghcplatform.h...
Done.
"inplace/bin/mkdirhier" includes/dist-derivedconstants/build//.
CC includes/dist-derivedconstants/build/mkDerivedConstants.o
"inplace/bin/mkdirhier" includes/dist-derivedconstants/build/tmp//.
/bin/sh: Syntax error: Unterminated quoted string
make[1]: *** [includes/dist-derivedconstants/build/tmp/mkDerivedConstants] Error 2
make: *** [bootstrapping-files] Error 2
I don't understand what causes the error.
Just for reference, I invoked the following commands:
T# cp /bin/pwd utils/ghc-pwd/ghc-pwd
T# perl boot
Then replaced '$GHC_PACKAGE_DB_FLAG' with 'package-db' in 'configure'.
T# ./configure --enable-hc-boot --target=mips64el-linux-gnu
T# cd libraries/integer-gmp
T/libraries/integer-gmp# ./configure
T/libraries/integer-gmp# cd ../..
T# cd mk
T/mk# cp build.mk.sample build.mk
After that I uncommented the following in 'build.mk':
# An unregisterised, optimised build of ghc, for porting:
BuildFlavour = unreg
T/mk# cd ..
T# make bootstrapping-files
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2013-05-17 4:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-09 12:23 Cross-building GHC Nikita Karetnikov
2013-03-14 17:32 ` Ludovic Courtès
2013-03-14 19:12 ` Nikita Karetnikov
2013-03-14 23:20 ` Ludovic Courtès
2013-05-16 8:04 ` Nikita Karetnikov
2013-05-16 18:16 ` Ludovic Courtès
2013-05-17 4:03 ` Nikita Karetnikov [this message]
2013-05-17 13:31 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8738tm8d7b.fsf@karetnikov.org \
--to=nikita@karetnikov.org \
--cc=bug-guix@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.