From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH] Build C++ cross-compiler by default. Date: Mon, 11 Jan 2016 19:49:32 +0100 Message-ID: <8760z03q9v.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIhXA-0007sY-Vs for guix-devel@gnu.org; Mon, 11 Jan 2016 13:49:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIhX7-00014e-Nu for guix-devel@gnu.org; Mon, 11 Jan 2016 13:49:40 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:25303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIhX7-00014Y-Eo for guix-devel@gnu.org; Mon, 11 Jan 2016 13:49:37 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-cross-gcc-arguments-Enable-C-disable-building-of.patch >From 021febc7f7f35ccffe381af798e0b20d7687c94e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus 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 --=-=-=--