Search the Community
Showing results for tags 'clang'.
-
Hello, I wanted to build and install SystemC 2.3.3 on a Mac Catalania. I didn't called 'make install' yet due to the issue that 22 of 22 tests are failing. I checked the logs of some of the test and saw in all files that a 'segmentation fault' got thrown before producing output. While building it only throw 2 warnings see in the attachments. My environment details: OS: Mac Catalania 10.15.5 processor: intel i5 cmake found the type: __LP64__. build tool tried: make GNU Make 3.81 and cmake 3.18.1 (Therefore it should not make a different that I didn't called gmake
- 3 replies
-
- build issue
- clang
-
(and 1 more)
Tagged with:
-
coredump using kill() in SystemC 2.3 with clang
Martin Barnasconi posted a topic in SystemC Language
When using clang++ (version 3.1 under cygwin/Windows) and SystemC 2.3, I get a coredump when killing a dynamically spawned process. The message is: terminate called after throwing an instance of 'sc_core::sc_unwind_exception' what(): KILL Aborted (core dumped) Using gcc/g++ works correctly. Any idea what is causing this? Attached a simple example to reproduce the coredump. SC_MODULE(x) { void f1() { sc_process_handle h2 = sc_spawn(sc_bind(&x::f2, this) ); wait(5, SC_MS); if (h2.valid()) h2.kill(); } void f2() { cout << "@" << sc_t