Closed PrivacyDragon closed 2 years ago
Howdy, apologies for missing this for so long, but if you haven't figured this one out the error message suggests this is an issue with your build environment. I'm not at all familiar with Termux so I haven't got any clue what the underlying issue.
The key part is here:
Segmentation fault clang-12: error: linker command failed due to signal
A quick google says Termux is something for Android apps. My top two guesses would either be an OOM condition or perhaps a bug in handling the -flto
option on that platform.
Closing due to lack of activity.
I am trying to compile this with Termux and I get a segmentation fault.
~/jiffy $ make ./rebar compile ==> jiffy (compile) clang-12: error: unable to execute command: Segmentation fault clang-12: error: linker command failed due to signal (use -v to see invocation) sh(c++ c_src/decoder.o c_src/encoder.o c_src/jiffy.o c_src/termstack.o c_src/utf8.o c_src/util.o c_src/doubles.o c_src/objects.o c_src/double-conversion/bignum-dtoa.o c_src/double-conversion/bignum.o c_src/double-conversion/cached-powers.o c_src/double-conversion/diy-fp.o c_src/double-conversion/double-conversion.o c_src/double-conversion/fast-dtoa.o c_src/double-conversion/fixed-dtoa.o c_src/double-conversion/strtod.o -flto -lstdc++ -flto -lstdc++ -shared -L"/data/data/com.termux/files/usr/lib/erlang/lib/erl_interface-3.13.2/lib" -lei -o priv/jiffy.so) failed with return code 254 and the following output: clang-12: error: unable to execute command: Segmentation fault clang-12: error: linker command failed due to signal (use -v to see invocation) ERROR: Command [compile] failed! make: *** [Makefile:19: build] Error 1