Build of Sagemath on Linux Mint 22(Wilma) fails

108 views
Skip to first unread message

David Cousens

unread,
Oct 24, 2024, 7:16:08 PM10/24/24
to sage-...@googlegroups.com
I recently installed Linux Mint 22 (Wilma) on my desktop (Dell Optiplex
7050 16GB RAM) and have attempted to build and install Sagemath 10.4. I
hd previoulsy successfullybuilt Sagmath 10.4 on Linux Mint 21.3
(Virginia) on the same computer. The package giac-1.9.0.15p0 is not
building. gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU Make 4.3.
David Cousens
giac-1.9.0.15p0.log
config.log
Computer.txt

davidco...@gmail.com

unread,
Oct 31, 2024, 9:58:19 PM10/31/24
to sage-devel
Examining the giac-1.9.0.15po log file, the only error report  occur when there is a attempt to load icas.o in line 4735. 

There are a large number of warnings (~528 of 546 warnings) about deprecated pointer to a binary functions, typically

monomial.h:680:25: warning: 'template<class _Arg1, class _Arg2, class _Result> class std::pointer_to_binary_function' is deprecated [-Wdeprecated-declarations]
[spkg-install]   680 |              const std::pointer_to_binary_function < const monomial<T> &, const monomial<T> &, bool> m_is_strictly_greater
[spkg-install]       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~

There are configure warnings line 37 and 38 suggest use of --build, --host and --target switches and the presence of an unrecognized switch ----disable-maintainer-mode.
At line 317  config.status: WARNING:  'intl/Makefile.in' seems to ignore the --datarootdir setting
At line 319 config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting

aroundline 3246  and again line 3580  there are a number of warnings like

global.cc: In function 'char* numworks_gettar(size_t&)':
[spkg-install] global.cc:1411:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
[spkg-install]  1411 |   fread(buffer,numworks_maxtarsize,1,f);

line3828 a few like
pari.cc: In function 'giac::gen giac::in_pari(const gen&, const context*)':
[spkg-install] pari.cc:836:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
[spkg-install]   836 |               argvec[k]= (GEN) v[j].val;
[spkg-install]       |                          ^~~~~~~~~~~~~~

line 4736  
[spkg-install] /opt/sage/sage-10.4/var/tmp/sage/build/giac-1.9.0.15p0/src/src/icas.cc:500:(.text+0x3925): warning: the use of `tmpnam' is dangerous, better use `mkstemp'

I wouldn't have expected the deprecation warnings to hva produced the proble. Unfortunately I am totally unfamiliar with the Sagemath and giac code

the config.log files have some errors re gcc which may be pertinent or may simply be checks

Lines 96-129
gcc version 13.2.0 (Ubuntu 13.2.0-23ubuntu4)
... rest of stderr output deleted ...
configure:6858: $? = 0
configure:6847: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:6858: $? = 1
configure:6847: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:6858: $? = 1
configure:6847: gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:6858: $? = 1
configure:6878: checking whether the C compiler works
configure:6900: gcc    conftest.c  >&5
configure:6904: $? = 0
configure:6954: result: yes
configure:6957: checking for C compiler default output file name
configure:6959: result: a.out
configure:6965: checking for suffix of executables
configure:6972: gcc -o conftest    conftest.c  >&5
configure:6976: $? = 0
configure:6999: result:
configure:7021: checking whether we are cross compiling
configure:7029: gcc -o conftest    conftest.c  >&5
configure:7033: $? = 0
configure:7040: ./conftest
configure:7044: $? = 0
configure:7059: result: no

I don't see anything in the abovethat would have caused the load failure. ANy help appreciated.

davidco...@gmail.com

unread,
Nov 1, 2024, 3:05:44 AM11/1/24
to sage-devel
Finally fixed using instructions at https://sagemanifolds.obspm.fr/install_ubuntu.html after a complete uninstall no longer attempted to build giac but used a system copy.
Reply all
Reply to author
Forward
0 new messages