error compiling 5.11 from source

70 views
Skip to first unread message

Luis Finotti

unread,
Sep 19, 2013, 3:52:15 PM9/19/13
to sage-s...@googlegroups.com

Dear all,

I tried to compile 5.11 from source on a linux box running aptosid (basically Debian Sid) with kernel 3.11, but it stopped when compiling singular (or it seemed to me):

------------------
Error building Sage.

The following package(s) may have failed to build:

package: singular-3-1-5.p7
log file: /home/sage/sage-5.11/logs/pkgs/singular-3-1-5.p7.log
build directory: /home/sage/sage-5.11/spkg/build/singular-3-1-5.p7

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.

make: *** [build] Error 1
---------------------

I've posted logs at

http://www.math.utk.edu/~finotti/misc/


Any help would be greatly appreciated.


Luis

Dima Pasechnik

unread,
Sep 19, 2013, 10:13:28 PM9/19/13
to sage-s...@googlegroups.com
On 2013-09-19, Luis Finotti <luis.f...@gmail.com> wrote:
>
> Dear all,
>
> I tried to compile 5.11 from source on a linux box running aptosid
> (basically Debian Sid) with kernel 3.11, but it stopped when compiling
> singular (or it seemed to me):
>
> ------------------
> Error building Sage.
>
> The following package(s) may have failed to build:
>
> package: singular-3-1-5.p7
[...]
>
> http://www.math.utk.edu/~finotti/misc/
You're using gcc 4.8.1 - I don't think Sage is known to work with it...

here is the relevant part of the log:

gcc -O2 -g -fPIC -pipe -I. -I.. -I/home/sage/sage-5.11/local
-I/home/sage/sage-5.11/local/include
-I/home/sage/sage-5.11/local/include
-I/home/sage/sage-5.11/local/include -I/usr/local/include -DNDEBUG
-DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H -c weight0.c
In file included from ../kernel/si_gmp.h:4:0,
from ../kernel/structs.h:15,
from weight0.c:13:
../factory/cf_gmp.h:2501:28: fatal error: bits/c++config.h: No such file
or directory
#include <bits/c++config.h>
^
compilation terminated.
make[4]: *** [weight0.o] Error 1

So bits/c++config.h isn't where it should be...
What does
locate c++config.h
say?

You can also try building Sage with the gcc that comes with it.
To do so, set SAGE_INSTALL_GCC=yes
(as explained in
http://www.sagemath.org/doc/installation/source.html#section-envvar)

HTH,
Dmitrii

Jeroen Demeyer

unread,
Sep 20, 2013, 4:02:39 AM9/20/13
to sage-s...@googlegroups.com

Luis Finotti

unread,
Sep 20, 2013, 11:11:20 AM9/20/13
to sage-s...@googlegroups.com
Thanks Dmitrii and Jeroen for the replies.  5.12 beta 5 compiled fine.

Thanks!

Luis


Reply all
Reply to author
Forward
0 new messages