question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to build this repo from scratch on Banana Unix?

See original GitHub issue

Suppose there exists a Banana Unix OS (e.g. some BSD or Solaris like).

On such an OS, how do we build this project fully offline, such that it does not rely on anything from the internet during the build?

git clone https://github.com/dotnet/cli
cli/build.sh <what goes here?>

Are there required components to build CLI project, which haven’t been open sourced yet to accomplish this task? If there are, can we expect them to land on GitHub soon?


Before dotnet/cli (in dnx days), we were able to build most of the CoreFX assemblies on FreeBSD and even configured the test runner to work for the successfully built assemblies. Now CLI is a required dependency, we can’t build it on FreeBSD nor NetBSD.

Refs: https://github.com/dotnet/corefx/issues/1626, https://github.com/dotnet/coreclr/issues/1633 and https://github.com/dotnet/coreclr/issues/3178

cc @ghuntley, @josteink, @krytarowski and @akoeplinger

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Sapana-Khemkarcommented, Jun 1, 2023

I am currently working on dotnet/runtime#55803 to add .NET support to Haiku and facing the same problem.

The process to cross-compile CoreCLR (dotnet/runtime) is quite straightforward, but it is not for this repo.

I did manage to get a working .NET SDK on Haiku, but it involves manually editing the RID (from linux-x64 to haiku-x64) in the generated artifact and changing a few version numbers in Microsoft.NETCoreSdk.BundledVersions.props.

What is the correct way to cross-compile this repo? It is not clearly documented in the developer guide.

@trungnt2910 Here is blog describing how we cross build dotnet on x86 for power and here are scripts uploaded. Check if this helps you

0reactions
trungnt2910commented, Jun 5, 2023

There is also a scarcely documented source-build mode, but this mode does not seem to create enough files for the SDK to function. It seems to be related to the source build feature, which currently only supports Linux.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Hardcore — Creating a Repo From Scratch
Let's create a directory for the objects at .git\objects and a directory for the references (in short: refs) at .git\refs (on UNIX -based ......
Read more >
Getting Started with M2 Zero
1 Load your first Android image on M2 Zero; 2.1. · 2 Prepare to develop; 2.1. · 3 Install Linux Image on M2...
Read more >
[BPI-R64] Kernel-Development
Then, to make the kernel, use; substituting your cross compiler;: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- deb-pkg Note: if you want to ...
Read more >
A Visual Guide to Git Internals — Objects, Branches, and ...
A Visual Guide to Git Internals — Objects, Branches, and How to Create a Repo From Scratch. Omer Rosenbaum.
Read more >
SFU Architecture I Class Review Unix Programming Tools ...
Start by going to the GitHub page for the tutorial repository located here: (https://github.com/CMPT-300-SFU/git-tutorial).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found