-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update ipif-posix.c #1
Conversation
struct missing.
Thanks Paoloo. It's been a while since I worked on that part of the code. I'm not sure how it got damaged, nor how you found it. I'm also surprised the code built yesterday with that in it. Are you compiling on Linux or one of the BSDs? |
First of all, thank you for your amazing work. I aways loved Inferno OS/plan9 and LUA, know I have both of them together. |
Paoloo, Your welcome. I'm happy that there's some interest. The idea became an obsession to me a little over a year ago. The fact that you're on Linux explains a lot. That file was probably not built or used on OSX. Until I convert the sources completely over to libuv the porting process will be a bit of a hack. Each platform has a specific set of files under it's emulation config. If you give me a day or so I think I can modify the premake files and the platform dependent code to build under Linux. I'll make some notes as to what needs to be done so that each platform can use them. Any suggestions about what to do about portability fixes until libuv is fully integrated? I hate to do a lot of portability hacks before then. Maybe OSX and Linux. Stand by and I'll check the code out on my Ubuntu server. |
Paoloo .. I read the sources more closely for the patched file. On OSX the relevant code was #ifdef 'd out. That's why it compiled on OSX. |
Nice, I'll wait your rewrite the premake and, after that, I'll work over it.
Building 32 bits(in a 32 bits ubuntu server) gives:
After a little research, I've found out that the problem is the way gcc/clang deals with division by zero protection... It optimizes the original asm inside Linux/386/include/fpuctl.h to avoid division by zero. The solution is use the "volatile" directive on Linux/386/include/fpuctl.h and add (: “=a” (fcr)) as return. |
Thanks. It's probably related to having the wrong build options. Hang in On Fri, Jun 12, 2015 at 8:52 AM, Paolo Oliveira notifications@github.com
|
struct missing.