Closed mhaeuser closed 6 months ago
Hi Marvin, thanks for this PR. Right now, there is a large update in preparation for SystemC 3.0 which will include fixes for MacOSX. Hopefully that will resolve this issue. In the meantime, let's leave this PR open, and if there are still problems we can re-visit?
Sure, thanks for the update!
I think that this PR can be successfully closed, as https://github.com/OSCI-WG/systemc/pull/551 got merged.
I don’t have access to that repository, so unfortunately I cannot comment. But thanks for update!
Fixed in SystemC 3.0.0 release. Feel free to reopen in case of regression.
Thanks! I briefly inspected the changes:
autoupdate
before I can build.I find this upstream commit a bit odd, though: https://github.com/accellera-official/systemc/commit/594a1aab19a2af3c4928ce7eabb7b58967d860bd
Why is this flag not passed to the supported compilers by configure.ac? CMake works out-of-the-box on Apple silicon, while the autotools route requires manually setting CXXFLAGS
.
Thank you for your effort!
Thanks for the feedback @mhaeuser!
@lmailletcontoz: Could you please reopen this PR, so that the two not yet applied improvements can be evaluated?
- https://github.com/accellera-official/systemc/commit/f3c38e6846322bab4398d53387ab41290cf38b44: Not applied, the related issues remain. I basically have to run autoupdate before I can build.
I only see warnings when running config/bootstrap
with autoconf 2.71
on my side. Migrating the configure.ac
to require a newer version of autoconf
would require looking at the available versions on "old" operating systems like e.g. RedHat 7.
Users are generally assumed to run off the release
branch, which includes pre-generated Automake files.
- https://github.com/accellera-official/systemc/commit/5681208c9683c41981f946c18fc3b4bf523ee2d4: [...] Will it be removed in the future?
Yes, pre-C++17 code will be dropped from the code base incrementally. Building for pre-C++17 is already rejected via sc_cmnhdr.h
.
Thanks for your insight, @pah!
I only see warnings when running
config/bootstrap
withautoconf 2.71
on my side. Migrating theconfigure.ac
to require a newer version ofautoconf
would require looking at the available versions on "old" operating systems like e.g. RedHat 7.
Right. I'm not sure what minimum version the changes would upgrade it to, but the documentation indicates those constructs have co-existed for a while.
Users are generally assumed to run off the
release
branch, which includes pre-generated Automake files.
Ah, I hit the issues when I had to modify the autoconf files for https://github.com/accellera-official/systemc/commit/7751ffc85272183afa14c8503f3dc636babe2683, so I just re-tried the same process. The pre-generated files indeed work-as is. Thank you!
Yes, pre-C++17 code will be dropped from the code base incrementally. Building for pre-C++17 is already rejected via sc_cmnhdr.h.
Good, then I think that commit can be dropped.
As both GNU make and CMake work OOTB now, I'll close the PR again. The update to the autoconf files is mostly a matter of preference in this case.
There currently are various issues with building on macOS:
Unrelated to macOS, but tested only there:
All fixes were tested on macOS Sonoma on an M1 Pro machine, all tests executed by "make check" via automake and CMake pass.