fail to build sage-8.9 on my debian-10.2/AMD64

32 views
Skip to first unread message

Jean-Claude Daudin

unread,
Jan 25, 2020, 3:38:01 PM1/25/20
to sage-devel

the make error logs are:

make[3] : on entre dans le répertoire « /projet/sage-8.9/build/make »
sage-logger -p 'sage-spkg  gfortran-7.4.0' '/projet/sage-8.9/logs/pkgs/gfortran-7.4.0.log'
[gfortran-7.4.0] Found local metadata for gfortran-7.4.0
[gfortran-7.4.0] Using cached file /projet/sage-8.9/upstream/gcc-7.4.0.tar.xz
[gfortran-7.4.0] gfortran-7.4.0
[gfortran-7.4.0] ====================================================
[gfortran-7.4.0] Setting up build directory for gfortran-7.4.0
[gfortran-7.4.0] Traceback (most recent call last):
[gfortran-7.4.0]   File "/projet/sage-8.9/build/bin/sage-uncompress-spkg", line 23, in <module>
[gfortran-7.4.0]     run()
[gfortran-7.4.0]   File "/projet/sage-8.9/build/bin/../sage_bootstrap/uncompress/cmdline.py", line 53, in run
[gfortran-7.4.0]     archive = open_archive(filename)
[gfortran-7.4.0]   File "/projet/sage-8.9/build/bin/../sage_bootstrap/uncompress/action.py", line 38, in open_archive
[gfortran-7.4.0]     return cls(filename)
[gfortran-7.4.0]   File "/projet/sage-8.9/build/bin/../sage_bootstrap/uncompress/tar_file.py", line 153, in __new__
[gfortran-7.4.0]     return SageBaseTarFile(mode="r", fileobj=BytesIO(data))
[gfortran-7.4.0] MemoryError
[gfortran-7.4.0] ************************************************************************
[gfortran-7.4.0] Error: failed to extract /projet/sage-8.9/upstream/gcc-7.4.0.tar.xz
[gfortran-7.4.0] ************************************************************************
[gfortran-7.4.0] Please email sage-devel (http://groups.google.com/group/sage-devel)
[gfortran-7.4.0] explaining the problem and including the log file
[gfortran-7.4.0]   /projet/sage-8.9/logs/pkgs/gfortran-7.4.0.log
[gfortran-7.4.0] Describe your computer, operating system, etc.
[gfortran-7.4.0] ************************************************************************
make[3]: *** [Makefile:2169: /projet/sage-8.9/local/var/lib/sage/installed/gfortran-7.4.0] Error 1
make[3] : on quitte le répertoire « /projet/sage-8.9/build/make »
make[2]: *** [Makefile:1847: all-start] Error 2
make[2] : on quitte le répertoire « /projet/sage-8.9/build/make »

real    0m8,329s
user    0m5,753s
sys    0m1,385s
***************************************************************
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package: gfortran-7.4.0
  log file: /projet/sage-8.9/logs/pkgs/gfortran-7.4.0.log
  build directory: /projet/sage-8.9/local/var/tmp/sage/build/gfortran-7.4.0

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.

***************************************************************************************************************************************
my fortran debian packages installed are:

ii  gfortran                                4:8.3.0-1                           amd64        GNU Fortran 95 compiler
ii  gfortran-7                              7.4.0-6                             amd64        GNU Fortran compiler
ii  gfortran-7-multilib                     7.4.0-6                             amd64        GNU Fortran compiler (multilib support)
ii  gfortran-8                              8.3.0-6                             amd64        GNU Fortran compiler
ii  gfortran-8-multilib-x86-64-linux-gnux32 8.3.0-2cross2                       amd64        GNU Fortran compiler (multilib support)
ii  gfortran-8-x86-64-linux-gnux32          8.3.0-2cross2                       amd64        GNU Fortran compiler
ii  gfortran-multilib-x86-64-linux-gnux32   4:8.3.0-1                           amd64        GNU Fortran 95 compiler for the x32 architecture
ii  gfortran-x86-64-linux-gnux32            4:8.3.0-1                           amd64        GNU Fortran 95 compiler for the x32 architecture
ii  lib32gfortran-7-dev                     7.4.0-6                             amd64        Runtime library for GNU Fortran applications (32bit development files)
ii  lib32gfortran-8-dev-x32-cross           8.3.0-2cross2                       all          Runtime library for GNU Fortran applications (32bit development files)
ii  lib32gfortran4                          7.4.0-6                             amd64        Runtime library for GNU Fortran applications (32bit)
ii  lib32gfortran5-x32-cross                8.3.0-2cross2                       all          Runtime library for GNU Fortran applications (32bit)
ii  lib64gfortran-8-dev-x32-cross           8.3.0-2cross2                       all          Runtime library for GNU Fortran applications (64bit development files)
ii  lib64gfortran5-x32-cross                8.3.0-2cross2                       all          Runtime library for GNU Fortran applications (64bit)
ii  libgfortran-7-dev:amd64                 7.4.0-6                             amd64        Runtime library for GNU Fortran applications (development files)
ii  libgfortran-8-dev:amd64                 8.3.0-6                             amd64        Runtime library for GNU Fortran applications (development files)
ii  libgfortran-8-dev-x32-cross             8.3.0-2cross2                       all          Runtime library for GNU Fortran applications (development files)
ii  libgfortran4:amd64                      7.4.0-6                             amd64        Runtime library for GNU Fortran applications
ii  libgfortran5:amd64                      8.3.0-6                             amd64        Runtime library for GNU Fortran applications
ii  libgfortran5-x32-cross                  8.3.0-2cross2                       all          Runtime library for GNU Fortran applications
ii  libx32gfortran-7-dev                    7.4.0-6                             amd64        Runtime library for GNU Fortran applications (x32 development files)
ii  libx32gfortran4                         7.4.0-6                             amd64        Runtime library for GNU Fortran applications (x32)
********************************************************************************************************************************************************


Can you help me solving this issue.

Thanks in advance.


Dima Pasechnik

unread,
Jan 25, 2020, 4:20:32 PM1/25/20
to sage-devel
You need to tell ./configure which Fortran to use (as by default it
will take your gfortran version 4, too old, and so it tries to build
one and fails)

Something like this:

$ FC=gfortran-8 CC=gcc-8 CXX=g++-8 ./configure
$ make

should be good.

(I assume that gcc-8 and g++-8 are the matching (gcc version 8) C and
C++ compilers)
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/24f45d8b-eb72-4989-afb3-7235d7bd4611%40googlegroups.com.

Jean-Claude Daudin

unread,
Jan 25, 2020, 6:45:35 PM1/25/20
to sage-...@googlegroups.com
It works fine thanks a lot.

You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/hASCsv5XpwA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq1DJf9c%2BBUTLA0%2BaOSAB2bqKb7fafBhmCTJnhRbxB0Wsg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages