all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Manolis Ragkousis <manolis837@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and, libsanitizer.
Date: Thu, 7 Apr 2016 16:07:25 +0300	[thread overview]
Message-ID: <57065B8D.5060009@gmail.com> (raw)
In-Reply-To: <87pouyt3sz.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

Hey Ludo,

I have reproduced the problem on the latest master targeting i686-linux
and arm-linux-gnueabihf.

The problem is that those libraries will fail to build when glibc is not
present. Also if target os is none, this problem will not appear because
the libs will not get built at all.

You can reproduce it with ./pre-inst-env guix build -e '((@@(gnu
packages cross-base) cross-gcc) "arm-linux-gnueabihf")'

This does not happen when targeting mips.

I have added an explanation to the patch and a link to this thread.

Manolis

[-- Attachment #2: 0001-gnu-cross-gcc-arguments-Disable-libitm-libvtv-and-li.patch --]
[-- Type: text/x-patch, Size: 1449 bytes --]

From dc8154ef19bc28886f350f42c49fb7995eefcec8 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 | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 8bd599c..bd7a1e7 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -120,6 +120,14 @@ may be either a libc package or #f.)"
                                "--disable-libquadmath"
                                "--disable-decimal-float" ;would need libc
                                "--disable-libcilkrts"
+
+                               ;; When target is any OS other than 'none' these
+                               ;; libraries will fail if there is no libc
+                               ;; present. See
+                               ;; <https://lists.gnu.org/archive/html/guix-devel/2016-02/msg01311.html>
+                               "--disable-libitm"
+                               "--disable-libvtv"
+                               "--disable-libsanitizer"
                                )))
 
                  ,(if libc
-- 
2.7.2


  reply	other threads:[~2016-04-07 13:07 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
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 [this message]
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=57065B8D.5060009@gmail.com \
    --to=manolis837@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@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.