From: Manolis Ragkousis <manolis837@gmail.com>
To: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and, libsanitizer.
Date: Tue, 23 Feb 2016 14:20:09 +0200 [thread overview]
Message-ID: <56CC4E79.7030706@gmail.com> (raw)
In-Reply-To: <56C322C4.3040706@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 816 bytes --]
Hello everyone
This is a follow up to better explain what the problem is with the
sans-libc cross gcc in the (gnu packages cross-base) module.
In the latest master if you try to build gcc-cross-sans-libc with:
./pre-inst-env guix build -e '((@@(gnu packages cross-base) cross-gcc)
"i686-linux-gnu")' -c8
gcc modules libitm, libvtv and libsanitizer fail to build with
"configure: error: C compiler cannot create executables".
This happens because there is no libc present at that point and the
problem was introduced with commit ca7ef4d41854218c which enabled c++.
At that stage no linking can happen so the best solution is to just
disable the modules. It does not affect anything after that.
I am attaching the build.log so anybody can see for himself. :-)
If okay I will push the patch to master.
Manolis
[-- Attachment #2: vgwilvn1nmafdfhd1nlka2qkz0pkx5-gcc-cross-sans-libc-i686-linux-gnu-4.9.3.drv.bz2 --]
[-- Type: application/x-bzip, Size: 390239 bytes --]
[-- Attachment #3: 0001-gnu-cross-gcc-arguments-Disable-libitm-libvtv-and-li.patch --]
[-- Type: text/x-patch, Size: 1132 bytes --]
From be59086da781969e82d0bb9fb9fff851d51faa65 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Tue, 16 Feb 2016 15:06:33 +0200
Subject: [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and
libsanitizer.
* gnu/packages/cross-base.scm (cross-gcc-arguments)[arguments]: Add
"--disable-libitm", "--disable-libvtv" and "--disable-libsanitizer"
when libc is not present.
---
gnu/packages/cross-base.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 8bd599c..bbc1c48 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -120,6 +120,9 @@ may be either a libc package or #f.)"
"--disable-libquadmath"
"--disable-decimal-float" ;would need libc
"--disable-libcilkrts"
+ "--disable-libitm"
+ "--disable-libvtv"
+ "--disable-libsanitizer"
)))
,(if libc
--
2.7.1
next prev parent reply other threads:[~2016-02-23 12:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 13:23 [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and, libsanitizer Manolis Ragkousis
2016-02-23 12:20 ` Manolis Ragkousis [this message]
2016-02-23 13:14 ` Ricardo Wurmus
2016-02-28 14:23 ` 宋文武
2016-02-28 14:43 ` Ricardo Wurmus
2016-03-04 14:09 ` Manolis Ragkousis
2016-03-13 22:23 ` Ludovic Courtès
2016-04-07 13:07 ` Manolis Ragkousis
2016-06-24 8:32 ` Efraim Flashner
2016-07-04 8:25 ` Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56CC4E79.7030706@gmail.com \
--to=manolis837@gmail.com \
--cc=guix-devel@gnu.org \
/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.
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.