Allen yang Posted April 25, 2024 Report Posted April 25, 2024 Hi, Everyone, I have download SC on github and compile install on el7 which runs well. I want to use formmer compile SC result and copy the sc.a and include to my new el8 OS. However, I get undefined error on new OS. ../include/systemc/sysc/datatypes/int/sc_uint_base.h:848: undefined referece to `sc_dt::sc_uint_base::to_string() const` Here's my quenction, can we reuse the compile result of other OS? Quote
Eyck Posted April 25, 2024 Report Posted April 25, 2024 Usually this does not work. There are quite a few dependenies to OS and compiler libraries which prevent this. If you build systemc as a shared library there is some chance to get it work. Quote
AmeyaVS Posted April 25, 2024 Report Posted April 25, 2024 Hello @Allen yang, As responded by @Eyck, it might work. But I would not recommend it. You might hit issues due to incompatibilities in OS, system libraries, compiler generated output, etc. You might get very hard to debug issues or random simulation crashes. It's better to recompile for the target platform if you can to have a chance of better compatibility. Regards, Ameya Vikram Singh Quote
Allen yang Posted April 26, 2024 Author Report Posted April 26, 2024 Thanks a lot @AmeyaVS @Eyck. I will try to use SC in the same OS. Quote
David Black Posted May 7, 2024 Report Posted May 7, 2024 Use a Docker container and install SystemC there. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.