Erlang on FreeBSD/amd64
Benno Rice
benno@REDACTED
Thu Feb 10 01:59:37 CET 2005
(Originally posted on erlang-questions, apologies to those who've seen
it twice)
Hi,
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:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/erlang/files/
I'm trying to build this on FreeBSD/amd64 6-CURRENT.
Many thanks,
Benno.
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:
{{badrecord,epp},[{epp,scan_toks,2}]}
./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:
lib/kernel/src/application_controller.erl
lib/parsetools/src/yeccparser.erl
lib/asn1/src/asn1ct_check.erl
lib/asn1/src/asn1rt_per.erl
lib/hipe/cerl/cerl_to_icode.erl
lib/hipe/cerl/cerl_cconv.erl
lib/hipe/cerl/cerl_messagean.erl
lib/hipe/cerl/erl_bif_types.erl
lib/hipe/cerl/cerl_closurean.erl
lib/hipe/icode/hipe_beam_to_icode.erl
lib/hipe/icode/hipe_icode_primops.erl
lib/hipe/icode/hipe_icode_type.erl
The files that have seen crash type 2 are:
lib/hipe/cerl/cerl_to_icode.erl
The files that have seen crash type 3 are:
lib/hipe/icode/hipe_icode_pp.erl
--
Benno Rice
benno@REDACTED
http://jeamland.net
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-erts_emulator_sys_unix_sys_float.c
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20050210/718c280c/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-erts_configure.in
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20050210/718c280c/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20050210/718c280c/attachment.bin>
More information about the erlang-bugs
mailing list