[possible bug] erlc +native crash

Thierry Mallard thierry.mallard@REDACTED
Sat Oct 26 14:56:44 CEST 2002


Hi there,

On R9B (compiled and run under mandrake 9 system), erlc crashes when
trying to compile a simple example (see below) with the +native option :

-=-=-=-
[shaman@REDACTED shaman]$ erlc +native foofact.erl
./foofact.erl:none: internal error in native_compile;
crash reason: {undef,[{hipe,compile,
                            [foofact,
                             <<70,79,82,49,0,0,1,160,66,69,65,77,65,116,111,109,0,0,0,30,0,0,0,3,7,102,111,111,102,97,99,116,5,102,97,99,116,111,11,109,111,100,117,108,101,95,105,110,102,111,0,0,67,111,100,101,0,0,0,85,0,0,0,16,0,0,0,0,0,0,0,64,0,0,0,8,0,0,0,3,1,16,2,18,34,16,1,32,43,53,3,1,64,17,3,19,1,48,12,16,16,64,3,4,28,5,4,17,3,4,16,37,29,5,4,3,3,18,16,19,1,64,2,18,50,0,1,80,64,2,3,19,1,96,2,18,50,16,1,112,64,2,3,19,3,0,0,0,83,116,114,84,0,0,0,0,73,109,112,84,0,0,0,4,0,0,0,0,69,120,112,84,0,0,0,40,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,7,0,0,0,3,0,0,0,0,0,0,0,5,0,0,0,2,0,0,0,1,0,0,0,2,76,111,99,84,0,0,0,4,0,0,0,0,65,116,116,114,0,0,0,40,131,108,0,0,0,1,104,2,100,0,3,118,115,110,108,0,0,0,1,110,16,0,170,5,13,33,151,195,124,140,96,249,69,206,232,34,92,69,106,106,67,73,110,102,0,0,0,132,131,108,0,0,0,3,104,2,100,0,7,111,112,116,105,111,110,115,108,0,0,0,4,100,0,2,118,51,100,0,6,110,97,116,105,118,101,104,2,100,0,6,111,117,116,100,105,114,107,0,12,47,104,111,109,101,47,115,104,97,109,97,110,104,2,100,0,3,99,119,100,107,0,12,47,104,111,109,101,47,115,104,97,109,97,110,106,104,2,100,0,7,118,101,114,115,105,111,110,107,0,3,52,46,49,104,2,100,0,4,116,105,109,101,104,6,98,0,0,7,210,97,10,97,26,97,12,97,52,97,17,106,65,98,115,116,0,0,0,0>>,
                             []]},
                      {compile,native_compile_1,1},
                      {compile,'-internal_comp/4-anonymous-1-',2},
                      {compile,fold_comp,3},
                      {compile,internal_comp,4},
                      {compile,internal,3}]}
-=-=-

Mickael Remond confirmed this behaviour on his system, and noticed that
within the erl shell, the c(foofact, [native]). command works ok.


-- 
Thierry Mallard
http://vawis.net




More information about the erlang-questions mailing list