* [PATCH] Build C++ cross-compiler by default.
@ 2016-01-11 18:49 Ricardo Wurmus
2016-01-13 20:52 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2016-01-11 18:49 UTC (permalink / raw)
To: Guix-devel
[-- Attachment #1: Type: text/plain, Size: 499 bytes --]
Hi Guix,
the configure flags defined in “cross-gcc-arguments” disabled the C++
compiler to prevent an error that happens when building libstdc++-v3.
Since I needed a C++ cross-compiler for ARM I added “c++” to the list of
enabled languages and added the configure flag
“--disable-libstdc++-v3”. This is now the same as what is done in
“gcc-boot0” in “commencement.scm”.
Will this cause a rebuild of every package on ARM? Is it okay to push
this to core-updates?
~~ Ricardo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-cross-gcc-arguments-Enable-C-disable-building-of.patch --]
[-- Type: text/x-patch, Size: 1652 bytes --]
From 021febc7f7f35ccffe381af798e0b20d7687c94e Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Mon, 11 Jan 2016 19:43:25 +0100
Subject: [PATCH] gnu: cross-gcc-arguments: Enable C++, disable building of
libstdc++-v3.
* gnu/packages/cross-base.scm (cross-gcc-arguments)[arguments]: Disable
building libstdc++-v3 and enable building C++ compiler.
---
gnu/packages/cross-base.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index d64cdd1..f947e7a 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -105,11 +105,12 @@ may be either a libc package or #f.)"
"--disable-libcilkrts")
`( ;; Disable features not needed at this stage.
"--disable-shared" "--enable-static"
+ "--enable-languages=c,c++"
- ;; Disable C++ because libstdc++'s configure
- ;; script otherwise fails with "Link tests are not
- ;; allowed after GCC_NO_EXECUTABLES."
- "--enable-languages=c"
+ ;; libstdc++ cannot be built at this stage
+ ;; ("Link tests are not allowed after
+ ;; GCC_NO_EXECUTABLES.").
+ "--disable-libstdc++-v3"
"--disable-threads" ;libgcc, would need libc
"--disable-libatomic"
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Build C++ cross-compiler by default.
2016-01-11 18:49 [PATCH] Build C++ cross-compiler by default Ricardo Wurmus
@ 2016-01-13 20:52 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-01-13 20:52 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: Guix-devel
Ricardo Wurmus <rekado@elephly.net> skribis:
> the configure flags defined in “cross-gcc-arguments” disabled the C++
> compiler to prevent an error that happens when building libstdc++-v3.
> Since I needed a C++ cross-compiler for ARM I added “c++” to the list of
> enabled languages and added the configure flag
> “--disable-libstdc++-v3”. This is now the same as what is done in
> “gcc-boot0” in “commencement.scm”.
Cool.
> Will this cause a rebuild of every package on ARM? Is it okay to push
> this to core-updates?
AFAICS, this causes a rebuild of the cross-compilation infrastructure
only (for Hydra, that’s several times GCC plus a bunch of packages that
we cross-build to make sure the basic functionality is alright.)
So it could even go to ‘master’, but since Hydra is now building all of
‘core-updates’, it’s more energy-efficient to push it to ‘core-updates’
as well.
> From 021febc7f7f35ccffe381af798e0b20d7687c94e Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Mon, 11 Jan 2016 19:43:25 +0100
> Subject: [PATCH] gnu: cross-gcc-arguments: Enable C++, disable building of
> libstdc++-v3.
>
> * gnu/packages/cross-base.scm (cross-gcc-arguments)[arguments]: Disable
> building libstdc++-v3 and enable building C++ compiler.
LGTM!
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-13 20:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-11 18:49 [PATCH] Build C++ cross-compiler by default Ricardo Wurmus
2016-01-13 20:52 ` Ludovic Courtès
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.