build fails due to giac-1.2.2.103

72 views
Skip to first unread message

Darij Grinberg

unread,
Mar 8, 2017, 11:22:08 AM3/8/17
to sage-devel
Hi,

I'm failing to build ("make build") 7.6.beta6 on my university computer:

[giac-1.2.2.103] /home/dgrinber/sage-7.5.1/local/lib/libntl.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
[giac-1.2.2.103] collect2: error: ld returned 1 exit status

For the complete log, see https://dl.dropboxusercontent.com/u/83265276/giac-1.2.2.103.log

It's been a while since I've last run into troubles building Sage, which is a good thing but unfortunately means I have long forgotten how to deal with such issues. Any ideas?

  Best regards,
  Darij

Isuru Fernando

unread,
Mar 8, 2017, 11:46:55 AM3/8/17
to sage-...@googlegroups.com
Hi,

Did you upgrade your gcc between compiling ntl and compiling giac? It seems to me like ntl was compiled with gcc 4.x while you are trying to compile giac with gcc 5.x.

Isuru Fernando

--
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+unsubscribe@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.

Darij Grinberg

unread,
Mar 9, 2017, 3:01:59 PM3/9/17
to sage-devel
Hi Isuru,

thank you. I'm recompiling now (after make distclean) and hitting a similar-looking problem:
https://dl.dropboxusercontent.com/u/83265276/eclib-20170104.log

Could it be that some parts of the compilation use sage's gcc while others use the system gcc? Is there a way to force them all to use the same gcc?

  Best regards,
  Darij


On Wednesday, 8 March 2017 10:46:55 UTC-6, Isuru Fernando wrote:
Hi,

Did you upgrade your gcc between compiling ntl and compiling giac? It seems to me like ntl was compiled with gcc 4.x while you are trying to compile giac with gcc 5.x.

Isuru Fernando
On Wed, Mar 8, 2017 at 8:37 PM, Darij Grinberg <darijg...@gmail.com> wrote:
Hi,

I'm failing to build ("make build") 7.6.beta6 on my university computer:

[giac-1.2.2.103] /home/dgrinber/sage-7.5.1/local/lib/libntl.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
[giac-1.2.2.103] collect2: error: ld returned 1 exit status

For the complete log, see https://dl.dropboxusercontent.com/u/83265276/giac-1.2.2.103.log

It's been a while since I've last run into troubles building Sage, which is a good thing but unfortunately means I have long forgotten how to deal with such issues. Any ideas?

  Best regards,
  Darij

--
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.

Isuru Fernando

unread,
Mar 9, 2017, 3:17:21 PM3/9/17
to sage-...@googlegroups.com
Hi,

Can you also attach the ntl log?

Isuru Fernando

To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscribe@googlegroups.com.

Darij Grinberg

unread,
Mar 9, 2017, 3:18:34 PM3/9/17
to Sage devel
Hi,

On Thu, Mar 9, 2017 at 2:16 PM, Isuru Fernando <isu...@gmail.com> wrote:
> Can you also attach the ntl log?

Here it goes: https://dl.dropboxusercontent.com/u/83265276/ntl-10.1.0.log

Best regards,
Darij

François Bissey

unread,
Mar 9, 2017, 3:20:02 PM3/9/17
to sage-...@googlegroups.com
Hum, that's definitely a signal that ntl has been compiled with
-std=c++11 and eclib doesn't. Which is strange because I put code
in configure to make sure it would pick up the c++11 bit myself.
I probably didn't take into account a corner case.
On the other hand I think eclib should just switch to c++11 by default.

Nevertheless there is some strangeness happening there. Can you
post the log for ntl please?

Francois
> it, send an email to sage-devel+...@googlegroups.com <javascript:>.
> To post to this group, send email to sage-...@googlegroups.com
> <javascript:>.
> <https://groups.google.com/group/sage-devel>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> 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
> <mailto:sage-devel+...@googlegroups.com>.
> To post to this group, send email to sage-...@googlegroups.com
> <mailto:sage-...@googlegroups.com>.

François Bissey

unread,
Mar 9, 2017, 3:22:35 PM3/9/17
to sage-...@googlegroups.com
Sorry for the echo. Would you be using icecream? ntl and eclib have not
been compiled on the same machine.
NTL:
Host system:
Linux math-remote01 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52
UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

eclib
Host system:
Linux math-vinh203b-1 4.4.0-64-generic #85~14.04.1-Ubuntu SMP Mon Feb 20
12:10:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Francois

Darij Grinberg

unread,
Mar 9, 2017, 3:28:51 PM3/9/17
to Sage devel
Hi Francois,

Aaaaah! I see now. I started compiling in my office, then it failed
and I tried fixing it via ssh. But I ran ssh on a different server.
Will try again from my office now.

Best regards and thanks for solving the riddle,
Darij
> --
> 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/w3P3nRybj6E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.

Darij Grinberg

unread,
Mar 10, 2017, 2:21:08 PM3/10/17
to Sage devel
Yes, it works!

Thanks again, Francois and Isuru.

Best regards,
Darij
Reply all
Reply to author
Forward
0 new messages