[possible bug] erlc +native crash

Thierry Mallard thierry.mallard@REDACTED
Sun Oct 27 11:33:28 CET 2002


On Sat, Oct 26, 2002 at 08:21:21PM +0200, Happi wrote:
> It looks like you don't have a HiPE enabled system.

HiPE is enabled -which is the default behaviour in R9B it seems-

Also, native compilation seems ok within the erl shell itself (see my
previous mail). It's only using the erlc command that crashes. A quick
strace indicates that erlc execs a ecc command, which may be the faulty
one (?). 

Here's a more complete screendump :

-=-=-
[shaman@REDACTED shaman]$ erl 
Erlang (BEAM) emulator version 5.2 [source] [hipe]

Eshell V5.2  (abort with ^G)
1> halt().
[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,27,97,10,97,17,97,24,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}]}

[shaman@REDACTED shaman]$ strace -e trace=process erlc +native foofact.erl
execve("/usr/bin/erlc", ["erlc", "+native", "foofact.erl"], [/* 44 vars
*/]) = 0
execve("/usr/local/bin/ecc", ["ecc", "+native", "foofact.erl"], [/* 44
vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/local/bin/ecc", ["ecc", "+native", "foofact.erl"], [/* 44
vars */]) = -1 ENOENT (No such file or directory)
execve("/bin/ecc", ["ecc", "+native", "foofact.erl"], [/* 44 vars */]) =
-1 ENOENT (No such file or directory)
execve("/usr/bin/ecc", ["ecc", "+native", "foofact.erl"], [/* 44 vars
*/]) = 0
execve("/usr/lib/erlang/erts-5.2/bin/beam_evm",
["/usr/lib/erlang/erts-5.2/bin/bea"..., "/usr/bin/ecc", "+native",
"foofact.erl"], [/* 44 vars */]) = 0
./foofact.erl:none: internal error in native_compile;
[...]
-=-=-


With best regards,

-- 
Thierry Mallard
http://vawis.net




More information about the erlang-questions mailing list