From: Volker Grabsch <vog@notjusthosting.com>
To: Mike Gran <spk121@yahoo.com>
Cc: Andy Wingo <wingo@pobox.com>,
"bug-guile@gnu.org" <bug-guile@gnu.org>,
"guile-devel@gnu.org" <guile-devel@gnu.org>
Subject: Re: Guile with win32 cross compiling
Date: Wed, 6 Apr 2011 03:38:33 +0200 [thread overview]
Message-ID: <20110406013833.GC4778@flap> (raw)
In-Reply-To: <628216.88114.qm@web37906.mail.mud.yahoo.com>
Mike Gran schrieb:
> > Gen-scmconfig is a code generator, so it has to be built using
> > the native toolchain. However, it is supposed to write take its
> > values from the <uniconv.h> of the cross tool chain. Thus, the
> > "/usr/include" equivalent of the cross tool chain is added to
> > the include path when compiling gen-scmconfig. And here the
> > trouble starts, because mixing headers of various toolchains
> > is never a good idea. Among others, basic headers like <stdio.h>
> > are now taken from the cross toolchain, referring to objects that
> > don't even exist in the native toolchain, causing the build to
> > fail with all kinds of strange error messages.
>
> There was a recent discussion about these sorts of builds at
> http://lists.gnu.org/archive/html/automake/2011-04/msg00014.html
If I understand this correctly, the proposed way for cross
compilation is to build the code generators (like gen-scmconfig)
entirely using the build toolchain. This means that <uniconv.h>
and others have to be available on the build system, and constants
are taken from there, rather than from the host toolchain.
In other words, cross-compiling will only work well if the
library versions of the build toolchain and the host toolchain
don't differ too much.
Is this really the way this is meant to be done?
Please don't take this is as a harsh criticism. I just want to
make sure that I fully understand this advice.
Greets,
Volker
--
Volker Grabsch
---<<(())>>---
next prev parent reply other threads:[~2011-04-06 1:38 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 19:43 Guile with win32 cross compiling Mike Gran
2011-04-06 1:38 ` Volker Grabsch [this message]
2011-04-06 12:46 ` Ludovic Courtès
-- strict thread matches above, loose matches on Subject: below --
2011-03-26 22:06 Volker Grabsch
2011-04-01 10:38 ` Andy Wingo
2011-04-01 18:50 ` Volker Grabsch
2011-04-12 11:14 ` Andy Wingo
2011-04-23 16:10 ` Volker Grabsch
2011-04-24 10:42 ` Andy Wingo
2011-05-16 23:01 ` Volker Grabsch
2011-05-20 10:32 ` Andy Wingo
2011-05-20 12:25 ` Volker Grabsch
2011-05-20 12:48 ` Jan Nieuwenhuizen
2011-05-20 13:25 ` Andy Wingo
2011-05-20 22:19 ` Volker Grabsch
2011-06-17 9:03 ` Andy Wingo
2011-07-01 13:52 ` Andy Wingo
2011-04-24 20:22 ` Ludovic Courtès
2011-04-28 21:03 ` Andy Wingo
2011-06-19 14:42 ` Ludovic Courtès
2011-03-26 22:04 Volker Grabsch
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110406013833.GC4778@flap \
--to=vog@notjusthosting.com \
--cc=bug-guile@gnu.org \
--cc=guile-devel@gnu.org \
--cc=spk121@yahoo.com \
--cc=wingo@pobox.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).