-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Tier 1 Support for x86_64-solaris #7151
Comments
Out of curiosity, I'm currently trying to bring zig up on an Illumos system using OmniOS CE (in a VM). I'm at the point that all that's left to do is write up the required variables/structures in Here's the process I used to setup the system for testing:
diff --git a/src/stage1/target.cpp b/src/stage1/target.cpp
index 7e66d42c4..57cc0253d 100644
--- a/src/stage1/target.cpp
+++ b/src/stage1/target.cpp
@@ -667,6 +667,7 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
case OsWASI:
case OsHaiku:
case OsEmscripten:
+ case OsSolaris:
switch (id) {
case CIntTypeShort:
case CIntTypeUShort:
@@ -723,7 +724,6 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
case OsCloudABI:
case OsKFreeBSD:
case OsLv2:
- case OsSolaris:
case OsZOS:
case OsMinix:
case OsRTEMS: |
I understand that there's a specific issue for Illumos (#7152), but since lld doesn't discern between the two I think I'll just stick to "Solaris" as a whole. IIRC there's almost no low-level breaking changes between Illumos and Solaris now. |
Illumos systems are very strange on their own, as they're a mix of Linux, BSD and old-school Unix features, along with some home-grown stuff as well. I'm just gonna assume we want everything, a la |
I've worked on this a bit more and I've gotten the compiler to link, but that's about all it can do. Libdir detection doesn't work, and you have to manually specify to link against libc to get any sort of meaningful progress. The furthest I've gotten is by running |
Worked some more on this and updated my fork (under the branch solarish-port). Now most things work, but there's still some bugs. It seems that I'm running into a race issue when using |
https://www.oracle.com/solaris/
The text was updated successfully, but these errors were encountered: