Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-17 Thread Doug Evans
On Thu, Mar 13, 2014 at 11:05 AM, Ludovic Courtès l...@gnu.org wrote: Mark H Weaver m...@netris.org skribis: Dale Evans pointed out that GCC runs the autoconf tests twice when cross-compiling: once for the build machine and once for the host machine. I suspect that this is the proper

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-17 Thread Ludovic Courtès
Doug Evans xdj...@gmail.com skribis: On Thu, Mar 13, 2014 at 11:05 AM, Ludovic Courtès l...@gnu.org wrote: Mark H Weaver m...@netris.org skribis: Dale Evans pointed out that GCC runs the autoconf tests twice when cross-compiling: once for the build machine and once for the host machine. I

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-17 Thread Doug Evans
On Mon, Mar 17, 2014 at 1:32 PM, Ludovic Courtès l...@gnu.org wrote: Doug Evans xdj...@gmail.com skribis: On Thu, Mar 13, 2014 at 11:05 AM, Ludovic Courtès l...@gnu.org wrote: Mark H Weaver m...@netris.org skribis: Dale Evans pointed out that GCC runs the autoconf tests twice when

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-14 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: So, should we keep just the c-tokenize.lex part of 8cb0d6d7fa9aaac316c29a64c541336b51b6f93d, and revert the rest? Sounds good. I did this in 17d4daa8bd11176c2ebe0d35ac48da3d247094ff. Thanks, Mark

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-13 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: Commit 8cb0d6d7fa9aaac316c29a64c541336b51b6f93d build: Don't include config.h in native programs when cross-compiling. apparently broke cross-compiling. Madsy on #guile, who successfully cross-compiled e1bb79f for mingw, ran into this problem with

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-13 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: Commit 8cb0d6d7fa9aaac316c29a64c541336b51b6f93d build: Don't include config.h in native programs when cross-compiling. apparently broke cross-compiling. Madsy on #guile, who successfully cross-compiled e1bb79f

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-13 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: Commit 8cb0d6d7fa9aaac316c29a64c541336b51b6f93d build: Don't include config.h in native programs when cross-compiling. apparently broke cross-compiling. Madsy on #guile,

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-13 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: I agree that this is fragile and should be reworked somehow, but for 2.0.10, I wonder if we could just revert the part of 8cb0d6d having to do with gen-scmconfig.c. What do you think? You’re right. So for

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-13 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: (BTW, we can test cross-compilation to GNU/Linux with guix build guile --with-source=guile-2.0.9.xyz.tar.xz --target=mips64el-linux-gnu.) I tried this on my x86_64 box with guix master (v0.5-355-g9037ea2), freshly built (autoreconf -vfi, configure, make

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-13 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: I agree that this is fragile and should be reworked somehow, but for 2.0.10, I wonder if we could just revert the part of 8cb0d6d having to do with gen-scmconfig.c. What

Re: Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-13 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: (BTW, we can test cross-compilation to GNU/Linux with guix build guile --with-source=guile-2.0.9.xyz.tar.xz --target=mips64el-linux-gnu.) I tried this on my x86_64 box with guix master (v0.5-355-g9037ea2),

Problem with removing config.h from gen-scmconfig when cross-compiling

2014-03-12 Thread Mark H Weaver
Hi Ludovic, Commit 8cb0d6d7fa9aaac316c29a64c541336b51b6f93d build: Don't include config.h in native programs when cross-compiling. apparently broke cross-compiling. Madsy on #guile, who successfully cross-compiled e1bb79f for mingw, ran into this problem with 21a7ba9: --8---cut