Re: libgap package failed to build

92 views
Skip to first unread message

Volker Braun

unread,
May 31, 2013, 7:05:06 AM5/31/13
to sage-s...@googlegroups.com
Thats a normal #define in object.h. It seems like your toolchain is broken. 

Does it work if you compile sage with "SAGE_INSTALL_GCC=yes make"


On Friday, May 31, 2013 8:18:12 AM UTC+1, Sancho McCann wrote:
I'm building sage 5.9 on OpenSuSE 12.3 (x86_64).

I get:

Error building Sage.

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

package: libgap-4.5.7.p2
log file: /tmp/sage-5.9/logs/pkgs/libgap-4.5.7.p2.log
build directory: /tmp/sage-5.9/spkg/build/libgap-4.5.7.p2

The only error displayed in the log file is this:

In file included from system.c:45:0:
./string.h:213:56: error: 'libGAP_LAST_REAL_TNUM' undeclared here (not in a function)

Jeroen Demeyer

unread,
May 31, 2013, 7:43:46 AM5/31/13
to sage-s...@googlegroups.com
Does it work if you try again (just type "make" a second time)?

Sancho McCann

unread,
May 31, 2013, 11:49:47 AM5/31/13
to sage-s...@googlegroups.com
It fails if I just try again by typing "make".

It also fails if I try again with SAGE_KEEP_BUILT_SPKGS set to yes.


On Friday, May 31, 2013 4:43:46 AM UTC-7, Jeroen Demeyer wrote:

Sancho McCann

unread,
May 31, 2013, 12:03:40 PM5/31/13
to sage-s...@googlegroups.com
I have gcc (SUSE Linux) 4.7.2 20130108.

pkg/build/libgap-4.5.7.p2/src/src/string.h doesn't include anything other than <string.h> for memcpy. It doesn't include pkg/build/libgap-4.5.7.p2/src/src/objects.h, where libGAP_LAST_REAL_TNUM is defined.

Sancho McCann

unread,
May 31, 2013, 4:58:08 PM5/31/13
to sage-s...@googlegroups.com
It still did not work when I compiled with

export SAGE_INSTALL_GCC="yes"



On Friday, May 31, 2013 4:05:06 AM UTC-7, Volker Braun wrote:

Dima Pasechnik

unread,
Jun 1, 2013, 7:33:15 AM6/1/13
to sage-s...@googlegroups.com
On 2013-05-31, Sancho McCann <san...@gmail.com> wrote:
> ------=_Part_951_13584547.1370033888160
> Content-Type: text/plain; charset=ISO-8859-1
>
> It still did not work when I compiled with
>
> export SAGE_INSTALL_GCC="yes"
you probably need to build Sage gcc spkg by hand
(./sage -f spkg/standard/gcc-4.7.2.p1.spkg )
and do make after thes

Volker Braun

unread,
Jun 1, 2013, 8:28:27 AM6/1/13
to sage-s...@googlegroups.com
Can you post a link (e.g. pastebin) to the rest of the libgap log?

Sancho McCann

unread,
Jun 2, 2013, 4:43:47 PM6/2/13
to sage-s...@googlegroups.com

Volker Braun

unread,
Jun 2, 2013, 5:01:40 PM6/2/13
to sage-s...@googlegroups.com
system.c:45 is 

#include <string.h> 

but for some reason you are getting the local "string.h". Its a bit unfortunate that the header names clash, but your toolchain is still broken. Do you have a C_INCLUDE_PATH set by any chance? Whats the output of "cpp -v"
Reply all
Reply to author
Forward
0 new messages