[erlang-questions] compile error in LINUX 2.6 : "Fatal, could not get clock_monotonic value!, errno = 22"

Bjorn Gustavsson bjorn@REDACTED
Wed Apr 23 09:47:49 CEST 2008


Nageshwar Bajamahal <nbajamah@REDACTED> writes:

> HI
> 
> I am trying to compile erlang source code on a linux box
> 
> ---------------------- details of my machine --------------------
> Linux lxlogin-3-300 2.6.22.4 #1 SMP Tue Aug 21 17:47:29 PDT 2007 i686 Dual-Core AMD Opteron(tm) Processor 2212 AuthenticAMD GNU/Linux
> 
> ---------------------- compile error -----------------------------------
> erlc -W  +debug_info +warn_obsolete_guard -I/home/nbajamah/utils/otp_src_R12B-2/lib/stdlib/include -o../ebin yecc.erl
> Fatal, could not get clock_monotonic value!, errno = 22
> make[3]: *** [../ebin/yecc.beam] Aborted
> make[3]: Leaving directory `/home/nbajamah/utils/otp_src_R12B-2/lib/parsetools/src'
> make[2]: *** [opt] Error 2
> make[2]: Leaving directory `/home/nbajamah/utils/otp_src_R12B-2/lib/parsetools'
> make[1]: *** [opt] Error 2
> make[1]: Leaving directory `/home/nbajamah/utils/otp_src_R12B-2/lib'
> make: *** [secondary_bootstrap_build] Error 2

Disabling the compensation for sudden changes in system time will probably resolve
this issue. It can be done like this:

erl +c

To make erlc start with the 'erl' with the +c flag, either do

export ERLC_EMULATOR='erl +c'

OR

export ERL_FLAGS='+c'

/Bjorn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list