Erlang on FreeBSD/amd64

Benno Rice benno@REDACTED
Fri Feb 4 01:33:42 CET 2005


I've recently been looking at using erlang for a project I'm working on 
but ran into a bit of a roadblock when I discovered that erlang hasn't 
been ported to FreeBSD/amd64 yet.

I've tried building it and also generated some patches (attached) which 
should sort out some floating point exception issues (otherwise the 
build hangs in configure), but the build runs into some problems trying 
to compile erlang code with erlc.  Errors I've seen are shown below 
along with some of the files they were seen in.  I got the list by 
removing the named files from the build as I found them, so this may 
cause problems in and of itself and I wasn't able to proceed in the 
build eventually due to yeccparse being one of the affected files.  As 
well as the three shown below, I've also seen erlc catch bus error 
signals.  There appears to be some level of unrepeatability as can be 
seen by the fact that one of the files (cerl_to_icode.erl) saw two 
different types of error.

Can anyone point me at a good place to start to track down and fix these 
problems?  My main issue is one of not being at all familiar with the 
erlang/OTP codebase.  I'm using the most recent FreeBSD port which 
includes a few other patches.  These can be obtained from a FreeBSD 
installation or from:

Many thanks,

Crash type 1 (most common):
erlc -W   +debug_info -I../include -o../ebin application_controller.erl

=ERROR REPORT==== 4-Feb-2005::10:57:39 ===
Error in process <0.22.0> with exit value: 

./application_controller.erl:none: internal error in parse_module;
crash reason: {{badrecord,epp},[{epp,scan_toks,2}]}

Crash type 2 (unfortunately I accidentally deleted the dump):
erlc -W   +debug_info +nowarn_shadow_vars -o../ebin cerl_to_icode.erl

Crash dump was written to: erl_crash.dump
eheap_alloc: Cannot allocate 1880844493888946480 bytes of memory (of 
type "heap_frag").

Crash type 3:
erlc -W   +debug_info +nowarn_shadow_vars -o../ebin hipe_icode_pp.erl
gmake[3]: *** [../ebin/hipe_icode_pp.beam] Segmentation fault (core dumped)

The files that have seen crash type 1 are:

The files that have seen crash type 2 are:

The files that have seen crash type 3 are:

Benno Rice
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
URL: <>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-erts_emulator_sys_unix_sys_float.c
URL: <>

More information about the erlang-questions mailing list