-
Notifications
You must be signed in to change notification settings - Fork 7
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
Prbs compile on Mac #5
Comments
Thanks for the info. I've had this problem before with somebody trying to build this with XCode. However, I don't think i can do much about those errors. For one, i do not have a mac to verify any changes. Second, the error happens while compiling the parasites firmware which is not part of my repository (only included as a subtree). Any changes to that would have to happen in the parasites repository. |
Re, |
it's clang++, not gcc/g++. specifically (and it's right, btw):
you can't do something like this:
I got it to compile by changing not sure why g++ ignores the standard for this. |
Could you tell me where that edit is Jerry? I have the hardware so can build and test. These are the errors I'm currently getting (in Mojave): parasites/tides/generator.cc:400:21: warning: comparison of integers of |
the warnings (while true) can likely safely be ignored. the errors look to start at |
looks like the change can be made with this repo only - I'll try compilation on macOS and linux, and if it fixes it on both, I'll open a PR. |
Failing in g++, but working in clang++ on Linux. Looking closer, it looks like the |
aha, found the overall issue:
which is aliasing an inline function. I have a 1 line fix that can be made into a PR, as well as go upstream, and should work on all platforms. |
I haven't tried editing the files yet Jerry and I hasten to add I am not a coder, just somebody who tries to build Mac versions of things when requested or when I find missing ones. However, a thought ... the problem file in my attempt here is in the Mutable code not the Aepelzens no? The Mutable code builds fine when I do it with the Arable Instruments version. So why would I need to edit the Mutable code? Anyway, as I write, your latest has popped in and it looks like you have fixed it :) |
the issue comes down to this:
is being defined at some point. then later down the line, there's code in a template that looks like:
at which the compiler is saying, hey! wait a minute! the gcc/g++ compiler was more like, oh, you're probably doing something wrong here, but since you didn't tell me to warn you about anything I'm going to close my eyes and choose a solution and hope it's right (in this case, it happened to choose the right one, so it "worked"). clang/clang++, being a much smarter compiler, chose to expose the issue for the issue that it was, that someone is mucking with things, giving weird undefined behavior, and it will likely fail or seriously screw up with any minor tool change. make a little more sense? |
ok, I've created a PR, up to @Aepelzen to accept or reject. |
A brilliant explanation sir. Chapeau! |
no problem to compile it on Win and Linux , but lots of errors on Mac…
See screenshot
The text was updated successfully, but these errors were encountered: