[sage-support] Re: Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-30 Thread fidelbc
I have compiled the sage 6.8 source code twice. Just wanted to add that the 
two proposed solutions from above work.

On Thursday, July 30, 2015 at 12:53:38 AM UTC-4, fidelbc wrote:

 These seem to be known issues with gcc version = 5, see [1] and [2].

 A possible workaround is to use the attached patch (adapted to fix the 
 issue for gcc 5.2.0).

 For anyone using ArchLinux with llvm installed and trying to follow 
 Volker's suggestion, you may want to try using

 $ export LD_PRELOAD=/usr/lib/libstdc++.so.6

 before compiling (as suggested in [3]). This will allow you to compile gcc 
 4.9.2 without any issues.

 Fidel

 [1]: http://trac.sagemath.org/ticket/18580
 [2]: http://trac.sagemath.org/ticket/18301
 [3]: https://aur4.archlinux.org/packages/gcc48/

 On Monday, July 27, 2015 at 1:43:54 PM UTC-4, fidelbc wrote:

 Hello,

 I'm trying to build sage on arch linux:

 $ uname -a
 Linux 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 
 GNU/Linux

 The packages that seem to fail to build are gf2x and ncurses (please see 
 attached logs).

 I usually build sage using
 MAKE=make -j4

 Any help on trying to get the build to succeed are greatly appreciated!
 Fidel

 PS I used to be able to build sage without any issues, but after around 
 v6.6 this was no longer the case. Do you think these are OS specific issues?



-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-29 Thread fidelbc
Hello Paul,

Unfortunately I don't have access to GCC 4.9.x. I think after Volker's 
suggestion GCC 4.9.2 was supposed to be built, but it failed.

I did try to build the source you suggested using GCC 5.2.0 and it failed 
again. Please find attached the compilation log (the error seems to be the 
same). 

Best,
Fidel


On Wednesday, July 29, 2015 at 12:41:42 PM UTC-4, William wrote:

 (corrected subject) 


 -- Forwarded message -- 
 From: William Stein wst...@gmail.com javascript: 
 Date: Wed, Jul 29, 2015 at 12:08 AM 
 Subject: Fwd: message for sage-support 
 To: sage-support sage-s...@googlegroups.com javascript: 




 -- Forwarded message -- 
 From: paul zimmermann paul.zi...@inria.fr javascript: 
 Date: Tuesday, July 28, 2015 
 Subject: message for sage-support 
 To: wst...@gmail.com javascript: 


Hi William, 

 please could you post the message below for me, in case it does not reach 
 sage-support? 
 Thanks, 
 Paul 

  Authentication-Results: zfront2.inria.fr (amavisd-new); 
dkim=pass (2048-bit key) header.d=google.com 
  From: Mail Delivery Subsystem mailer...@google.com javascript: 
  Date: Wed, 29 Jul 2015 06:49:47 + 
  
  Hello paul.zi...@inria.fr javascript:, 
  
  We're writing to let you know that the group you tried to contact 
 (sage-support) may not exist, or you may not have permission to post 
 messages to the group. A few more details on why you weren't able to post: 
  
   * You might have spelled or formatted the group name incorrectly. 
   * The owner of the group may have removed this group. 
   * You may need to join the group before receiving permission to post. 
   * This group may not be open to posting. 
  
  If you have questions related to this or any other Google Group, visit 
 the Help Center at http://groups.google.com/support/. 
  
  Thanks, 
  
  Google Groups 
  
  
  
  - Original message - 
  
  X-Received: by 10.152.182.226 with SMTP id 
 eh2mr15365619lac.0.1438152587799; 
  Tue, 28 Jul 2015 23:49:47 -0700 (PDT) 
  Return-Path: paul.zi...@inria.fr javascript: 
  Received: from mail2-relais-roc.national.inria.fr (
 mail2-relais-roc.national.inria.fr. [192.134.164.83]) 
  by gmr-mx.google.com with ESMTPS id 
 v8si639004wiw.1.2015.07.28.23.49.47 
  for sage-s...@googlegroups.com javascript: 
  (version=TLS1 cipher=RC4-SHA bits=128/128); 
  Tue, 28 Jul 2015 23:49:47 -0700 (PDT) 
  Received-SPF: pass (google.com: best guess record for domain of 
 paul.zi...@inria.fr javascript: designates 192.134.164.83 as permitted 
 sender) client-ip=192.134.164.83; 
  Authentication-Results: gmr-mx.google.com; 
 spf=pass (google.com: best guess record for domain of 
 paul.zi...@inria.fr javascript: designates 192.134.164.83 as permitted 
 sender) smtp.mail=paul.zi...@inria.fr javascript: 
  X-IronPort-AV: E=Sophos;i=5.15,569,1432591200; 
 d=scan'208;a=171966863 
  Received: from tarte.loria.fr ([152.81.15.145]) 
by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 29 
 Jul 2015 08:49:47 +0200 
  Date: Wed, 29 Jul 2015 08:49:47 +0200 
  Message-Id: mwoaiva...@tarte.loria.fr javascript: 
  From: paul zimmermann paul.zi...@inria.fr javascript: 
  To: sage-s...@googlegroups.com javascript: 
  Subject: Building SageMath 6.8: gf2x, ncurses error in ArchLinux 
  
 Hi, 
  
  I am a developer of gf2x. I looked at the log file. It seems the TC3 
 result 
  is wrong up from degree 703. Please could you try to compile gf2x with a 
  previous version of gcc (say 4.9.x), by running the following, and send 
 us 
  the corresponding log? You might also want to try again with GCC 5.2.0 
 to 
  check the error is deterministic, and is independent from the Sage 
 patches. 
  
  $ wget 
 https://gforge.inria.fr/frs/download.php/file/30873/gf2x-1.1.tar.gz 

  $ tar xf gf2x-1.1.tar.gz 
  $ cd gf2x-1.1 
  $ ./configure 
  $ make 
  $ make tune-lowlevel 
  $ make tune-toom TOOM_TUNING_LIMIT=100 
  
  Best regards, 
  Paul Zimmermann 
  



 -- 
 Sent from my massive iPhone 6 plus. 


 -- 
 William (http://wstein.org) 


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


gf2x-1.1.log
Description: Binary data


[sage-support] Re: Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-29 Thread fidelbc
These seem to be known issues with gcc version = 5, see [1] and [2].

A possible workaround is to use the attached patch (adapted to fix the 
issue for gcc 5.2.0).

For anyone using ArchLinux with llvm installed and trying to follow 
Volker's suggestion, you may want to try using

$ export LD_PRELOAD=/usr/lib/libstdc++.so.6

before compiling (as suggested in [3]). This will allow you to compile gcc 
4.9.2 without any issues.

Fidel

[1]: http://trac.sagemath.org/ticket/18580
[2]: http://trac.sagemath.org/ticket/18301
[3]: https://aur4.archlinux.org/packages/gcc48/

On Monday, July 27, 2015 at 1:43:54 PM UTC-4, fidelbc wrote:

 Hello,

 I'm trying to build sage on arch linux:

 $ uname -a
 Linux 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 
 GNU/Linux

 The packages that seem to fail to build are gf2x and ncurses (please see 
 attached logs).

 I usually build sage using
 MAKE=make -j4

 Any help on trying to get the build to succeed are greatly appreciated!
 Fidel

 PS I used to be able to build sage without any issues, but after around 
 v6.6 this was no longer the case. Do you think these are OS specific issues?


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
From 67c76ca18bfba62610a9dc3dfe5215422d836a6c Mon Sep 17 00:00:00 2001
From: fidbc fidbc.c...@gmail.com
Date: Wed, 29 Jul 2015 23:56:43 -0400
Subject: [PATCH] Added fix for gcc 5.2.0

---
 build/pkgs/gf2x/spkg-install| 2 +-
 .../ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/pkgs/gf2x/spkg-install b/build/pkgs/gf2x/spkg-install
index ee7e6a0..bf9d2e7 100755
--- a/build/pkgs/gf2x/spkg-install
+++ b/build/pkgs/gf2x/spkg-install
@@ -26,7 +26,7 @@ touch aclocal.m4 configure Makefile.in gf2x/gf2x-config.h.in
 if [ $SAGE_DEBUG = yes ]; then
 echo Building a debug version of gf2x.
 export CFLAGS=-O0 -g $CFLAGS
-elif $CC --version 2/dev/null |grep 'gcc.* 5[.]1' /dev/null; then
+elif $CC --version 2/dev/null |grep 'gcc.* 5[.][12]' /dev/null; then
 echo Using compiler flags to work around problems with GCC 5.1 (Trac #18580)
 export CFLAGS=-O2 -fno-forward-propagate -g $CFLAGS
 else
diff --git a/build/pkgs/ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch b/build/pkgs/ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch
index af82739..df8cb8a 100644
--- a/build/pkgs/ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch
+++ b/build/pkgs/ncurses/patches/work_around_changed_output_of_GNU_cpp_5.x.patch
@@ -19,7 +19,7 @@ output of 'cpp' w.r.t. line directives [1].  Anyway, the patch fixes the issue.)
 +# Work around unexpected output of GCC 5.1.0's cpp w.r.t. #line directives
 +# by simply suppressing them:
 +case `$1 -dumpversion 2/dev/null` in
-+5.[01].*)  # assume a broken one
++5.[012].*)  # assume a broken one
 +preprocessor=$1 -P -DNCURSES_INTERNALS -I../include
 +;;
 +*)
-- 
2.5.0



[sage-support] Re: Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-27 Thread Volker Braun
Shipping with GCC 5.2.0 is probably a bit too risky on the Arch side... Can 
you try

make distclean  SAGE_INSTALL_GCC=yes make



On Monday, July 27, 2015 at 7:43:54 PM UTC+2, fidelbc wrote:

 Hello,

 I'm trying to build sage on arch linux:

 $ uname -a
 Linux 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 
 GNU/Linux

 The packages that seem to fail to build are gf2x and ncurses (please see 
 attached logs).

 I usually build sage using
 MAKE=make -j4

 Any help on trying to get the build to succeed are greatly appreciated!
 Fidel

 PS I used to be able to build sage without any issues, but after around 
 v6.6 this was no longer the case. Do you think these are OS specific issues?


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.