Sage build form source giac giac-1.6.0.47p3 failed to build, help with external packages

103 views
Skip to first unread message

Maks Manko

unread,
Jul 7, 2022, 9:20:11 AM7/7/22
to sage-support
Hello,

I'm working on Ubuntu 22.04, dual booted to Windows 10 on separate partition. The linux build is currently entirely fresh, after reinstalling, there's only anaconda and sage deps installed.

I've succesfully installed sage from apt and conda (earlier also in WSL and Windows on the other partition), but I could not install topcom and latte_int external packages, either via sage -i (throws "no rule to make target all-toolchain. Stop.") or via source builds either.

Instead I've tried to build sage itself fully from source code and after 65m into "make" I got 

[giac-1.6.0.47p3] /usr/bin/ld: icas.o: in function `texmacs_graph_output(giac::gen const&, giac::gen&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int, giac::context const*)':
[giac-1.6.0.47p3] /home/maksm/sage-9.5/local/var/tmp/sage/build/giac-1.6.0.47p3/src/src/icas.cc:263: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
[giac-1.6.0.47p3] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libnauty.so: undefined reference to `clique_unweighted_find_single@CLIQUER_1'
[giac-1.6.0.47p3] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libnauty.so: undefined reference to `graph_free@CLIQUER_1'
[giac-1.6.0.47p3] /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libnauty.so: undefined reference to `graph_new@CLIQUER_1'
[giac-1.6.0.47p3] collect2: error: ld returned 1 exit status
[giac-1.6.0.47p3] make[7]: *** [Makefile:775: icas] Error 1
[giac-1.6.0.47p3] make[6]: *** [Makefile:505: all-recursive] Error 1
[giac-1.6.0.47p3] make[5]: *** [Makefile:435: all] Error 2
[giac-1.6.0.47p3] ********************************************************************************
[giac-1.6.0.47p3] Error building giac-1.6.0.47p3
[giac-1.6.0.47p3] ********************************************************************************
[giac-1.6.0.47p3]
[giac-1.6.0.47p3] real    7m44.336s
[giac-1.6.0.47p3] user    7m29.302s
[giac-1.6.0.47p3] sys    0m13.064s
[giac-1.6.0.47p3] ************************************************************************
[giac-1.6.0.47p3] Error installing package giac-1.6.0.47p3
[giac-1.6.0.47p3] **************************************************************

see attached the relevant logs. I left it as it was (I'm not very experienced with this kind of problems) and would really appreciate some hints on both this build and external packages.

Thank you in advance,
Maks


giac-1.6.0.47p3.log
config.log

Matthias Koeppe

unread,
Jul 7, 2022, 3:26:29 PM7/7/22
to sage-support

Maks Manko

unread,
Jul 7, 2022, 5:41:17 PM7/7/22
to sage-support
Thank you for your answer. I installed the missing dependencies, but the result is the same. I'll try fully cleaning the system before trying again, perhaps some misplaced files remained.

slelievre

unread,
Jul 8, 2022, 10:03:32 AM7/8/22
to sage-support
Try building the latest development release of Sage,
currently Sage 9.7.beta4, instead of Sage 9.5.

Reply all
Reply to author
Forward
0 new messages