-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LinBox (1.1.6) fails to build with GCC 4.7.0, and lacks an spkg-check
#12762
Comments
This comment has been minimized.
This comment has been minimized.
Author: Leif Leonhardy |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:4
P.S.: Probably upstream has already fixed this; haven't checked. Also this package has last been upgraded in June 2008; Clément Pernet is listed as an spkg maintainer as well as the upstream contact. |
This comment has been minimized.
This comment has been minimized.
Diff between the previous spkg in Sage and my new p8 spkg. For reference / review only. |
Changed keywords from C++11 GCC 4.7.0 CXXFLAGS -fpermissive spkg to C++11 GCC 4.7.0 CXXFLAGS -fpermissive spkg spkg-check |
This comment has been minimized.
This comment has been minimized.
comment:6
Attachment: linbox-1.1.6.p7-p8.diff.gz Ok, changed and added a couple of things in addition, among these an New spkg, same place, changes now committed, ready to test & review... :P |
spkg-check
comment:7
P.S.: There's a not that recent "stable" LinBox version 1.1.7, as well as IIRC more recent "instable" 1.2.x development versions. (Unfortunately there's no changelog entry for the 1.1.7 version, at least not online.) Haven't yet tried any of these, but upgrading -- if worthwhile -- should IMHO be done on another ticket; making the spkg build with GCC 4.7.x, adding an |
comment:8
Fedora has this patch for linbox 1.2.2 http://pkgs.fedoraproject.org/gitweb/?p=linbox.git;a=blob;f=linbox-gcc47.patch |
comment:9
I tried this spkg this morning and it failed ; the compile lines lack the -fpermissive, even though I see the code in spkg-install which is supposed to add it... Notice that it was with a fairly extensively modified sage-5.0.rc1, so maybe the failure isn't that conclusive, but I still thought it was worth reporting. |
comment:10
I retried with a bare sage-5.0.rc1, and linbox failed. I retried with the spkg with md5sum b7a35a9927d5fc5c51f88ad3ada3df6c, and it failed. |
comment:11
I noticed two things :
I settled to fix the matter, but must admit my failure : even if I manage to get the -fpermissive through (adding directly to interfaces/sage/Makefile.am... not clean at all), the build still fails with this error : |
comment:13
In
You should check for GCC first. |
comment:14
I have another idea : get in touch with upstream so the code is fixed, and update the version in sage... no more ugly workaround! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Reviewer: Jeroen Demeyer |
Diff between leif's p9 (a rebased p8) and my p10 spkgs. For reference / review only. |
comment:17
Attachment: linbox-1.1.6.p10.diff.gz Rebased leif's patch to #10281, then made some further changes. New spkg needs review. |
Changed keywords from C++11 GCC 4.7.0 CXXFLAGS -fpermissive spkg spkg-check to C++11 GCC 4.7.0 CXXFLAGS -fpermissive spkg spkg-check sd40.5 |
Changed reviewer from Jeroen Demeyer to Jeroen Demeyer, Karl-Dieter Crisman |
comment:19
This installs correctly with 4.7.0 on sage.math, and then after using |
comment:20
Good to go. Also passes tests on Mac OS X built with GCC 4.6.3, so should be ok. |
Merged: sage-5.0.1.rc1 |
This is due to stricter (C++11) name look-up rules in GCC 4.7.x.
I've created an spkg with a trivial fix, just adding
-fpermissive
toCXXFLAGS
if we're usingg++
4.7.x:New spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/linbox-1.1.6.p10.spkg
linbox-1.1.6.p10 (Jeroen Demeyer, 25 May 2012)
spkg-check
#12762 review: Remove the touching of linbox.pyx, sinceCython knows the dependency of linbox.pyx on linbox-sage.h
compilers.
linbox-1.1.6.p9 (Leif Leonhardy, April 7th 2012)
spkg-check
#12762: Temporarily add-fpermissive
toCXXFLAGS
if we're compilingwith
g++
4.7.x, since the LinBox sources currently don't conform toC++11, so GCC 4.7.x would otherwise reject them.
CFLAG64
if it is set (andSAGE64=yes
).spkg-install
, add some messages.spkg-check
file, which currently runsmake check
. (There's alsoa
fullcheck
target.)with
-DDISABLE_COMMENTATOR
, such that the test suite wouldn't build.Also, one must not unconditionally use
extern
for the global (dummy)commentator since this is C++, and doing so also breaks the test suite.
make check
) builds,also with GCC 4.7.0.
See #12751 for the GCC-4.7.0 metaticket.
CC: @ClementPernet @williamstein @sagetrac-mariah
Component: packages: standard
Keywords: C++11 GCC 4.7.0 CXXFLAGS -fpermissive spkg spkg-check sd40.5
Author: Leif Leonhardy
Reviewer: Jeroen Demeyer, Karl-Dieter Crisman
Merged: sage-5.0.1.rc1
Issue created by migration from https://trac.sagemath.org/ticket/12762
The text was updated successfully, but these errors were encountered: