-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSB6006: "RunFsc.sh" exited with code 134 #460
Comments
Currently type providers need the fsc to defined in the project file. Please see the example project files (*.fsproj) from https://github.com/fsprojects/SQLProvider/tree/master/tests/SqlProvider.Core.Tests |
After copied the sample into my fsproj, I got an error:
And here's my fsproj at the moment (no osx because i don't have one.)
|
Could you provide the full build log, e.g. using The response file argument is not being handed to the F# compiler correctly, this:
is wrong and should be
or
But I don't understand where that is being generated, it may be a mistake in FSharp.Build.dll on Linux cc @KevinRansom |
Here's the detailed output. https://gist.github.com/ibnuda/30e3d113133d0b165d6e572228a9a2b0 |
While in Windows, still has the same error:
And here's the gist of windows build. |
If you clone this repo, can you build the example or does it fail also? |
Cloned this repo, and ran
Sorry for using many machines. |
@dsyme, I created test Ubuntu machine to Azure, and this is reproducable.
Trying to mount a link to this Postgers-folder:
and now the path
|
@ibnuda how did you get error with Windows? Also Arch machine error seems to be different. |
@ibnuda on Ubuntu:
.metaproj failing is MSBuild error on Ubuntu. It can be avoided by running If project level fails, try this:
...at least the error message probably changes to the next one... ;-) |
So ... that doesn't look like it's running the coreclr F# compiler. It looks like it's using: /usr/bin/fsharpc as it's compiler. I'm guessing somewhere in the project or targets for your project or perhaps environment there is something that sets $(FscToolExe) or $(FscToolPath) to that location. It is my guess ... and I can't confirm it right now ... that the F# 4.0 compiler does not support response files. If you can get an F# 4.1 compiler that should work better, or use the one shipped with dotnet cli. |
Thread at dotnet/fsharp#3303 recommends /usr/bin/fsharpc for linux: <PropertyGroup Condition="'$(IsLinux)' == 'true'">
<FscToolPath>/usr/bin</FscToolPath>
<FscToolExe>fsharpc</FscToolExe>
</PropertyGroup> At least in my Ubuntu 17 which I installed 2 days ago, it seems to be 4.1:
|
Well I don't have much to say about the recommendation. Linux repro: https://gist.github.com/ibnuda/30e3d113133d0b165d6e572228a9a2b0#file-outputofbuild-txt-L3263
Windows repro:https://gist.github.com/ibnuda/1e74dae386943ea56e6a0baad50c5950#file-outputbuildwindows-txt-L2156
We try to make sure that the compiler we ship with the dotnetsdk in the dotnet cli is capable of using the settings and techniques we specify in the dotnet sdk. If I was making a recommendation it would be use the shipped compiler, it's likely to be faster, better and with more bugs fixed. |
And debian's error:
|
@ibnuda works on my machine. Although it seems that I have more recent version of .NET:
My fsc.exe is in place:
|
I've added
While the output of fsharpc version is
In debian machine, still the same error. The version of fsharp is:
And sorry, I can't report the version of fsharp in windows machine at the moment. Next week, I promise. |
Now, the last problem is same as this. |
@Thorium, here's the version of dotnetcore and fsharp compiler in the windows system, and upgraded to SQLProvider version 1.1.15 as suggested in #461, still the same error.
If nobody could reproduce this issue, I'll close it. |
Status is:
I'm still happy to help, but what is "the same error" as this thread has a lot of different errors? :-) |
Thank you very much for your helps so far, Thorium. But considering a few other considerations, I have to drop my project. (My colleagues uses PHP) |
Description
Unable to compile a dotnet core 2.0 project which has SQLProvider as a dependency.
Repro steps
dotnet new console -lang f#
dotnet add package SQLProvider
dotnet restore
dotnet build
Expected behavior
Project compiled.
Actual behavior
Known workarounds
I don't know.
Related information
The text was updated successfully, but these errors were encountered: