Opened 15 years ago

Closed 15 years ago

#1126 closed defect (fixed)

[with spkg] building of fplll is broken

Reported by: was Owned by: mabshoff
Priority: blocker Milestone: sage-2.8.13
Component: packages: standard Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

> 
> ***
> x86_64-Linux
> ***
> While compiling libfplll-2.1-20071024, I get
> 
> g++ -shared -nostdlib /usr/lib/../lib64/crti.o
> /usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/crtbeginS.o
>  .libs/fplll.o  -Wl,--rpath
> -Wl,/usr/local/gcc-4.2.2/x86_64-Linux/lib/../lib64 -Wl,--rpath
> -Wl,/usr/local/gcc-4.2.2/x86_64-Linux/lib/../lib64 -lmpfr -lgmp
> -L/usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2
> -L/usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../../../lib64
> -L/lib/../lib64 -L/usr/lib/../lib64
> -L/home/kate/sage/sage-2.8.12-x86_64-Linux/local/lib
> -L/usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../..
> /usr/local/gcc-4.2.2/x86_64-Linux/lib/../lib64/libstdc++.so -lm -lc
> -lgcc_s /usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/crtendS.o
> /usr/lib/../lib64/crtn.o  -Wl,-soname -Wl,libfplll.so.0 -o
> .libs/libfplll.so.0.0.0
> /usr/bin/ld: /usr/lib/../lib64/libmpfr.a(exceptions.o): relocation
> R_X86_64_32 against `a local symbol' can not be used when making a
> shared object; recompile with -fPIC
> /usr/lib/../lib64/libmpfr.a: could not read symbols: Bad value
> 
> Why is Sage trying to use libmpfr.a out of /usr/lib?  Should it not be
> using the version
> in [sage]/local/lib?

I agree.  Note that libfpll is a brand new package in Sage (it does very fast LLL reduction,
so is quite important), but it hasn't been as widely tested as other components of Sage. 

Change History (6)

comment:1 Changed 15 years ago by mabshoff

  • Owner changed from was to mabshoff
  • Status changed from new to assigned

For a potential solutions to this problem please try

http://sage.math.washington.edu/home/mabshoff/libfplll-2.1-20071024.p0.spkg

Cheers,

Michael

comment:2 Changed 15 years ago by mabshoff

  • Summary changed from building of fplll is broken to [with spkg] building of fplll is broken

comment:3 Changed 15 years ago by mabshoff

Ok, got feedback from Kate: It works on her x86-64 box and also builds fine for me on sage.math.

Cheers,

Michael

comment:4 Changed 15 years ago by mabshoff

  • Milestone changed from sage-2.9 to sage-2.8.13

comment:5 Changed 15 years ago by malb

I've uploaded a new spkg to

http://sage.math.washington.edu/home/malb/pkgs/libfplll-2.1.3-20071117.spkg

which contains a cleaner fix than the package linked above by mabshoff. We shouldn't touch Makefile.am of the upstream package with SAGE specific fixes and thus I added that flag to spkg-install.

comment:6 Changed 15 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from assigned to closed

Merged in 2.8.13.alpha0.

Note: See TracTickets for help on using tickets.