-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add support for Solaris #2093
Comments
I can provide access to a SmartOS smatzone if needed. |
Solaris will definitely be supported. It's just not a priority for me right now, since it's not an actively developed OS anymore. If someone else does it, it'd be great, but I can't spend time on it before V 1.0. |
Too bad, I wanted to re-write my server software in V. SmartOS is very actively developed on a two week release schedule. |
Is it fully compatible with Solaris? All right, I'll spend some time on it in a couple of days. It shouldn't take much time, the resulting C is very cross-platform these days. |
SmartOS is Solaris, it came from OpenSolaris. It's a far superior OS for servers than anything else and deserves a lean and mean language like V. |
Wow, didn't know SmartOS is being so much actively developed (yeah, I expected somewhat slow development or rather just maintenance like OpenIndiana or Illumos). Btw. have you ever heard of OmniOS? I didn't and feel rather ashamed for that. |
I am familiar with most distros based on the Illumos project including OmniOS. SmartOS is a cloud server OS in that you can have zones and hardware VMs. https://www.joyent.com/smartos SmartOS is unfortunately very underrated and because of that things like dotnet core, D and now V are not readily available. |
@fantassin did you try to build the C version of V on this OS ? with gcc ? what is (are) the error(s) ? |
[root@b8280c97-9a64-405a-b843-dfe6677b2de3 ~/v]# ./v examples/hello_world.v |
Yes, that's what happens on unsupported platforms. V thinks it's macOS :) Should handle it better and show "your platform is not supported". |
@fantassin Oh I see, I thought that V itself wasn't able to compile itself or something.. |
[root@b8280c97-9a64-405a-b843-dfe6677b2de3 ~/v]# gcc --version |
@fantassin in about an hour I'll push a naive two-line fix that might just make it work :) |
"i86pc i386 i86pc" |
@nsauzede it doesn't matter, Solaris is not supported. |
@medvednikov I'll owe you a beer, or a 6-pack! |
@nsauzede It's 64-bit OS. It runs bare metal in a smart zone (FreeBSD jail). |
@fantassin done, can you try now? git pull |
Hmm, I did a clone, still no luck. [root@b8280c97-9a64-405a-b843-dfe6677b2de3 ~/v]# git status nothing to commit, working tree clean |
try again please @fantassin |
still failing ... [root@b8280c97-9a64-405a-b843-dfe6677b2de3 ~/v]# git pull |
strange ok, I'll try it in a VM |
I'm using Perhaps it doesn't work on your system? Can you try
Build it with gcc. |
@fantassin can you paste the result of |
@medvednikov This will do it; if (v->pref->build_mode != main__BuildMode_build_module &&
|
[root@b8280c97-9a64-405a-b843-dfe6677b2de3 ~/v]# ./v hello_world.v |
Cool! |
YAY! thanks so much !!! [root@b8280c97-9a64-405a-b843-dfe6677b2de3 ~/v]# ./v -cflags '-lsocket' examples/news_fetcher.v |
I've pushed a fix. |
Just for the record, you use the correct define; [root@b8280c97-9a64-405a-b843-dfe6677b2de3 ~/v]# cat main.c int main() { |
Thanks, good to know ;) |
@medvednikov do not forget to put the supported OS logo on vlang.io frontpage... |
Maybe I am little late here, but I want to clarify something: |
@AndWac |
If you are running V under SmartOS it most probably supports all illumos based distributions (on x64). An interesting thing would be to create an ips package for it. |
1 similar comment
If you are running V under SmartOS it most probably supports all illumos based distributions (on x64). An interesting thing would be to create an ips package for it. |
Please add Solaris as a supported platform.
The text was updated successfully, but these errors were encountered: