fflas_ffpack-2.2.2.p0 fails to compile on ubuntu 16.04 running on raspberry pi

115 views
Skip to first unread message

Ronno Das

unread,
Apr 30, 2018, 6:31:51 PM4/30/18
to sage-devel
The 'make' ends with

[fflas_ffpack-2.2.2.p0] ************************************************************************
[fflas_ffpack-2.2.2.p0] Error installing package fflas_ffpack-2.2.2.p0
[fflas_ffpack-2.2.2.p0] ************************************************************************
[fflas_ffpack-2.2.2.p0] Please email sage-devel (http://groups.google.com/group/sage-devel)
[fflas_ffpack-2.2.2.p0] explaining the problem and including the log file
[fflas_ffpack-2.2.2.p0]   /opt/sage/logs/pkgs/fflas_ffpack-2.2.2.p0.log
[fflas_ffpack-2.2.2.p0] Describe your computer, operating system, etc.
[fflas_ffpack-2.2.2.p0] If you want to try to fix the problem yourself, *don't* just cd to
[fflas_ffpack-2.2.2.p0] /opt/sage/local/var/tmp/sage/build/fflas_ffpack-2.2.2.p0 and type 'make' or whatever is appropriate.
[fflas_ffpack-2.2.2.p0] Instead, the following commands setup all environment variables
[fflas_ffpack-2.2.2.p0] correctly and load a subshell for you to debug the error:
[fflas_ffpack-2.2.2.p0]   (cd '/opt/sage/local/var/tmp/sage/build/fflas_ffpack-2.2.2.p0' && '/opt/sage/sage' --sh)
[fflas_ffpack-2.2.2.p0] When you are done debugging, you can type "exit" to leave the subshell.
[fflas_ffpack-2.2.2.p0] ************************************************************************
Makefile:1529: recipe for target '/opt/sage/local/var/lib/sage/installed/fflas_ffpack-2.2.2.p0' failed
make[2]: *** [/opt/sage/local/var/lib/sage/installed/fflas_ffpack-2.2.2.p0] Error 1
make[2]: Leaving directory '/opt/sage/build/make'
Makefile:803: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/sage/build/make'

real    8m37.346s
user    8m16.960s
sys     0m8.470s
***************************************************************
Error building Sage.

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

* package: fflas_ffpack-2.2.2.p0
  log file: /opt/sage/logs/pkgs/fflas_ffpack-2.2.2.p0.log
  build directory: /opt/sage/local/var/tmp/sage/build/fflas_ffpack-2.2.2.p0

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

I've attached the file '/opt/sage/logs/pkgs/fflas_ffpack-2.2.2.p0.log'. What do I need to fix?
fflas_ffpack-2.2.2.p0.log

François Bissey

unread,
Apr 30, 2018, 6:36:41 PM4/30/18
to sage-...@googlegroups.com
The real interesting bit is
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../fflas-ffpack/utils/ -I../../../fflas-ffpack/fflas/ -I../../../fflas-ffpack/ffpack -I../../../fflas-ffpack/field -fPIC -std=gnu++11 -fabi-version=6 -I/opt/sage/local/include -I/opt/sage/local/include -D__FFLASFFPACK_HAVE_CBLAS -O2 -Wall -DNDEBUG -UFFLASFFPACK_DEBUG -g -O2 -fPIC -std=gnu++11 -fabi-version=6 -c -o ffpack_inst.lo ffpack_inst.C
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../fflas-ffpack/utils/ -I../../../fflas-ffpack/fflas/ -I../../../fflas-ffpack/ffpack -I../../../fflas-ffpack/field -fPIC -std=gnu++11 -fabi-version=6 -I/opt/sage/local/include -I/opt/sage/local/include -D__FFLASFFPACK_HAVE_CBLAS -O2 -Wall -DNDEBUG -UFFLASFFPACK_DEBUG -g -O2 -fPIC -std=gnu++11 -fabi-version=6 -c ffpack_inst.C -fPIC -DPIC -o .libs/ffpack_inst.o
In file included from ffpack_inst.C:68:0:
ffpack_inst_implem.inl:396:1: internal compiler error: in get_untransformed_body, at cgraph.c:3263

so your compiler (gcc-5.4.0) broke down at this stage but it will be difficult to know why.
You are compiling directly on the pi?

François
> --
> 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 post to this group, send email to sage-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
> <fflas_ffpack-2.2.2.p0.log>

Ronno Das

unread,
Apr 30, 2018, 7:11:43 PM4/30/18
to sage-devel
Yes, I'm compiling on the pi.

François Bissey

unread,
Apr 30, 2018, 7:14:26 PM4/30/18
to sage-...@googlegroups.com
OK so asking for sage to install its own gcc may be overkill as I am expecting it
will take forever. Do you have access to another compiler - gcc or clang-5+?

Ronno Das

unread,
Apr 30, 2018, 7:18:49 PM4/30/18
to sage-devel
I figured, so I installed gcc, g++ and gfortran from the ubuntu packages as in http://doc.sagemath.org/html/en/installation/source.html#prerequisites.

Erik Bray

unread,
May 1, 2018, 8:19:35 AM5/1/18
to sage-devel
On Tue, May 1, 2018 at 1:11 AM, Ronno Das <ronn...@gmail.com> wrote:
> Yes, I'm compiling on the pi.

Did this ever work? I don't think a RaspPi even has enough memory to
compile some of Sage's dependencies, especially some of the C++ heavy
ones.

Dima Pasechnik

unread,
May 1, 2018, 9:52:12 AM5/1/18
to sage-devel


On Tuesday, May 1, 2018 at 1:19:35 PM UTC+1, Erik Bray wrote:
On Tue, May 1, 2018 at 1:11 AM, Ronno Das <ronn...@gmail.com> wrote:
> Yes, I'm compiling on the pi.

Did this ever work?  I don't think a RaspPi even has enough memory to
compile some of Sage's dependencies, especially some of the C++ heavy
ones.

1GB (the current model) + swap ought to handle this, albeit slowly

Something like https://www.pine64.org/?product=rock64-media-board-computer (with up to 4GB RAM, basically
the same form factor)
looks much more reasonable...

Ronno Das

unread,
May 2, 2018, 12:16:04 AM5/2/18
to sage-devel
The compilation process hasn't had a problem with running out of memory so far, and I'm not so concerned with how long it takes.

Ronno Das

unread,
May 3, 2018, 5:33:12 PM5/3/18
to sage-devel
How do I figure out why this package is failing to build? I ran make -k and it took ~16 hours, but fflas_ffpack was the only error.

Dima Pasechnik

unread,
May 5, 2018, 8:16:08 AM5/5/18
to sage-devel


On Thursday, May 3, 2018 at 10:33:12 PM UTC+1, Ronno Das wrote:
How do I figure out why this package is failing to build? I ran make -k and it took ~16 hours, but fflas_ffpack was the only error.

naturally, nothing that depends on this package has been built, either.

You're getting

In file included from ffpack_inst.C:68:0: 
ffpack_inst_implem.inl:396:1: internal compiler error: in get_untransformed_body, at cgraph.c:3263

which are hard to deal with. Probably building it with -O0 rather than with -O2 might help.
Namely, edit line 14 of build/pkgs/fflas_ffpack/spkg-install,
which sets CXXFLAGS, and change there O2 to O0

Ronno Das

unread,
May 6, 2018, 12:24:51 PM5/6/18
to sage-devel
Upgrading to gcc-6, g++-6 and gfortran-6 from the ubuntu toolchain ppa and adding some swap made 'make build' work. There's still some error with building the documentation, but that's a separate issue.

Samuel Lelievre

unread,
May 6, 2018, 12:54:52 PM5/6/18
to sage-devel
Sun 2018-05-06 16:24:51 UTC, Ronno Das:


> Upgrading to gcc-6, g++-6 and gfortran-6 from the ubuntu toolchain ppa
> and adding some swap made 'make build' work. There's still some error
> with building the documentation, but that's a separate issue.

Thanks for reporting this! I updated the "Exotic ports" page on
our Trac wiki:

Dima Pasechnik

unread,
May 7, 2018, 4:34:56 AM5/7/18
to sage-devel
Building docs is at present very RAM-hungry. But you only really need it is you hack on Sage, otherwise doc.sagemath.org has everything doc-building builds.
Reply all
Reply to author
Forward
0 new messages