yupp, I would say that's exactly it. Thanks for this fix :-)
I have integrated it and I'm now halfway through with integrating your
parser, too, so I would suggest to envisage a next release in the next few
----- Original Message -----
From: "Andrei de A. Formiga" <archimedes_siracusa@...>
Sent: Saturday, July 10, 2004 11:49 PM
Subject: [eclipsefp-develop] Linux/unix bug
> Hi Leif,
> I will be using linux much more often now, and so I
> installed eclipse and the plugin. Then ghc complained
> with the known error (reported in the forums):
> ghc-6.2.1: can't apply -o to multiple source files
> Usage: For basic information, try the `--help' option.
> I tracked down the problem here. In the
> GhcCompiler.buildCommandLine method, there is this
> block of code:
> cmdLine.add( getCompilerExecutable() );
> cmdLine.add( "--make" );
> cmdLine.add( constructLibPath( haskellProject ) );
> but then, constructLibPath returns an empty string.
> When this empty string is included in the array
> returned by GhcCompiler.buildCommandLine, ghc thinks
> there are more than one source file in the command
> line, and complains. I've commented this line and the
> error was gone.
> However, in the linking phase it complained about
> not being able to find 'ld'. So I looked into
> AbstractCompiler.createProcess. This is the call to
> exec at the end of the method:
> return Runtime.getRuntime().exec( cmdLine, new String[
> 0 ], workDir );
> which calls ghc with an empty environment, so it
> was not able to find ld. I changed the second
> parameter to null (inherit the environment from parent
> process) and everything worked.
> So, I guess this solves the problem. Maybe adding a
> check to see if constructLibPath returns an empty
> string and then only adding to cmdLine if it's not...
> well, it's your call :)
> s, Andrei de A. Formiga
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit http://www.blackhat.com
> eclipsefp-develop mailing list