Building SageMath 6.8: gf2x, ncurses error in ArchLinux

75 views
Skip to first unread message

fidelbc

unread,
Jul 27, 2015, 1:43:54 PM7/27/15
to sage-support
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?
gf2x-1.1.p1.log
ncurses-5.9.20131221.log

Volker Braun

unread,
Jul 27, 2015, 2:15:41 PM7/27/15
to sage-support, fidel....@gmail.com
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

fidelbc

unread,
Jul 27, 2015, 2:48:16 PM7/27/15
to sage-support, vbrau...@gmail.com
Thanks for the advice Volker!

Unfortunately now gcc is failing to build.
gcc-4.9.2.p1.log

William Stein

unread,
Jul 29, 2015, 12:41:42 PM7/29/15
to sage-support, Zimmermann Paul
(corrected subject)


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




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


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>
> Date: Wed, 29 Jul 2015 06:49:47 +0000
>
> Hello paul.zi...@inria.fr,
>
> 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>
> 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>
> (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 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 designates 192.134.164.83 as permitted sender) smtp.mail=Paul.Zi...@inria.fr
> 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>
> From: paul zimmermann <Paul.Zi...@inria.fr>
> To: sage-s...@googlegroups.com
> 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)

fidelbc

unread,
Jul 29, 2015, 2:49:54 PM7/29/15
to sage-support, Paul.Zi...@inria.fr, wst...@gmail.com
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
gf2x-1.1.log

fidelbc

unread,
Jul 30, 2015, 12:53:38 AM7/30/15
to sage-support, fidel....@gmail.com
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

gcc-5.2.0-fix.patch

fidelbc

unread,
Jul 30, 2015, 2:49:36 PM7/30/15
to sage-support, fidel....@gmail.com
I have compiled the sage 6.8 source code twice. Just wanted to add that the two proposed solutions from above work.
Reply all
Reply to author
Forward
0 new messages