!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

323 Members
96 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
12 Jan 2025
@Ericson2314:matrix.orgJohn Ericsonthat would be fantastic23:40:52
@Ericson2314:matrix.orgJohn Ericsonin general, if you did it once before, and we can read the code, I think we can "nixify" and merge it in nixpkgs really quick23:41:20
@artemis:arty.chatartemis The way I did it basically was I used gentoo's crossdev tool to build a gcc targeting illumos (took a few tweaks to the gcc config to get it to work, right). Then I bundled up a ton of .so files I ripped off a real system and dropped them into the lib folder so linking against them would work. After that I was able to crossbuild OpenSSL (needed some build system fixes) and its dependencies, maybe a few other things, and with that environment I cross compiled a rust program and copied it over and it worked 23:43:35
@artemis:arty.chatartemis * The way I did it basically was I used gentoo's crossdev tool to build a gcc targeting illumos (took a few tweaks to the gcc config to get it to work right). Then I bundled up a ton of .so files I ripped off a real system and dropped them into the lib folder so linking against them would work. After that I was able to crossbuild OpenSSL (needed some build system fixes) and its dependencies, maybe a few other things, and with that environment I cross compiled a rust program and copied it over and it worked 23:44:05
@artemis:arty.chatartemis So I have an ebuild that uses my balls of .so and puts them in the right place, and also puts the headers where they need to be 23:44:58
@Ericson2314:matrix.orgJohn Ericsonah ok23:45:07
@Ericson2314:matrix.orgJohn Ericsonwhat did end up doing for the linker?23:45:32
@artemis:arty.chatartemis To my surprise the gnu linker just worked 23:45:47
@Ericson2314:matrix.orgJohn Ericsonoh, lol23:45:57
@Ericson2314:matrix.orgJohn Ericsonthat helps23:45:59
@artemis:arty.chatartemis Despite the fact that people had told me only the illumos linker can link for illumos 23:46:08
@Ericson2314:matrix.orgJohn Ericsonheh. Well that's a relief!23:46:30
@artemis:arty.chatartemisDownload illumos-gentoo-overlay.tar.gz23:58:23
@artemis:arty.chatartemis John Ericson ^ 23:58:26

Show newer messages


Back to Room ListRoom Version: 6