DragonFlyBSD / DPorts

The dedicated application build system for DragonFly BSD
Other
89 stars 46 forks source link

CoreCLR port #197

Closed martenlindblad closed 11 months ago

martenlindblad commented 6 years ago

OpenBSD, NetBSD and FreeBSD has a port of the Microsoft CoreCLR and CoreFX, would be a welcome addition to just running Mono. I got the build running with defaulting the values to FreeBSD, but it fails on the requirement of libunwind, which fails on x86_64/setcontext.S:54:2: error: #error Port me. FreeBSD has a working pkg of libunwind for inspiration.

bserrao commented 6 years ago

+1 on this, some projects are moving from mono to dotnet.core.

@martenlindblad, how did you managed to get that far on the building? I've changed some values on build.sh and CMakeLists.txt but ...

Unable to determine build platform ~/git/coreclr Failed to generate CoreCLR component build project!

martenlindblad commented 6 years ago

I basically followed the path and adding DragonflyBSD as a copy of the FreeBSD instructions. I guess I should look into this more, but I have no time this month.

bserrao commented 6 years ago

I've managed to go a bit further after aplying some patches but now i'm stuck again...

setjmp/longjmp.c: In function '_longjmp':
setjmp/longjmp.c:74:20: error: 'JB_SP' undeclared (first use in this function)
coredump/_UCD_create.c:217:13: error: unknown type name 'Elf32_Nhdr'
             Elf32_Nhdr *note_hdr, *note_end;

About the second i've found that FreeBSD, NetBSD and OpenBSD already have a fix for it. FreeBSD Bug 225302 This a base component i think, so i'm not sure how to fix it

tuxillo commented 2 years ago

@bserrao @martenlindblad was there any other progress on this one?

daftaupe commented 11 months ago

@tuxillo looks like the patch mentionned has been merged in our tree https://bugs.dragonflybsd.org/issues/3130

I'm going to close that one, feel free to reopen it if you're still working on this folks.