Ubuntu 20.10 build of 9.3beta1 failing on fplll

25 views
Skip to first unread message

Kiran Kedlaya

unread,
Nov 12, 2020, 4:40:42 PM11/12/20
to sage-devel
I'm trying to build Sage 9.3beta1 on my Ubuntu 20.10 laptop, and the build is failing in fplll-5.3.3. The relevant lines seem to be

[fplll-5.3.3] /usr/bin/ld: /usr/local/lib/libqd.a(dd_const.o): warning: relocation against `_ZN7dd_real4_pi4E' in read-only section `.text.startup'
[fplll-5.3.3] /usr/bin/ld: /usr/local/lib/libqd.a(dd_real.o): relocation R_X86_64_PC32 against symbol `_ZSt4cerr@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC

I can include a more detailed log if needed, but let's see if this is already enough to generate some suggestions...

Kiran

Dima Pasechnik

unread,
Nov 12, 2020, 4:43:21 PM11/12/20
to sage-devel
perhaps you have some stale libraries in /usr/local/lib/ ?
On Ubuntu one should be able to use libqd from the system.

>
> Kiran
>
> --
> 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/37a140b4-67a9-4f0a-ba3b-28259f134ca1n%40googlegroups.com.

Isuru Fernando

unread,
Nov 12, 2020, 7:02:38 PM11/12/20
to sage-devel

François Bissey

unread,
Nov 12, 2020, 7:13:39 PM11/12/20
to sage-...@googlegroups.com
libqd.a in your /usr/local/lib folder has been compiled without -fPIC and cannot
be used to build a shared library.
As stated by Dima, you shouldn’t need to install your own. If you insist on using
a libqd from /usr/local/lib, install one compiled with -fPIC.

François

Kiran Kedlaya

unread,
Nov 13, 2020, 1:08:29 AM11/13/20
to sage-devel
Removing /usr/local/lib/libqd.a indeed took care of the issue. Thanks!

Kiran

Reply all
Reply to author
Forward
0 new messages