[erlang-questions] compile erlang source code error [obj/x86_64-unknown-linux-gnu/opt/smp/inet_drv.o]

Sverker Eriksson sverker.eriksson@REDACTED
Thu Sep 10 11:41:24 CEST 2015



On 09/10/2015 06:54 AM, Fredo Lee wrote:
> make[1]: Entering directory `/home/users/tianwanli01/otp_src_18.0/erts'
> make[2]: Entering directory 
> `/home/users/tianwanli01/otp_src_18.0/erts/emulator'
>  MAKE   opt
> make[3]: Entering directory 
> `/home/users/tianwanli01/otp_src_18.0/erts/emulator'
>  GEN    x86_64-unknown-linux-gnu/gen_git_version.mk 
> <http://gen_git_version.mk>
>  CC     obj/x86_64-unknown-linux-gnu/opt/smp/inet_drv.o
> drivers/common/inet_drv.c: In function `inet_init':
> drivers/common/inet_drv.c:4031: error: enumerator value for 
> `compile_time_assert__' not integer constant
>
:


The error is a bit cryptic, but looking at line 4031 we find this:

     /* Check the size of SCTP AssocID -- currently both this driver and the
        Erlang part require 32 bit: */
     ERTS_CT_ASSERT(sizeof(sctp_assoc_t)==ASSOC_ID_LEN);


This is a presumption about type 'sctp_assoc_t' being 32 bits long,
which is for some reason not true in your build environment.

A patch to fix this would need the add a more flexible treatment of
type 'sctp_assoc_t' in both C and Erlang code.


/Sverker, Erlang/OTP Ericsson


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150910/62af9b7c/attachment.htm>


More information about the erlang-questions mailing list