-
Notifications
You must be signed in to change notification settings - Fork 127
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
Build fails with gcc14: error: assignment to 'Objptr' {aka 'unsigned char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
#578
Comments
The former is certainly already fixed: 3edda85 I do not observe an error with a C codegen self-compile on Fedora 40 (gcc 14); looking at the generated C code, I see statements like:
so there seem to be sufficient casts. I'm not precisely sure when those casts were introduced; there was a fair amount of refactoring of the RSSA and Machine IRs prior to the 20210117 release (which also includes the commit linked above). What version of MLton is being used for the bootstrap? |
@MatthewFluet The last version for ppc was 20070826, which is what we use: https://github.com/macports/macports-ports/blob/master/lang/mlton-bootstrap/Portfile If a newer version is required, perhaps the only non-painful way would be if you could host my bootstrap binary (I can build it against 10.5 or possibly 10.4 target). And then I can update the port to pick a new version for bootstrapping mlton. |
@barracuda156 Sure, I suppose we could host a ppc build on sourceforge. |
@MatthewFluet Thank you! I will handle it in 2–3 days and update here. |
Closing stale issue. |
Sorry, I have a hard time managing all the stuff :( However the issue can be closed as resolved. I have built the latest
I had to patch the archaic
|
The first error is with an old MLton which is used for bootstrap, so we can only patch it locally. The second should be fixed here, perhaps:
The text was updated successfully, but these errors were encountered: