Volker Braun wrote:
> On Friday, July 1, 2016 at 6:36:49 PM UTC+2, William Stein wrote:
> 
>     The build still failed due to libpynac issues
>     "/projects/sage/dev/sage-7.3.beta6/local/lib/libpynac.so.2: undefined
>     symbol: _ZN4giac3genC1ERKNSt7__cxx1112basic_stringIcSt11char_t
>     "raitsIcESaIcEEEPKNS_7contextE; 'sage_setup.docbuild' is a package and
>     cannot be directly executed.
> 
> 
> Thats the C++11 ABI change: https://trac.sagemath.org/ticket/20350

Not exactly.  The missing function is

$ c++filt
_ZN4giac3genC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS_7contextE
giac::gen::gen(std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, giac::context const*)

so presumably contained in libgiac.so...


> The easiest workaround is to just not build Sage's own gcc but rely on
> the system one.

At least the original reporter did use the system's GCC (5.2.1 from
Ubuntu), don't know what William afterwards used.


I would have checked the offending pynac library with

$ readelf -d local/lib/libpynac.so.2

to see if it is underlinked and

$ ./sage --sh -c 'ldd local/lib/libpynac.so.2'

to see how the needed libraries are resolved in the Sage environment.


But now it's too late, unless someone wants to retry (without having
Sage's giac already installed)...

(The current solution on #20916 is a temporary work-around, namely to
simply disable the use of giac in Sage's pynac.)


-leif


>     I said:
>     > For me, I'm fine: I just now consider libao-dev something I have to
>     install before Sage, given that I have also installed giac.
> 
>     Which I now retract... and Ralf+Volker, many thanks for (presumably)
>     fixing this in https://trac.sagemath.org/ticket/20916
>     <https://trac.sagemath.org/ticket/20916>.    I'm testing
>     installing giac into Sage in order to finish my build, as Lief
>     suggested.      And, as an aside, I'm really happy to see people
>     working on better Sage/giac integration!  I tried looking at source
>     code and google searching "giac ginac" and all results are from 2008,
>     so I don't really know what's going on yet.  But clearly a lot of
>     great work has gone into giac during the last few years.   I found in
>     the sources for pynac "use giac for polynomial manipulations", so
>     there is that, which sounds exciting.
> 
> 
>     Build log:
>     ....
>     [tachyon-0.98.9.p5] real        0m6.015s
>     [tachyon-0.98.9.p5] user        0m5.204s
>     [tachyon-0.98.9.p5] sys 0m0.508s
>     [tachyon-0.98.9.p5] Successfully installed tachyon-0.98.9.p5
>     [tachyon-0.98.9.p5] Deleting temporary build directory
>     [tachyon-0.98.9.p5]
>     
> /projects/sage/dev/sage-7.3.beta6/local/var/tmp/sage/build/tachyon-0.98.9.p5
> 
>     [tachyon-0.98.9.p5] Finished installing tachyon-0.98.9.p5.spkg
>     cd ../.. && sage-logger -p './sage --docbuild --no-pdf-links all html
>     ' logs/dochtml.log
>     [dochtml] /projects/sage/dev/sage-7.3.beta6/local/bin/python:
>     /projects/sage/dev/sage-7.3.beta6/local/lib/libpynac.so.2: undefined
>     symbol: _ZN4giac3genC1ERKNSt7__cxx1112basic_stringIcSt11char_t
>     raitsIcESaIcEEEPKNS_7contextE; 'sage_setup.docbuild' is a package and
>     cannot be directly executed
>     Makefile:1012: recipe for target 'doc-html' failed
>     make[2]: *** [doc-html] Error 1
>     make[2]: Leaving directory
>     '/projects/sage/dev/sage-7.3.beta6/build/make'
>     Makefile:835: recipe for target 'all' failed
>     make[1]: *** [all] Error 2
>     make[1]: Leaving directory
>     '/projects/sage/dev/sage-7.3.beta6/build/make'
> 
>     real    91m26.763s
>     user    87m28.916s
>     sys     3m28.656s
>     ***************************************************************
>     Error building Sage.
> 
>     The following package(s) may have failed to build (not necessarily
>     during this run of 'make all'):
> 
>     The build directory may contain configuration files and other
>     potentially
>     helpful information. WARNING: if you now run 'make' again, the build
>     directory will, by default, be deleted. Set the environment variable
>     SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
> 
>     Makefile:16: recipe for target 'all' failed
>     make: *** [all] Error 1
>     You have new mail in /var/mail/salvus
>     salvus@compute7-us:/projects/sage/dev/sage-7.3.beta6$

-- 
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