ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 11 Oct 2019 19:14:14 +0200building from git unresolved symbols libgomphttps://ask.sagemath.org/question/48286/building-from-git-unresolved-symbols-libgomp/fresh git cloned repository. Compilation fails with the spurious error as in https://trac.sagemath.org/ticket/28513. Running `./sage` crashes with the error
<pre><code>ImportError: /home/user/sage/local/lib/liblinbox.so.0: undefined symbol: GOMP_loop_ull_maybe_nonmonotonic_runtime_next
</code></pre>
But the symbols are there:
<pre><code>$ nm /usr/lib/libgomp.so | grep GOMP_loop_ull_maybe_
0000000000010070 T GOMP_loop_ull_maybe_nonmonotonic_runtime_next
000000000000f210 T GOMP_loop_ull_maybe_nonmonotonic_runtime_start</code></pre>
This is on Arch
<code><pre>$uname -a
Linux host 5.3.5-arch1-1-ARCH #1 SMP PREEMPT Mon Oct 7 19:03:08 UTC 2019 x86_64 GNU/Linux
$ gcc --version
gcc (GCC) 9.2.0</code></pre>heluaniFri, 11 Oct 2019 19:14:14 +0200https://ask.sagemath.org/question/48286/Why does source compile fail on archlinux at gcc?https://ask.sagemath.org/question/34172/why-does-source-compile-fail-on-archlinux-at-gcc/I am attempting to compile the most recent sage source code on my Archlinux system. I have all the required packages and tools, and so I would have expected that `make` would simply do its bit.
But it fails on the compile of gcc. I've included below the last few lines of my gcc log file. What is going wrong here, and how do I fix it?
Makefile:1058: recipe for target 'cp/except.o' failed
make[6]: *** [cp/except.o] Error 1
make[6]: Leaving directory '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1/gcc-build/gcc'
Makefile:4222: recipe for target 'all-stage1-gcc' failed
make[5]: *** [all-stage1-gcc] Error 2
make[5]: Leaving directory '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1/gcc-build'
Makefile:18866: recipe for target 'stage1-bubble' failed
make[4]: *** [stage1-bubble] Error 2
make[4]: Leaving directory '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1/gcc-build'
Makefile:889: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1/gcc-build'
real 5m46.259s
user 4m57.797s
sys 0m23.407s
************************************************************************
Error installing package gcc-4.9.3.p1
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
/opt/sage-7.2/logs/pkgs/gcc-4.9.3.p1.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1' && '/opt/sage-7.2/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
AlasdairThu, 21 Jul 2016 13:01:46 +0200https://ask.sagemath.org/question/34172/