[erlang-questions] Erlang R16B03-1 and Linux 3.10.34
Valentino Volonghi
dialtone@REDACTED
Wed Apr 9 12:02:07 CEST 2014
Hey guys,
I'm trying to compile Erlang R16 on Amazon Linux 2014.03 released a
week or so ago.
Unfortunately it seems like it's really hard to compile erlang in it,
in fact it fails when it uses hrtime_t.
Here is the make result with its failure, the branching is breaking on
is the ifdef of the Real HRTime and I suppose it assumes it's solaris.
Is there any way I can disable the check or usage of hrtimers in the configure?
Thanks!
if utils/gen_git_version x86_64-unknown-linux-gnu/gen_git_version.mk;
then touch beam/erl_bif_info.c; fi
gcc -Werror=return-type -O3 -Ofast -flto -pipe
-I/tmp/install/otp_src_R16B03-1/erts/x86_64-unknown-linux-gnu
-fno-tree-copyrename -D_GNU_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement
-DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS
-D_POSIX_THREAD_SAFE_FUNCTIONS -DERTS_ENABLE_LOCK_COUNT
-Ix86_64-unknown-linux-gnu/opt/smp -Ibeam -Isys/unix -Isys/common
-Ix86_64-unknown-linux-gnu -Izlib -Ipcre -Ihipe -I../include
-I../include/x86_64-unknown-linux-gnu -I../include/internal
-I../include/internal/x86_64-unknown-linux-gnu -c sys/unix/erl_main.c
-o obj/x86_64-unknown-linux-gnu/opt/smp/erl_main.o
In file included from beam/sys.h:42:0,
from sys/unix/erl_main.c:22:
sys/unix/erl_unix_sys.h:181:1: error: unknown type name ‘hrtime_t’
typedef hrtime_t SysHrTime;
^
make[3]: *** [obj/x86_64-unknown-linux-gnu/opt/smp/erl_main.o] Error 1
make[3]: Leaving directory `/tmp/install/otp_src_R16B03-1/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/tmp/install/otp_src_R16B03-1/erts/emulator'
make[1]: *** [smp] Error 2
make[1]: Leaving directory `/tmp/install/otp_src_R16B03-1/erts'
make: *** [emulator] Error 2
--
Valentino Volonghi
More information about the erlang-questions
mailing list