<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Please keep the discussion on the list, thank you.<br><br>-- <div>Anthony Ramine</div></div><div><br>Le 15 oct. 2013 à 20:40, Maruthavanan Subbarayan <<a href="mailto:maruthavanan_s@hotmail.com">maruthavanan_s@hotmail.com</a>> a écrit :<br><br></div><blockquote type="cite"><div>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">HI,<div><br></div><div>Since after I removed that the same did not occur, but for sure it occurred when I included that. The circular macro should be defined in a header file.</div><div><br></div><div>One more note it just declaring the macro would not reproduce this, the declared macro should be used somewhere in the code like below.</div><div><br></div><div>t.hrl</div><div>==================</div><div>-define(MACRO,[[]++?MACRO]).</div><div><br></div><div>heap_error.erl</div><div>===============</div><div><div>-module(heap_error).</div><div>-compile(export_all).</div><div><br></div><div>-include("t.hrl").</div><div><br></div><div>%-define(MACRO,["test",?MACRO]).</div><div><br></div><div><br></div><div>function_name()-></div><div> A=?MACRO,</div><div> ok.</div></div><div><br><div>> Subject: Re: [erlang-questions] Crash during compilation<br>> From: <a href="mailto:n.oxyde@gmail.com">n.oxyde@gmail.com</a><br>> Date: Tue, 15 Oct 2013 18:55:19 +0200<br>> CC: <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> To: <a href="mailto:maruthavanan_s@hotmail.com">maruthavanan_s@hotmail.com</a><br>> <br>> Are you sure of that?<br>> <br>> This should error out with "circular macro 'MACRO'".<br>> <br>> -- <br>> Anthony Ramine<br>> <br>> Le 15 oct. 2013 à 10:40, Maruthavanan Subbarayan <<a href="mailto:maruthavanan_s@hotmail.com">maruthavanan_s@hotmail.com</a>> a écrit :<br>> <br>> > Hi,<br>> > <br>> > I think I did an accidental typo that caused because of copy paste. Took almost 6 hours of mine :) Learnt copy paste bad very bad sometimes :)<br>> > <br>> > Just to let community know, I was trying to do something like below.<br>> > <br>> > -define(MACRO, [?MACRO]).<br>> > <br>> > Thanks,<br>> > Marutha<br>> > <br>> > > Subject: Re: [erlang-questions] Crash during compilation<br>> > > From: <a href="mailto:n.oxyde@gmail.com">n.oxyde@gmail.com</a><br>> > > Date: Tue, 15 Oct 2013 10:25:02 +0200<br>> > > CC: <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> > > To: <a href="mailto:maruthavanan_s@hotmail.com">maruthavanan_s@hotmail.com</a><br>> > > <br>> > > Hello,<br>> > > <br>> > > Is your module quite large and uses a lot of binary patterns?<br>> > > <br>> > > Try erlc +time.<br>> > > <br>> > > -- <br>> > > Anthony Ramine<br>> > > <br>> > > Le 15 oct. 2013 à 09:27, Maruthavanan Subbarayan <<a href="mailto:maruthavanan_s@hotmail.com">maruthavanan_s@hotmail.com</a>> a écrit :<br>> > > <br>> > > > Hi,<br>> > > > <br>> > > > I am receiving and crash dump during compilation of my code, stating could not allocate memory and takes a lot time. I am able to compile other bigger modules in same environment. I passed and "-v" to put verbose of "erlc" but I could not see any output.<br>> > > > <br>> > > > Slogan: eheap_alloc: Cannot allocate 1098556536 bytes of memory (of type "heap").<br>> > > > System version: Erlang R16B02 (erts-5.10.3) [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]<br>> > > > <br>> > > > I tried 'rebar" as well as "erlc" how can I get more information? I am wondering what area of my code causes heap to grow during compilation? Any ideas?<br>> > > > <br>> > > > One more interesting fact is, one of the modules which was not changed is also facing this problem suddenly. I also tried copying the folder to Erlang-R14B04, and this also had same problem now. How should I proceed further? <br>> > > > <br>> > > > Thanks,<br>> > > > Marutha<br>> > > > _______________________________________________<br>> > > > erlang-questions mailing list<br>> > > > <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> > > > <a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br>> > ><br>> <br></div></div> </div>
</div></blockquote></body></html>