From: Nikita Karetnikov <nikita@karetnikov.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: bug-guix@gnu.org
Subject: Re: Cross-building GHC
Date: Thu, 14 Mar 2013 23:12:09 +0400 [thread overview]
Message-ID: <87obelg5iu.fsf@karetnikov.org> (raw)
In-Reply-To: <87620trip2.fsf@gnu.org> ("Ludovic Courtès"'s message of "Thu, 14 Mar 2013 18:32:09 +0100")
[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]
> 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/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/libexec/gcc/mips64el-linux-gnu:/nix/store/khdyz3i5aih56lxfk6hjvp3884apm7qb-gcc-cross-mips64el-linux-gnu-4.7.2/libexec/gcc/mips64el-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 ‘ld’), 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)?
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2013-03-14 19:10 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 [this message]
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
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=87obelg5iu.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.