Closed JetForMe closed 1 year ago
Would you please have a try to build it with CMake instead of config/bootstrap? On my M1 Air systemc could work well with camke building framework, after setting the CMAKE_CXX_STANDARD to 17.
mkdir build && cd build && cmake .. && make
seemed to build things successfully. I’m not really sure how to use SystemC yet, so I cd'd into build/examples/sysc/risc_cpu
, ran make
and executed the resulting binary. I tried risc_cpu
and simple_fifo
, and both output "Segmentation fault: 11" upon execution.
Please first update the top CMakeLists.txt, updating the CMAKE_CXX_STANDARD to 17. The error of "Segmentation fault: 11" should disappear, since this is a known bug of systemc on macOS already.
Ah, thank you, that fixed the seg fault. Now I get this output, is this correct?
$ ./simple_fifo
SystemC 2.3.4_pub_rev_20191203-Accellera --- Dec 6 2022 03:33:56
Copyright (c) 1996-2019 by all Contributors,
ALL RIGHTS RESERVED
V<9>isit www<1>.a<9>ccellera<1>.o<9>rg and s<1>ee<9> what Sy<1>st<9>emC can <1>do<9> for you<1> today!<1>
that should be OK, congratulations for you.
Thanks for the help! Perhaps the INSTALL.md
document should be updated to recommend Cmake.
I just tried building, following the instructions in INSTALL.md. I get "sorry...architecture not supported". This is with Xcode 14.1 on macOS 13.0.1 on M1 (ARM).
The same result came from
brew install --build-from-source systemc
.