Skip to content

Compiling and running the compiler in ubuntu #5636

Closed

Description

@AviAvni

After compiling this repository on linux with buildfromsource.sh
Unable to run the fsc.exe or fsi.exe

Repro steps

git clone https://github.com/Microsoft/visualfsharp.git
cd visualfsharp
src/buildfromsource.sh
dotnet BuildFromSource/Debug/bin/netstandard2.0/fsc.exe

Expected behavior

Compiler run successfuly

Actual behavior

error about missing fsc.runtimeconfig.json

Known workarounds

Copy the fsc.runtimeconfig.json, fsc.deps.json, fsi.runtimeconfig.json and fsi.deps.json from the sdk folder

  • Operating system: ubuntu 18.04
  • Branch: master
  • CoreCLR

Activity

  1. added
    Area-SetupAndDelivery
    on Sep 13, 2018
  2. added this to the Core 3.0 milestone on Sep 13, 2018
  3. cartermp commented on Sep 13, 2018

    @cartermp
    Contributor
  4. KevinRansom commented on Sep 13, 2018

    @KevinRansom
    Contributor

    @AviAvni build from source is intended to build a nuget package, that is an input into the redgate build process. So it's not really intended to work without the stated workarounds.

    However, @brettfo is working on making the product build build correctly with nnet sdk project files, and that is indeed intended to support the scenario you tried. Build and then run and test from the bin directory.

    I hope this helps.

    Kevin

  5. AviAvni commented on Sep 13, 2018

    @AviAvni
    ContributorAuthor

    @KevinRansom Thanks. I'm doing this as part of preparing to my workshop about contributing to the compiler at openfsharp conference. I'm ok with using Windows and VS. But I think some attendees will have Linux or Mac so I wanted to see how I can debug the compiler on linux too

  6. KevinRansom commented on Sep 13, 2018

    @KevinRansom
    Contributor

    Nice … good luck :-)

  7. KevinRansom commented on Sep 13, 2018

    @KevinRansom
    Contributor

    Your workaround should work fine.

  8. modified the milestones: Core 3.0, 16.0 on Sep 15, 2018
  9. modified the milestones: 16.0, 16.1 on Feb 21, 2019
  10. modified the milestones: 16.1, 16.2 on Apr 23, 2019
  11. modified the milestones: 16.2, Backlog on Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-SetupAndDeliveryContributor Pain

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions