On Fri, Oct 27, 2023 at 11:15 AM François Bissey <frp.bis...@gmail.com> wrote:
>
>  From the log sent to me in a private email:
> [sagelib-10.1]     gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1
> -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -g
> -O2 -fPIC -Isage/cpython
> -I/home/ayan/programs/sage-10.1/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/cysignals
> -I/home/ayan/programs/sage-10.1/src
> -I/home/ayan/programs/sage-10.1/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/numpy/core/include
> -I/usr/include/python3.11
> -I/home/ayan/programs/sage-10.1/local/var/lib/sage/venv-python3.11/include
> -I/usr/include/python3.11 -c sage/stats/time_series.c -o
> build/temp.linux-x86_64-cpython-311/sage/stats/time_series.o
> [sagelib-10.1]     /usr/bin/ld: ///usr/local/lib/libntl.a(ZZ.o):
> relocation R_X86_64_32S against `.rodata' can not be used when making a
> shared object; recompile with -fPIC
> [sagelib-10.1]     /usr/bin/ld: failed to set dynamic section sizes: bad
> value
> [sagelib-10.1]     collect2: error: ld returned 1 exit status
>
> We are looking at a "local" installation of NTL [not sage provided]
> which does not have the right properties.
> I would recommend uninstalling it and build the version shipped with sage.

It would be good to understand whether it's correctly configured, but
NTL is leaking into the build,
or that NTL was actually accepted by ./configure

Do you have top-level configure.log ?

>
> François
>
>
> On 27/10/23 20:15, Ayan Mahalanobis wrote:
> > Hi All,
> >
> > I am trying to build sage 10.1 from source with no luck. I am using
> > fedora 38. It uses gcc 13. The error occurs when it tries to build
> > sagelib is below.
> >
> > This is the command it ran just before exit code 1 from g++. It is nasty
> > looking and I am sorry for that. Any help much appreciated.
> > ==================================================
> > gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2
> > -fexceptions -g -grecord-gcc-switches -pipe -Wall
> > -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
> > -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
> > -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> > -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall
> > -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
> > -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
> > -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> > -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall
> > -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
> > -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
> > -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -g
> > -O2 -fPIC -I/usr/include/singular -Isage/symbolic -Isage/cpython
> > -I/home/ayan/programs/sage-10.1/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/cypari2
> >  
> > -I/home/ayan/programs/sage-10.1/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/cysignals
> >  -I/home/ayan/programs/sage-10.1/src 
> > -I/home/ayan/programs/sage-10.1/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/numpy/core/include
> >  -I/usr/include/python3.11 
> > -I/home/ayan/programs/sage-10.1/local/var/lib/sage/venv-python3.11/include 
> > -I/usr/include/python3.11 -c sage/symbolic/ginac/wildcard.cpp -o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/wildcard.o 
> > -std=c++11 -I/usr/include/singular -DSING_NDEBUG -DOM_NDEBUG
> > [sagelib-10.1]     g++ -std=gnu++11 -shared -Wl,-z,relro -Wl,--as-needed
> > -Wl,-z,now -Wl,--build-id=sha1 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now
> > -Wl,--build-id=sha1
> > -Wl,-rpath-link,/home/ayan/programs/sage-10.1/local/lib
> > -L/home/ayan/programs/sage-10.1/local/lib
> > -Wl,-rpath,/home/ayan/programs/sage-10.1/local/lib
> > -Wl,-rpath-link,/home/ayan/programs/sage-10.1/local/lib
> > -L/home/ayan/programs/sage-10.1/local/lib
> > -Wl,-rpath,/home/ayan/programs/sage-10.1/local/lib -g -O2
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/expression.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/add.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/archive.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/assume.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/basic.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/cmatcher.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/constant.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/context.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/ex.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/expair.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/expairseq.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/exprseq.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/fderivative.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/function.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/function_info.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/infinity.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/infoflagbase.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_comb.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_gamma.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_hyperb.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_hyperg.o
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_nstdsums.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_orthopoly.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_trans.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_trig.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/inifcns_zeta.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/lst.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/matrix.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/mpoly-giac.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/mpoly-ginac.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/mpoly-singular.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/mpoly.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/mul.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/normal.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/numeric.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/operators.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/order.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/power.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/print.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/pseries.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/py_funcs.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/registrar.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/relational.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/remember.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/sum.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/symbol.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/templates.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/upoly-ginac.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/useries.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/utils.o 
> > build/temp.linux-x86_64-cpython-311/sage/symbolic/ginac/wildcard.o 
> > -L/usr/lib64 -lflint -lgmp -lSingular -lpolys -lfactory -lomalloc 
> > -lsingular_resources -lgsl -lm -lopenblas -o 
> > build/lib.linux-x86_64-cpython-311/sage/symbolic/expression.cpython-311-x86_64-linux-gnu.so
> >  -lpari
> >
> > [sagelib-10.1]     error: command '/usr/bin/g++' failed with exit code 1
> > [sagelib-10.1]     error: subprocess-exited-with-error
> > [sagelib-10.1]
> > [sagelib-10.1]     × python setup.py develop did not run successfully.
> > [sagelib-10.1]     │ exit code: 1
> > [sagelib-10.1]     ╰─> 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
> > <mailto:sage-devel+unsubscr...@googlegroups.com>.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/sage-devel/eb1e4a98-7882-4547-afc2-79757757e2a7n%40googlegroups.com
> >  
> > <https://groups.google.com/d/msgid/sage-devel/eb1e4a98-7882-4547-afc2-79757757e2a7n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> 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/0e4d04dd-e62d-40f3-b4f0-5d7c8eb64bf3%40gmail.com.

-- 
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/CAAWYfq1ge1rmjgCJLFceajeoYqYYy6xHbtKfA-KgNR%2BrDvf52Q%40mail.gmail.com.

Reply via email to