-
Notifications
You must be signed in to change notification settings - Fork 99
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
Errors building on FreeBSD. #442
Comments
I just tried: "gmake pdp10" on a cleanly installed FreeBSD 14.2 with the specified commit (feb155f) and do not see any problem. Please provide the beginning output when building this way (which includes to gcc version). Also provide the specific version of FreeBSD. |
I don't have any info beyond what's available from the cirrus-ci.com link I posted. |
I'm not sure if you're using the makefile or cmake building. However both open-simh/simh and simh/simh build cleanly when the compiler is gcc vs cc. When using cc (aka clang), the errors you observe are reported when building open-simh/simh but not when building simh/simh.
|
The SIMH build starts on line 666. https://cirrus-ci.com/task/5537648405643264?logs=main#L666 |
As indicated in the build output, it falls back to cc when gcc isn't available. For recent Unix environments this might actually work, while it didn't on older Unix versions. The observed failing behavior on FreeBSD building open-simh/simh (but not simh/simh) seems to be specific to FreeBSD's clang which on FreeBSD 13.x was clang 13.0.0 and on FreeBSD 14.x seems to be clang 18.1.6. Explicitly compiling on Ubuntu with clang 14.0.0 has no problems with building open-simh/simh. This might be worth fixing, or you could simply install gcc. |
When building the latest SIMH, commit feb155f, I get the following errors on FreeBSD 14. See also https://cirrus-ci.com/task/5537648405643264 Maybe a problem using
%zu
on that platform?The text was updated successfully, but these errors were encountered: