Skip to content
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

Simple build script #49

Closed
mingodad opened this issue Dec 24, 2021 · 4 comments
Closed

Simple build script #49

mingodad opened this issue Dec 24, 2021 · 4 comments
Assignees

Comments

@mingodad
Copy link

Trying to build this project on Linux I get this error message:

make
dotnet build
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
  * You intended to execute a .NET program:
      The application 'build' does not exist.
  * You intended to execute a .NET SDK command:
      It was not possible to find any installed .NET SDKs.
      Install a .NET SDK from:
        https://aka.ms/dotnet-download
Makefile:38: recipe for target 'cito.exe' failed
make: *** [cito.exe] Error 145

But using the simple shell script shown bellow it builds fine, I suggest add it or something like it as alternative build system (also could be a batch file for windows).

csc /out:Cito.exe /t:exe \
	AssemblyInfo.cs \
	CiDocLexer.cs \
	CiDocParser.cs \
	CiException.cs \
	CiLexer.cs \
	CiParser.cs \
	CiResolver.cs \
	CiTo.cs \
	CiTree.cs \
	GenBase.cs \
	GenCCpp.cs \
	GenC.cs \
	GenCl.cs \
	GenCpp.cs \
	GenCs.cs \
	GenJava.cs \
	GenJs.cs \
	GenPy.cs \
	GenPySwift.cs \
	GenSwift.cs \
	GenTs.cs \
	GenTyped.cs
@pfusik
Copy link
Collaborator

pfusik commented Dec 24, 2021

What is your setup:

  • Which .NET SDK do you have?
  • Which package does csc come from?

@pfusik pfusik self-assigned this Dec 24, 2021
@mingodad
Copy link
Author

I only have this on my /etc/apt/sources.list.d/mono-official-vs.list

deb https://download.mono-project.com/repo/ubuntu vs-bionic main

@pfusik
Copy link
Collaborator

pfusik commented Dec 24, 2021

Last time I checked Mono couldn't build cito because of no support for new C#. I will re-check it and enable Mono as an alternative build system. Mono is already used for the C# backend tests on Linux.

@pfusik
Copy link
Collaborator

pfusik commented Jul 21, 2022

Mono's csc is Microsoft (R) Visual C# Compiler. The other Mono's compilers don't handle modern C#.

You can simply build using .NET SDK. That works on Windows/macOS/Linux.

@pfusik pfusik closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants