flint fails to build on OSX 10.13.6 (NTL interface)

41 views
Skip to first unread message

Dima Pasechnik

unread,
Sep 20, 2019, 4:18:43 AM9/20/19
to sage-devel
at the moment its NTL interface links, I am getting

clang -std=gnu++11 -fPIC -fno-common -pedantic -Wall -O2
-funroll-loops -g
-I/Volumes/MacHD/home/sagetrac-mirror/local/var/tmp/sage/build/flint-2.5.2.p4/src
-I/usr/local/include -I/usr/local/include -I/usr/local/include -c
interfaces/NTL-interface.cpp -o build/interfaces/NTL-interface.lo

Undefined symbols for architecture x86_64:
"std::terminate()", referenced from:
___clang_call_terminate in NTL-interface.lo
"___cxa_begin_catch", referenced from:
___clang_call_terminate in NTL-interface.lo
"___gxx_personality_v0", referenced from:
_fmpz_get_ZZ_p in NTL-interface.lo
_fq_get_ZZ_pE in NTL-interface.lo
_fq_get_zz_pE in NTL-interface.lo
Dwarf Exception Unwind Info (__eh_frame) in NTL-interface.lo

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[6]: *** [libflint-13.5.2.dylib] Error 1

It's something that can be (probably) cured by using clang++ rather
than clang as the linker, but the fact that's obviously on Apple's
side that broke stuff
--- and there are no updates available, so the system seems to be up to date.

François Bissey

unread,
Sep 20, 2019, 4:33:59 AM9/20/19
to sage-...@googlegroups.com
I’d say it is missing libstdc++ because it is linked with clang. But this is strange
CXX should be used according to the Makefile of flint. Do you do accidental patching
to CC or do you somehow pass CXX=clang to flint?
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq2zniYQLrwsCGfCgUpa9s%3Dv_0tymFGZ9FbNjzN3znugbQ%40mail.gmail.com.

Dima Pasechnik

unread,
Sep 20, 2019, 6:48:13 AM9/20/19
to sage-devel
On Fri, Sep 20, 2019 at 9:33 AM François Bissey <frp.b...@gmail.com> wrote:
>
> I’d say it is missing libstdc++ because it is linked with clang. But this is strange
> CXX should be used according to the Makefile of flint. Do you do accidental patching
> to CC or do you somehow pass CXX=clang to flint?

hmm, cannot reproduce it, after installing a Safari (browser - yes!) update...
It works again. Perhaps I somehow broke a particular shell session,
dunno. The usual Apple wtf... :-(
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/130B804D-22EF-4A82-9EE6-BF5191C57DFF%40gmail.com.
Reply all
Reply to author
Forward
0 new messages