Trouble with gfan

94 views
Skip to first unread message

Simon King

unread,
Aug 28, 2021, 2:46:14 PM8/28/21
to sage-r...@googlegroups.com
Hi!

I'm afraid it's a long time since I last tried to build SageMath. When I
now checked out the latest develop branch, gfran failed to build.

From the log:
[gfan-0.6.2.p1] IntegerVectorList setTemp;for(auto c=observedExponents.begin();c!=observedExponents.end();c++)setTemp.push_back(*c);
[gfan-0.6.2.p1] ^
[gfan-0.6.2.p1] In file included from src/field_rationals.h:8:0,
[gfan-0.6.2.p1] from src/polynomialgcd.cpp:14:
[gfan-0.6.2.p1] src/field.h:81:23: note: candidate: FieldElement operator*(const FieldElement&, const FieldElement&)
[gfan-0.6.2.p1] friend FieldElement operator*(const FieldElement &a,const FieldElement &b);
[gfan-0.6.2.p1] ^
[gfan-0.6.2.p1] src/field.h:81:23: note: candidate expects 2 arguments, 1 provided

This is on an older ubuntu (16.04.7), in case that matters.

Is that a known issue? How can I downgrade to a working version of gfan?

Best regards,
Simon

Matthias Köppe

unread,
Aug 28, 2021, 4:49:39 PM8/28/21
to sage-release
We actually test this platform (ubuntu xenial), and gfan builds correctly. See https://github.com/sagemath/sage/runs/3392764418?check_suite_focus=true

This failure must be caused by something specific to your system - such as some stuff installed into /usr/local or something like that.

Simon King

unread,
Aug 29, 2021, 8:32:39 AM8/29/21
to sage-r...@googlegroups.com
Hi Matthia,

On 2021-08-28, Matthias Köppe <matthia...@gmail.com> wrote:
> We actually test this platform (ubuntu xenial), and gfan builds correctly.
> See https://github.com/sagemath/sage/runs/3392764418?check_suite_focus=true
>
> This failure must be caused by something specific to your system - such as
> some stuff installed into /usr/local or something like that.

What could be the cause? I'm not sure whether I added any stuff since the
last successful build.

In particular, the error message I'm getting looks to me like there is something
wrong in the sources (namely: A different number of arguments in the header
and in the code) -- is gfan partially taken from the system?

Best regards,
Simon

Dima Pasechnik

unread,
Aug 29, 2021, 8:44:33 AM8/29/21
to sage-release
probably. Ubuntu 16.04 has gfan version 0.5, but Sage needs 0.6.2.
A system-wide install of old gfan might get in the way.

>
> Best regards,
> Simon
>
> --
> 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 sage-release...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/sgfuot%24159%241%40ciao.gmane.io.

Simon King

unread,
Aug 29, 2021, 9:21:20 AM8/29/21
to sage-r...@googlegroups.com
Hi Dima,

On 2021-08-29, Dima Pasechnik <dim...@gmail.com> wrote:
> On Sun, Aug 29, 2021 at 1:32 PM Simon King <simon...@uni-jena.de> wrote:
>> In particular, the error message I'm getting looks to me like there is something
>> wrong in the sources (namely: A different number of arguments in the header
>> and in the code) -- is gfan partially taken from the system?
>
> probably. Ubuntu 16.04 has gfan version 0.5, but Sage needs 0.6.2.
> A system-wide install of old gfan might get in the way.

I see. So, I should better focus on installing Sage on my new laptop,
that has a more recent ubuntu.

Thanks and best regards,
Simon

Matthias Köppe

unread,
Aug 29, 2021, 2:02:01 PM8/29/21
to sage-release
On Sunday, August 29, 2021 at 5:44:33 AM UTC-7 Dima Pasechnik wrote:
is gfan partially taken from the system?

probably. Ubuntu 16.04 has gfan version 0.5, but Sage needs 0.6.2.
A system-wide install of old gfan might get in the way.

No, that alone cannot explain it -- we test this configuration. 
ubuntu-xenial-standard installs the system gfan, then rejects it, then correctly builds gfan.
 

Simon King

unread,
Aug 29, 2021, 2:50:32 PM8/29/21
to sage-r...@googlegroups.com
Hi Matthias,
What could explain it? Is there a typical application that I might have
installed and depends on gfan? I mean, it is for Groebner fans. So, what
*non-mathematical* software would use it? I don't think that I installed
a mathematical software after the last successful build of Sage.

Should I try to uninstall gfan, re-install it, and try again? And,
if that fails, uninstall and NOT re-install, but build Sage and hope
that it provides a working gfan?

Best regards,
Simon

Dima Pasechnik

unread,
Aug 29, 2021, 2:58:07 PM8/29/21
to sage-release
I'd start by un-installing system-wide gfan (could it be that you have more system-wide copies of it, e.g. in /usr/local/ ?)
and try  building then.

Simon King

unread,
Aug 29, 2021, 3:21:36 PM8/29/21
to sage-r...@googlegroups.com
Hi Dima

On 2021-08-29, Dima Pasechnik <dim...@gmail.com> wrote:
> I'd start by un-installing system-wide gfan (could it be that you have more
> system-wide copies of it, e.g. in /usr/local/ ?)
> and try building then.

I tried to "find /usr/local/ -name *gfan*", which resulted in nothing.

Then I tried "sudo apt remove gfan", which told me that gfan is not
installed! So, I misinterpreted "apt show gfan" (it gave me the
apparently wrong impression that I had it installed.

So, what next? How can I find out whether (and where) gfan is installed
system-wide? And if it is not installed: Shall I try to install gfan system-wide,
and try building Sage again?

Best regards,
Simon

Dima Pasechnik

unread,
Aug 29, 2021, 3:36:58 PM8/29/21
to sage-release
oops, sorry - gfan does not have any system-wide headers installed, never had.
It only builds binaries.

The error you get is most likely due to an old g++, which chokes on a
newer C++ construction,
not due to a version mixup.

What is the g++ version you are using?
(or perhaps you use clang?)


>
> Best regards,
> Simon
>
> --
> 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 sage-release...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/sggmnp%24kfl%241%40ciao.gmane.io.

Matthias Köppe

unread,
Aug 29, 2021, 5:02:11 PM8/29/21
to sage-release
Singular vendors a part of gfan called gfanlib. Perhaps an installation of that is leaking into your build.

If you can share your top-level config.log and the full gfan build log, we can take a closer look.

Simon King

unread,
Aug 29, 2021, 5:51:07 PM8/29/21
to sage-r...@googlegroups.com
Hi Dima,

On 2021-08-29, Dima Pasechnik <dim...@gmail.com> wrote:
> The error you get is most likely due to an old g++, which chokes on a
> newer C++ construction,
> not due to a version mixup.
>
> What is the g++ version you are using?
> (or perhaps you use clang?)
>

$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Is that new enough?

Best regards,
Simon

Simon King

unread,
Aug 29, 2021, 6:04:34 PM8/29/21
to sage-r...@googlegroups.com
Hi Matthias,

the two logs are at https://users.fmi.uni-jena.de/~king/logs/

Best regards,
Simon

Matthias Köppe

unread,
Aug 29, 2021, 8:01:58 PM8/29/21
to sage-release
./configure correctly determines that it needs to use CXX='g++ -std=gnu++11' to work with this old compiler.
Check if you have environment variables CC or CXX set in your global environment -- they should be unset; otherwise, they will override the values determined by ./configure. (This is nonstandard behavior of our build system.)

Simon King

unread,
Aug 30, 2021, 2:21:58 PM8/30/21
to sage-r...@googlegroups.com
Hi Matthias,

On 2021-08-30, Matthias Köppe <matthia...@gmail.com> wrote:
> ./configure correctly determines that it needs to use CXX='g++
> -std=gnu++11' to work with this old compiler.
> Check if you have environment variables CC or CXX set in your global
> environment -- they should be unset; otherwise, they will override the
> values determined by ./configure. (This is nonstandard behavior of our
> build system.)

In a shell:
king@klap:~/Sage/git/sage$ echo $CC

king@klap:~/Sage/git/sage$ echo $CXX

So, it is not set.
In a Sage shell:
(sage-sh) king@klap:sage$ echo $CC
gcc
(sage-sh) king@klap:sage$ echo $CXX
g++ -std=gnu++11

This is what it should be, right?

Best regards,
Simon

Dima Pasechnik

unread,
Aug 30, 2021, 3:26:21 PM8/30/21
to sage-release
As far as I am concerned, Ubuntu 16.04 is past its EOL. We should not
support it, and it will save us time messing around with obsolete
compilers too (the last release in gcc 5 branch was 4 years ago, and
gcc does not support anything older than gcc 9 now).
> --
> You received this message because you are subscribed to a topic in the Google Groups "sage-release" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-release/WX3m7T8-SeM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to sage-release...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/sgj7jp%247b6%241%40ciao.gmane.io.

Matthias Köppe

unread,
Aug 30, 2021, 4:17:49 PM8/30/21
to sage-release
Well, then the gfan.log that you shared cannot possibly come from the same install as the config.log that you shared. Can you run "./sage -f gfan" again?

From your log:
Building gfan-0.6.2.p1 
g++ -O2 -g -march=native -DNOCDDPREFIX -DGMPRATIONAL -Wuninitialized -fno-omit-frame-pointer -O2 -g -c src/polynomialgcd.cpp -o src/polynomialgcd.o

It should say:
Building gfan-0.6.2.p1
g++ -std=gnu++11 -O2 -g -march=native -DNOCDDPREFIX -DGMPRATIONAL -Wuninitialized -fno-omit-frame-pointer -O2   -g     -c src/polynomialgcd.cpp -o src/polynomialgcd.o

 

Simon King

unread,
Aug 30, 2021, 5:58:20 PM8/30/21
to sage-r...@googlegroups.com
Hi Matthias,

Right. Before, I erased the old log and did "sage -i gfan".

Now, I did "sage -f gfan", which failed again. I have posted the new log
under the old url.

Best regards,
Simon

Matthias Köppe

unread,
Aug 30, 2021, 6:32:47 PM8/30/21
to sage-release
Hi Simon,
This is very strange.
1) Could you check if you happen to have a g++ in /home/king/Sage/git/sage/local/bin?  (unlikely because you mentioned earlier that the environment is correct in "sage -sh")
2) If you do (cd '/home/king/Sage/git/sage/local/var/tmp/sage/build/gfan-0.6.2.p1' && '/home/king/Sage/git/sage/sage' --buildsh), what is CXX set to? (Just post the whole output from "env"?)

Simon King

unread,
Aug 31, 2021, 10:18:02 AM8/31/21
to sage-r...@googlegroups.com
Hi Matthias,

On 2021-08-30, Matthias Köppe <matthia...@gmail.com> wrote:
> 1) Could you check if you happen to have a g++ in
> /home/king/Sage/git/sage/local/bin? (unlikely because you mentioned
> earlier that the environment is correct in "sage -sh")

No, /home/king/Sage/git/sage/local/bin/g++ does not exist, and "which
g++" both in a shell and in a sage shell says "/usr/bin/g++".

> 2) If you do (cd
> '/home/king/Sage/git/sage/local/var/tmp/sage/build/gfan-0.6.2.p1' &&
> '/home/king/Sage/git/sage/sage' --buildsh), what is CXX set to? (Just post
> the whole output from "env"?)

That's lengthy, but you asked for it...

XDG_VTNR=7
LC_PAPER=en_US.UTF-8
AS=as
SAGE_FAT_BINARY=
SAGE_GMP_PREFIX=/home/king/Sage/git/sage/local
ORIGINAL_CFLAGS=
NNTPSERVER=news.gmane.io
LDFLAGS=-Wl,-rpath-link,/home/king/Sage/git/sage/local/lib -L/home/king/Sage/git/sage/local/lib -Wl,-rpath,/home/king/Sage/git/sage/local/lib
AR=ar
XDG_SESSION_ID=c2
LC_ADDRESS=en_US.UTF-8
SAGE_LOGS=/home/king/Sage/git/sage/logs/pkgs
SAGE_NTL_PREFIX=/home/king/Sage/git/sage/local
LC_MONETARY=en_US.UTF-8
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/king
CLUTTER_IM_MODULE=xim
SESSION=ubuntu
UNAME=Linux
SAGE_CONFIGURE_FFLAS_FFPACK=
GPG_AGENT_INFO=/home/king/.gnupg/S.gpg-agent:0:1
SAGE_ENV_CONFIG_SOURCED=1
R_MAKEVARS_SITE=/home/king/Sage/git/sage/local/lib/R/share/Makevars.site
TERM=xterm-256color
XDG_MENU_PREFIX=gnome-
SHELL=/bin/bash
VTE_VERSION=4205
CONFIGURED_CFLAGS=
CONFIGURED_CXXFLAGS=
SAGE_VENV=/home/king/Sage/git/sage/local
SAGE_ENV_SOURCED=4
SAGE_GMP_INCLUDE=/home/king/Sage/git/sage/local/include
SAGE_DEBUG=
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
LIBRARY_PATH=/home/king/Sage/git/sage/local/lib
PERL5LIB=/home/king/Sage/git/sage/local/lib/perl5:
MKDIR=mkdir
OPENBLAS_NUM_THREADS=1
SAGE_DOC_MATHJAX=True
F77FLAGS_NON_NATIVE=-O2 -g
SAGE_ORIG_PATH=/home/king/bin:/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SAGE_CONFIGURE_MPC=--with-mpc=/home/king/Sage/git/sage/local
SAGE_CONFIGURE_NTL=--with-ntl=/home/king/Sage/git/sage/local
WINDOWID=85986144
LC_NUMERIC=en_US.UTF-8
PYTHON_EGG_CACHE=/home/king/.sage//.python-eggs
CYSIGNALS_CRASH_LOGS=/home/king/.sage//crash_logs
CONFIGURED_FCFLAGS=
GNOME_KEYRING_CONTROL=
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/3031
F77FLAGS_O3_NON_NATIVE=-O3 -g
CXXFLAGS_O3_NON_NATIVE=-O3 -g
GTK_MODULES=gail:atk-bridge:unity-gtk-module
ORIGINAL_FCFLAGS=
LC_ALL=
SAGE_REPO_AUTHENTICATED=ssh://g...@trac.sagemath.org:2222/sage.git
SAGE_NUM_THREADS=1
SAGE_CONFIGURE_MPFR=--with-mpfr=/home/king/Sage/git/sage/local
DOT_SAGE=/home/king/.sage/
PYTHONUSERBASE=/home/king/.sage//local
SAGE_FREETYPE_PREFIX=/home/king/Sage/git/sage/local
USER=king
LC_TELEPHONE=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
QT_ACCESSIBILITY=1
SINGULAR_EXECUTABLE=/home/king/Sage/git/sage/local/bin/Singular
CONFIGURED_F77FLAGS=
UNITY_HAS_3D_SUPPORT=true
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
SAGE_CONFIGURE_GMP=--with-gmp=/home/king/Sage/git/sage/local
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
CPATH=/home/king/Sage/git/sage/local/include
SAGE_SHPROMPT_PREFIX=sage-buildsh
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
SESSION_MANAGER=local/klap:@/tmp/.ICE-unix/3565,unix/klap:/tmp/.ICE-unix/3565
SAGE_LOCAL=/home/king/Sage/git/sage/local
MPLCONFIGDIR=/home/king/.sage//matplotlib-1.5.1
MAXIMA_PREFIX=/home/king/Sage/git/sage/local
CXXFLAGS=-O2 -g -march=native
SAGE_REPO_ANONYMOUS=https://gitlab.com/sagemath/dev/tracmirror.git
MAXIMA_USERDIR=/home/king/.sage//maxima
CXXFLAGS_NON_NATIVE=-O2 -g
UNITY_DEFAULT_PROFILE=unity
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
SAGE_SPKG_INST=/home/king/Sage/git/sage/local/var/lib/sage/installed
SAGE_STARTUP_FILE=/home/king/.sage//init.sage
FCFLAGS_O3_NON_NATIVE=-O3 -g
SAGE_DOC_SRC=/home/king/Sage/git/sage/src/doc
SAGE_DISTFILES=/home/king/Sage/git/sage/upstream
DESKTOP_SESSION=ubuntu
PATH=/home/king/Sage/git/sage/build/bin:/home/king/Sage/git/sage/src/bin:/home/king/Sage/git/sage/local/bin:/home/king/Sage/git/sage/local/bin:/home/king/bin:/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
R_MAKEVARS_USER=/home/king/.sage//R/Makevars.user
SAGE_CONFIGURE_FLINT=--with-flint=/home/king/Sage/git/sage/local
LC_MESSAGES=
FCFLAGS=-O2 -g -march=native
_=/usr/bin/env
QT_QPA_PLATFORMTHEME=appmenu-qt5
QT_IM_MODULE=ibus
LC_COLLATE=
LC_IDENTIFICATION=en_US.UTF-8
LD=ld
SAGE_PARI_PREFIX=/home/king/Sage/git/sage/local
SAGE_GLPK_PREFIX=/home/king/Sage/git/sage/local
XDG_SESSION_TYPE=x11
PWD=/home/king/Sage/git/sage/local/var/tmp/sage/build/gfan-0.6.2.p1
JOB=unity-settings-daemon
F90=gfortran
MV=mv
XMODIFIERS=@im=ibus
EDITOR=vim
FCFLAGS_O3=-O3 -g -march=native
GNOME_KEYRING_PID=
LANG=de_DE.UTF-8
F95=gfortran
IPYTHONDIR=/home/king/.sage//ipython-5.0.0
__sage__=
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
SAGE_BUILD_ENV_SOURCED=1
CFLAGS_O3=-O3 -g -march=native
LC_MEASUREMENT=en_US.UTF-8
COMPIZ_CONFIG_PROFILE=ubuntu
SAGE_ROOT=/home/king/Sage/git/sage
IM_CONFIG_PHASE=1
F77=gfortran
SAGE_SHARE=/home/king/Sage/git/sage/local/share
JUPYTER_CONFIG_DIR=/home/king/.sage//jupyter-4.1
CFLAGS_MARCH=-march=native
ORIGINAL_CXXFLAGS=
PS1=\[\](sage-buildsh)\[\] \u@\h:\W$
CP=cp
F77FLAGS=-O2 -g -march=native
GDMSESSION=ubuntu
CCACHE_BASEDIR=/home/king/Sage/git/sage
LN=ln
SAGE_MPC_PREFIX=/home/king/Sage/git/sage/local
CXX=g++ -std=gnu++11
SAGE_ORIG_PATH_SET=True
SAGE_FLINT_PREFIX=/home/king/Sage/git/sage/local
SAGE_EDITABLE=
SESSIONTYPE=gnome-session
GTK2_MODULES=overlay-scrollbar
XDG_SEAT=seat0
SHLVL=3
HOME=/home/king
LANGUAGE=
MAKE=make -j3
TERMINFO=/home/king/Sage/git/sage/local/share/terminfo
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
SAGE_SUITESPARSE_PREFIX=/home/king/Sage/git/sage/local
CFLAGS=-O2 -g -march=native
FCFLAGS_NON_NATIVE=-O2 -g
UPSTART_INSTANCE=
FC=gfortran
CFLAGS_NON_NATIVE=-O2 -g
LOGNAME=king
XDG_SESSION_DESKTOP=ubuntu
UPSTART_EVENTS=xsession started
SAGE_SRC=/home/king/Sage/git/sage/src
PIP_FORMAT=columns
CYSIGNALS_CRASH_DAYS=7
CONFIGURED_SAGE_DEBUG=
SAGE_MPFR_PREFIX=/home/king/Sage/git/sage/local
COMPIZ_BIN_PATH=/usr/bin/
PRINTER=mps60
QT4_IM_MODULE=xim
LC_CTYPE=
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-pYqGaMqWkF
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop
CFLAGS_O3_NON_NATIVE=-O3 -g
SETUPTOOLS_USE_DISTUTILS=local
LESSOPEN=| /usr/bin/lesspipe %s
SAGE_DOC=/home/king/Sage/git/sage/local/share/doc/sage
RANLIB=ranlib
INSTANCE=
UPSTART_JOB=unity7
ARCHFLAGS=
SAGE_CXX_WITHOUT_STD=g++
ORIGINAL_F77FLAGS=
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
CC=gcc
SINGULARPATH=/home/king/Sage/git/sage/local/share/singular
F77FLAGS_O3=-O3 -g -march=native
CHMOD=chmod
SAGE_NUM_THREADS_PARALLEL=4
GTK_IM_MODULE=ibus
XDG_CURRENT_DESKTOP=Unity
LC_TIME=en_US.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
TOUCH=touch
SAGE_CRTI_DIR=/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu
CXXFLAGS_O3=-O3 -g -march=native
SAGE_PARI_CFG=/home/king/Sage/git/sage/local/lib/pari/pari.cfg
SAGE_CONFIGURE_PARI=--with-pari=/home/king/Sage/git/sage/local
XAUTHORITY=/home/king/.Xauthority
LC_NAME=en_US.UTF-8

Best regards,
Simon

Matthias Köppe

unread,
Aug 31, 2021, 10:55:01 AM8/31/21
to sage-release
Hi Simon,
This all looks fine. Can you check if anything changes if you remove some items from PATH: 
In particular /home/king/bin and /home/king/.local/bin and perhaps /snap/bin

Simon King

unread,
Sep 1, 2021, 5:14:57 AM9/1/21
to sage-r...@googlegroups.com
Hi Matthias,

On 2021-08-31, Matthias Köppe <matthia...@gmail.com> wrote:
> This all looks fine. Can you check if anything changes if you remove some
> items from PATH:
> In particular /home/king/bin and /home/king/.local/bin and perhaps /snap/bin

./sage -f gfan fails in the same way as before.

Best regards,
Simon

Matthias Köppe

unread,
Sep 1, 2021, 3:11:15 PM9/1/21
to sage-release
OK, Simon, there is only one conclusion: Your machine is haunted and you should abandon it.

Simon King

unread,
Sep 2, 2021, 9:20:16 AM9/2/21
to sage-r...@googlegroups.com
Hi Matthias,

On 2021-09-01, Matthias Köppe <matthia...@gmail.com> wrote:
> OK, Simon, there is only one conclusion: Your machine is haunted and you
> should abandon it.

Witchcraft?? OMG!!

Anyway, from your and Dima's previous suggestions it seems to me that
the trouble might have been caused by a too old version of gcc. Would it
make sense to do "make distclean" and then try again with Sage's own
gcc? If so: Could you remind me the command for forcing Sage to build
(and use) the gcc spkg?

Best regards,
Simon

Jonathan Kliem

unread,
Sep 2, 2021, 9:40:49 AM9/2/21
to sage-r...@googlegroups.com
Dear Simon,

./configure --help | grep gcc

reveals that you should configure sage with

--with-system-gcc=no

I hope that works for you.

Jonathan

Simon King

unread,
Sep 2, 2021, 11:25:02 AM9/2/21
to sage-r...@googlegroups.com
Hi Jonathan,

On 2021-09-02, 'Jonathan Kliem' via sage-release <sage-r...@googlegroups.com> wrote:
> Dear Simon,
>
> ./configure --help | grep gcc
>
> reveals that you should configure sage with
>
> --with-system-gcc=no
>
> I hope that works for you.

Thank you. In fact I had the idea to do "./configure --help" and look
out for "gcc" a few hours ago, and now it is trying to build.

Best regards,
Simon

Dima Pasechnik

unread,
Sep 2, 2021, 1:36:06 PM9/2/21
to sage-release
you can install g++7 package on Ubuntu 16.04. (google for instructions).

This should do the trick (after distclean).




--
You received this message because you are subscribed to a topic in the Google Groups "sage-release" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-release/WX3m7T8-SeM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-release...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/sgqj2a%241435%241%40ciao.gmane.io.

Simon King

unread,
Sep 2, 2021, 5:11:15 PM9/2/21
to sage-r...@googlegroups.com
Hi Dima

On 2021-09-02, Dima Pasechnik <dim...@gmail.com> wrote:
> you can install g++7 package on Ubuntu 16.04. (google for instructions).
>
> This should do the trick (after distclean).

I will not work with my old laptop much longer and I suppose that on the
new laptop (with a more recent Ubuntu) the problem will not occur.

Anyway, I wanted to try if/how it is possible to solve the problem on
the old laptop. For the record: "make distclean",
"./configure --with-system-gcc=no" and "make build" worked. I don't
know if "make distclean" directly followed by "make build" would have
worked, too.

Best regards,
Simon

Reply all
Reply to author
Forward
0 new messages