Benjamin Hackl wrote:
> Hi,
> 
> I have a very similar setup (gcc 6.1.1 20160602 on Arch Linux), and I'm
> struggling quite hard to build 7.2:
> 
> - I'm using the patch from https://trac.sagemath.org/ticket/20738 in
> order to get singular to build. (Which works, as far as I can tell.)
> - I could build (the originally failing) packages gfan, ppl, eclib, and
> linbox by adding the snippet above before the "./configure" in the
> respective spkg-install, however
> - brial still failed, which I could resolve by setting CXXFLAGS
> globally, i.e. by calling  CXXFLAGS="$CXXFLAGS -std=gnu++98" make  
> (this actually puzzles me, because the CXXFLAGS set in the spkg-install
> file were picked up; I was quite sure to see that in the logfile...)

This is because '-std=c++98' is added in the Makefiles, but not used
during 'configure'.

See earlier in this thread or (the link referenced from)
https://trac.sagemath.org/ticket/20741 .


> The next failure then occurs when the Sage library modules are compiled:
> as I couldn't find out how to add '-std=gnu++98' for a single module,

The "clean" way is to add

    # distutils: extra_compile_args = -std=c++98

(usually to included pxd files, e.g. src/sage/libs/linbox/linbox.pxd)
but this apparently doesn't work for modules with additional
extra_compile_args in src/module_list.py, so you can (or have to) add it
there.


> I called  CFLAGS="$CFLAGS -std=gnu++98" make  (which might be the culprit;
> I know too little about how the building process works ...), let it
> compile for a while and switched back to just "make -j4" by interrupting
> and restarting. This lets the compilation of the modules finish, but...

Doesn't work for me (yet) with vanilla FSF GCC 6.1.0, I'm still getting
errors despite of passing '-std=c++98' (or '-std=gnu++98',
'-fpermissive'), e.g. in sage/matrix/matrix_modn_sparse, but not all
that use LinBox (some of them compile when '-std=c++98' gets added).

Perhaps something for a cythonist, or some GCC bug that got fixed in
Arch's version as the module did compile for you?


> ... then I get a segfault (last few lines are at
> http://pastebin.com/CBXhNN9P -- and I uploaded my full install.log to
> http://benjamin-hackl.at/downloads/behackl-20160629.install.log).
> 
> Unfortunately, the reason for this is not that obvious to me---does
> anyone have an idea or suggestions (besides downgrading my gcc...)? :-|

No idea.  (All I can see is that it happens early when trying to
initialize libsingular.)


-leif

> 
> Benjamin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.

Reply via email to