This indeed fixed it, thanks a lot!

Op zaterdag 6 januari 2024 om 21:00:05 UTC+1 schreef Matthias Koeppe:

> Relevant error from sagelib... log:
>
>     /usr/bin/ld: ///usr/local/lib/libntl.a(RR.o): relocation 
> R_X86_64_TPOFF32 against symbol `_ZN3NTL2RR4precE' can not be used when 
> making a shared object; recompile with -fPIC
>     /usr/bin/ld: failed to set dynamic section sizes: bad value
>     collect2: error: ld returned 1 exit status
>
> To fix, remove the broken installation of NTL in /usr/local
>
>
>
> On Saturday, January 6, 2024 at 10:05:42 AM UTC-8 Wouter Castryck wrote:
>
>> Hi all,
>>
>> I'm trying to build Sage 10.3 beta from source in Ubuntu 22.04 by rather 
>> naively following
>>
>> https://doc.sagemath.org/html/en/installation/source.html#installation-in-a-multiuser-environment
>> but I keep bumping into errors when it tries to compile the sagelib 
>> package. I pasted part of the error below, but see the attached config.log 
>> and sagelib-10.3.beta4.log files for the full logs.
>>
>> These specific instances correspond to the following configuration:
>>
>> ./configure --config-cache --enable-ccache --prefix=/opt/sage/sage-10.3 
>> --with-system-pari=no
>>
>> But this is just one of several attempts; the issue is always similar. 
>> (Here, the pari option was because I had read in another post about a 
>> potential conflict with giac.)
>>
>> Any help would be most welcome, thanks!
>>
>> best,
>> Wouter
>>
>> ------
>>
>> [sagelib-10.3.beta4]       g++ -std=gnu++11 -shared -Wl,-O1 
>> -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 
>> -Wl,-rpath-link,/opt/sage/sage-10.3/lib -L/opt/sage/sage-10.3/lib 
>> -Wl,-rpath,/opt/sage/sage-10.3/lib -g -O2 
>> build/temp.linux-x86_64-cpython-310/sage/matrix/matrix_integer_sparse.o 
>> -L/opt/sage/sage-10.3/lib -L/usr/lib/x86_64-linux-gnu/openblas-pthread/ 
>> -L/opt/sage/sage-10.3/lib -L/opt/sage/sage-10.3/lib 
>> -L/usr/lib/x86_64-linux-gnu -lgmp -llinbox -lntl -lmpfr -liml -lflint 
>> -lfflas -lffpack -lopenblas -lgivaro -lgmp -lgmpxx -lgivaro -lgmp -lgmpxx 
>> -lfflas -lffpack -lopenblas -lgivaro -lgmp -lgmpxx -lflint -o 
>> build/lib.linux-x86_64-cpython-310/sage/matrix/
>> matrix_integer_sparse.cpython-310-x86_64-linux-gnu.so -lpari -fopenmp
>> [sagelib-10.3.beta4]       error: command 
>> '/opt/sage/sage-10.3/libexec/ccache/g++' failed with exit code 1
>> [sagelib-10.3.beta4]       error: subprocess-exited-with-error
>> [sagelib-10.3.beta4]       
>> [sagelib-10.3.beta4]       × python setup.py develop did not run 
>> successfully.
>> [sagelib-10.3.beta4]       │ exit code: 1
>> [sagelib-10.3.beta4]       ╰─> See above for output.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/7f3ab318-44be-4792-9594-04f3fd9513fbn%40googlegroups.com.

Reply via email to