-
Notifications
You must be signed in to change notification settings - Fork 49
build error with clang (macOS) #23
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
Comments
Hello @ra1nb0w - yes some other people tried a macOS build a few months ago but hit compiling issues. Previous versions have built OK. Thanks for taking a look into this. |
The choice of using complex.h versus comp.h may have tied us to GNU C. I think GCC is available for the Mac. I don't know how good the marriage is. Maybe a Docker container for Mac is an option. |
I tried with |
I knew we would have API calls using the comp.h so we allowed for that, but the ease of translation from octave was pretty much the only driving force. I couldn't tell if David liked it early on, but I guess we got used to complex.h functions as the program got larger. We were able to write a fast dft() and idft() in high level code, without resorting to kiss_fft. Adding two numbers is "a + b" and not something obfuscated like:
The way it is now, it will be easier to translate it to RUST :-) |
Actually I didn't know complex.h was a gcc-only thing. Having said that - we had freed-gui 1.3.0 building for the mac just last year and it used complex.h, perhaps that used gcc on the mac. |
I used it because most C compilers are C99 or better these days. I don't think it's GCC only. CLANG is a different thing and I don't think they are interested in C99 compatibility. |
OK thanks. Yes the use of complex.h is a fine choice Steve, and if it's standards based all the better. I'm very pleased with that modem. |
ok. thanks for all information. |
@ra1nb0w if you get this working at all, please let me know - I've hit exactly the same issues you have, and short of re-building all my macports dependencies using gcc (which I'm not even sure is possible), I'm stuck. |
No, I didn't do any progress on clang build for lack of time and because at prime sight it is not so trivial. For gcc seems the entry point or something related but, as maintainer on macports, I don't like to follow this path and force gcc; therefore the only way that I like is to fix clang build. |
I am trying to update the port on macports but unfortunately the build fail with
error: templates must have C++ linkage
using clang. Full log at this gist.Versions used:
Software used:
codec2 and lpcnetfreedv build correctly from macports. Just a mismatch on the name of lpcnetfreedv on cmake
find_package
but this is another story.There is some placement errors on
CMakeLists.txt
andInfo.plist
but I will make a PR after this issue.The text was updated successfully, but these errors were encountered: