building from git unresolved symbols libgomp

asked 2019-10-11 12:14:14 -0600

heluani gravatar image

updated 2019-10-11 12:35:13 -0600

tmonteil gravatar image

fresh git cloned repository. Compilation fails with the spurious error as in https://trac.sagemath.org/ticket/28513. Running ./sage crashes with the error

ImportError: /home/user/sage/local/lib/liblinbox.so.0: undefined symbol: GOMP_loop_ull_maybe_nonmonotonic_runtime_next

But the symbols are there:

$ 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

This is on Arch

$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

edit retag flag offensive close merge delete

Comments

Could you copy/paste the full error log and not only the last error message?

Also, is your compiled linbox correctly linked to /usr/lib/libgmp.so? See

$ ldd /home/user/sage/local/lib/liblinbox.so
vdelecroix gravatar imagevdelecroix ( 2019-10-11 19:22:34 -0600 )edit

won't have access to that box until Monday but my guess is that it was an incompatible version of gcc-fortran. I just compiled in a different computer running arch updated the same day and it went smoothly.

heluani gravatar imageheluani ( 2019-10-12 13:21:59 -0600 )edit

Indeed it was a broken gcc-fortran. I just reinstalled gcc and gcc-fortran and recompiled without trouble. I suppose this question can be closed? thanks.

heluani gravatar imageheluani ( 2019-10-14 14:08:07 -0600 )edit