Re: FIXUP: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-16 Thread Ludovic Courtès
Jan Nieuwenhuizen skribis: > I would still like to explore getting rid of the patched gcc and all > the environment variables and use a --sysroot instead; but I would > need some help/inspiration to get that experiment going. I’m not sure this is doable or desirable. AIUI --sysroot is pretty mu

Re: FIXUP: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-14 Thread Jan Nieuwenhuizen
Ludovic Courtès writes: > Thanks for your quick response, applied with an adjusted commit log. Thanks. > I concur with Mark: this is a very sensitive area that takes time to > test and adjust, which is the main reason why it takes me so much time > to review and such ;-), so we want to make sure

Re: FIXUP: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-14 Thread Ludovic Courtès
Jan Nieuwenhuizen skribis: > From 0361374c4469b1e9b573668a6020b19e7abfbfe2 Mon Sep 17 00:00:00 2001 > From: Jan Nieuwenhuizen > Date: Sat, 14 May 2016 10:13:21 +0200 > Subject: [PATCH] gnu: cross-base: Add srfi-26 for glibc. Fixes glibc-based > cross builds. > > * gnu/packages/cross-base.scm (

FIXUP: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-14 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: Fix for ./pre-inst-env guix build --target=mips64el-linux-gnuabi64 hello attached. Adds srfi-26 to glibc for cut. As Andy suggested I will be factoring-out the for-each (setenv) CROSS_* stanzas but I'm still experimenting with that, with cross-libtool and the whol

Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-13 Thread Jan Nieuwenhuizen
Mark H Weaver writes: Hi Mark, TL;DR: Apparently I tested only the full mingw stack. I'm working on a fix for cut now and will extend my test set. Sorry. > This patch, pushed to master about two weeks ago as commit > efc4eb147512fa7a2c6d74d9b296cfc22b1ef198, broke 79 cross-compiled buil

Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-13 Thread Mark H Weaver
Hi Jan, Jan Nieuwenhuizen writes: > * gnu/packages/patches/gcc-cross-environment-variables.patch: Also use CROSS_ > variants: CROSS_C_INCLUDE_PATH, CROSS_CPLUS_INCLUDE_PATH, > CROSS_OBJC_INCLUDE_PATH, CROSS_OBJCPLUS_INCLUDE_PATH to be used for system > libraries, see > https://lists.gnu.org/arch

Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-03 Thread Andy Wingo
On Tue 03 May 2016 14:06, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> And why just one CROSS_C_INCLUDE_PATH -- would it not be necessary in >> theory to have such a CROSS_ARCH_... for each ARCH that we might be >> interested in? I am not suggesting that you make the change

Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-03 Thread Ludovic Courtès
Jan Nieuwenhuizen skribis: > * gnu/packages/patches/gcc-cross-environment-variables.patch: Also use CROSS_ > variants: CROSS_C_INCLUDE_PATH, CROSS_CPLUS_INCLUDE_PATH, > CROSS_OBJC_INCLUDE_PATH, CROSS_OBJCPLUS_INCLUDE_PATH to be used for system > libraries, see > https://lists.gnu.org/archive/html

Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-03 Thread Ludovic Courtès
Andy Wingo skribis: > One final ignorant question: there really is no way to do this without > patching GCC? Unfortunately no. Currently, both a native compiler and a cross compiler honor CPATH, LIBRARY_PATH, etc., meaning that they cannot be used at all in a cross-compilation environment. I t

Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-02 Thread Jan Nieuwenhuizen
Andy Wingo writes: [cc: Ludovic] > On Fri 29 Apr 2016 17:12, Jan Nieuwenhuizen writes: > >> * gnu/packages/patches/gcc-cross-environment-variables.patch: Also use CROSS_ >> variants: CROSS_C_INCLUDE_PATH, CROSS_CPLUS_INCLUDE_PATH, >> CROSS_OBJC_INCLUDE_PATH, CROSS_OBJCPLUS_INCLUDE_PATH to be use

Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-05-02 Thread Andy Wingo
On Fri 29 Apr 2016 17:12, Jan Nieuwenhuizen writes: > * gnu/packages/patches/gcc-cross-environment-variables.patch: Also use CROSS_ > variants: CROSS_C_INCLUDE_PATH, CROSS_CPLUS_INCLUDE_PATH, > CROSS_OBJC_INCLUDE_PATH, CROSS_OBJCPLUS_INCLUDE_PATH to be used for system > libraries, see > https://l

[PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers.

2016-04-29 Thread Jan Nieuwenhuizen
* gnu/packages/patches/gcc-cross-environment-variables.patch: Also use CROSS_ variants: CROSS_C_INCLUDE_PATH, CROSS_CPLUS_INCLUDE_PATH, CROSS_OBJC_INCLUDE_PATH, CROSS_OBJCPLUS_INCLUDE_PATH to be used for system libraries, see https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00620.html. * gn