For the quickest reply, please use our new Customer Helpdesk and Feedback platform
 
   
 
Compiling broken on Windows?
Posted: 11 May 2007 07:56 PM   [ Ignore ]
Newbie
Rank
Total Posts:  6
Joined  2007-05-01

Unsure if I’m doing something wrong or not, but a file named hello_world.erl with these contents:

-module(hello_world).
-
export([hello/0]).

hello() ->
    
io:format("Hello, World! ~n"). 

Produces this result when compiling with erlc hello_world.erl:

C:\Documents and Settings\IAIAdmin\Desktop\cean_base\erlang\erts-5.5.4\windows\b
in
>erlc.exe hello_world.erl
Compiler 
function compile:compile/3 failed:
{undef,[{compile,compile,
                 
["c:/DOCUME~1/IAIAdmin/Desktop/CEAN_B~1/erlang/ERTS-5~1.4/windows/bin/hello_world",
                  
"c:/DOCUME~1/IAIAdmin/Desktop/CEAN_B~1/erlang/ERTS-5~1.4/windows/bin/hello_world",
                  
{options,[],
                           
"C:\\DOCUME~1\\IAIAdmin\\Desktop\\CEAN_B~1\\erlang\\E
RTS-5~1.4\\windows\\bin"
,
                           
undefined,
                           
[],
                           
1,
                           
false,
                           
999,
                           
[],
                           
[],
                           
"C:\\DOCUME~1\\IAIAdmin\\Desktop\\CEAN_B~1\\erlang\\E
RTS-5~1.4\\windows\\bin"
}]},
        
{erl_compile,compile_file,4},
        
{erl_compile,compile3,3},
        
{erl_compile,compiler_runner,1}]} 

The code compiles fine with the standard Erlang distribution and the resulting beam file runs fine on CEAN.  Am I doing something wrong?

Any help is appreciated.

Thanks,
Matt

Profile
 
 
Posted: 21 May 2007 03:29 PM   [ Ignore ]   [ # 1 ]
Senior Member
Avatar
RankRankRankRank
Total Posts:  118
Joined  2006-11-13

this seems a cean bug on windows
what if you cd into C:\Documents and Settings\IAIAdmin\Desktop\cean_base
and launch erlang\erts-5.5.4\windows\bin\erlc.exe hello_world.erl
?

i will try to find a windows box to test that thing.

Profile
 
 
Posted: 21 May 2007 03:40 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  6
Joined  2007-05-01

Here’s what I get:

C:\DOCUME~1\IAIAdmin\Desktop\CEAN_B~1>erlang\erts-5.5.4\windows\bin\erlc.exe hel
lo_world
.erl
{
"init terminating in do_boot",{'cannot get bootfile','start_clean.boot'}}

Crash dump was written to
erl_crash.dump
init terminating in do_boot 
() 

My apologies for reporting this stuff without providing any fixes - I’m still getting familiar with the language and the implementation.

Cheers,
Matt

Profile
 
 
Posted: 04 June 2007 03:36 PM   [ Ignore ]   [ # 3 ]
Senior Member
Avatar
RankRankRankRank
Total Posts:  118
Joined  2006-11-13

full working compiler will be added in next cean release.

Profile
 
 
Posted: 04 June 2007 04:07 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  6
Joined  2007-05-01

Huzzah!

Very gratefully,
Matt

Profile