-
Notifications
You must be signed in to change notification settings - Fork 114
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
Compilation errors for unix port on macOS #8
Comments
For the unix port, I think you have to compile the axtls module, too: https://github.com/micropython/micropython/wiki/Getting-Started |
Also, if I leave out |
Does https://github.com/micropython/micropython/wiki/Getting-Started help in any way? I also noticed that mpconfigport.h contains a lot of flags for apple. Can you learn anything from there? Otherwise, I would suggest that you raise this issue on the forum, somewhere here: https://forum.micropython.org/viewtopic.php?f=3&t=7005 . There must be someone (I think, Damien himself is running on mac), who can suggest a solution. On the other hand, by looking at the errors, I think I know what the problem is: the abs function is missing; you would need fabs for unix. I will push a fix over the weekend. Can you check, whether the error goes away, if you replace abs with MICROPY_FLOAT_C_FUN(abs)? I meant to replace all occurrances, but I missed this one. |
Could you, please, check out the testing branch: https://github.com/v923z/micropython-ulab/tree/testing , and see, whether you can compile for the unix port? Also note the caveats in #9 (comment) . I have also fixed the issue with the extraneous parenthesis. |
I replaced
I'll check out the testing branch now. |
I now get the following error message:
When I run |
I have removed the the test module. |
Just checking, here's how I switched to the
Is that the correct way? This results in the following error:
I then removed the extra parentheses in
This one is a little out of my current skill level, so I haven't tried to correct it myself. Just wondering: is all of this essentially due to the fact that the Mac |
This looks all right.
I have tried to weed out all occurrences. Let me know if you still get this warning.
This extremely strict, but I have removed the if statement, and that should shut up the compiler.
Is this an error, or a warning only?
I think, this is actually an incorrect warning from the compiler, but I initialised
Probably. It is hard for me to comment on this, because I am compiling on linux. But I really appreciate your efforts, and I hope that we can find a solution. In any case, can you, please, check out testing, and try to compile the code again? |
Congratulations, it works! Thanks for taking the time to troubleshoot this, and let me know if you ever need to test Mac compilation again on a test branch. On my end I can check new releases when they come out and let you know if anything looks wrong. |
Fantastic, thanks for the update! I close the issue, then.
If you don't mind getting a notification once or twice a day, you can press the watch button:) I think it would be really great to have some feedback from mac. |
Fix some define-guards
I am able to compile micropython+ulab for the PYBD_SF6 but not for unix.
My batch script is the following:
When running the above code, I get a functional PUBD_SF6 firmware but the unix make results in 3
-Wparentheses-equality
errors inulab/code/ndarray.c
:If I add
-Wno-parentheses-equality
to theCFLAGS
inmicropython/ports/unix/Makefile
, I get different errors, inulab/code/linalg.c
this time:I suspect this might be due to some quirk of the macOS C compiler, but that's not much more than a random guess.
Is there anything obvious that I'm doing wrong?
The text was updated successfully, but these errors were encountered: