-
Notifications
You must be signed in to change notification settings - Fork 55
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
Does it matter if a bootstrap C compiler supports C11? #128
Comments
Mercury requires support for fairly large subset of C99 (specifically, the subset that Microsoft have deigned to support in recent versions of MSVC). C11 support should not be required. |
C99 should be supported in gcc-4.2. Sometime requires passing |
On a side note, for some reason different targets are picked on macOS PowerPC vs macOS aarch64: hlc + reg on the first but hlc + none on the second (plus java on aarch64, but no surprise it is unsupported on ppc). |
The |
@juliensf It is quite painful to build on PowerPC, since apparently only one cpu core is used by the build system. Running for 3 hrs already, and just began compiling reg.gc.debug.stseg. Even 1 core is not fully loaded. (Though to be honest it was slow to build even on M1.) |
Building using multiple cores should work. It should just be a matter of:
(Or whatever your preferred number of cores is.) |
Oh, that would have saved me a few hours :) It will probably complete reasonably soon, I won’t risk interrupting already (Macports builds post-initial-bootstrap stages in destroot, and I am not sure it resumes if stopped). UPD. I tried on arm64 now, and yes, it works. Thank you. |
macOS on PowerPC uses by default gcc-4.2, which does not support C11. Modern gcc is available and works fine (I use gcc-13.2.0 mostly on PowerPC), but it is an additional and quite heavy dependency to build. So if there is no benefit in using a modern gcc, we rather use the old Xcode one.
Could someone advise on this matter?
The text was updated successfully, but these errors were encountered: