I compile my LFE compiler written in straight Erlang on R12B-0 where it runs as expected. However when I then run it on R12B-2 without recompiling it I get the following error:<br><br>=ERROR REPORT==== 21-Apr-2008::22:41:23 ===<br>
beam/beam_load.c(1897): Error loading function sys_core_fold:bsm_could_match_binary/1: op bif1_body: bsd:<br>  not a BIF: import table index 56<br><br><br>=ERROR REPORT==== 21-Apr-2008::22:41:23 ===<br>Loading of c:/Documents and Settings/GameStudio/My Documents/Erlang/Lisp Flavoured Erlang/sys_core_fold.beam failed: badfile<br>
** exception error: no match of right hand side value <br>                    {error,<br>                     [{".",<br>                       [{none,compile,<br>                         {crash,core_fold_module,<br>
                          {undef,<br>                           [{sys_core_fold,module,<br>                             [{c_module,[],<br>                               {c_literal,[1],test_let},<br>                               [{c_fname,[1],a,2},<br>
                                {c_fname,[1],b,2},<br>                                {c_fname,[1],c,...},<br>                                {c_fname,[...],...},<br>                                {c_fname,...},<br>                                {...}|...],<br>
                               [],<br>                               [{{c_fname,[...],...},{c_fun,...}},<br>                                {{c_fname,...},{...}},<br>                                {{...},...},<br>                                {...}|...]},<br>
                              [binary,from_core,return_errors]]},<br>                            {compile,core_fold_module,1},<br>                            {compile,'-internal_comp/4-anonymous-1-',2},<br>                            {compile,fold_comp,3},<br>
                            {compile,internal_comp,4},<br>                            {compile,internal,3}]}}}]}],<br>                     []}<br>     in function  lfe_comp:do_return/3<br><br>The second error report comes from my compiler because I don't check for error returns. :-) My LFE compiler generates Core Erlang code.<br>
<br>Robert<br><br>