Xilinx / libsystemctlm-soc

SystemC/TLM-2.0 Co-simulation framework
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/862421112/Co-simulation
Other
222 stars 68 forks source link

Getting errors while building RTL-bridges ACE example #8

Open andypark24 opened 4 years ago

andypark24 commented 4 years ago

There is a problem with building examples for RTL modules.

I'm currently working on docker, which means every package needed is installed properly.

$ cd tests/ $ make examples-run

Thus this works fine and I could get a vcd result.

However, what I want to do is test ACE RTL modules, so I tried

$ make all

but it gave me result like this.

make[1]: [Makefile:100: obj_dir/Vace_mst__ALL.a] Error 255 make[1]: Leaving directory '/home/builder/sources/libsystemctlm-soc/tests/rtl-bridges/ace' make: [Makefile:62: rtl-bridges/ace] Error 2

I also tried this at Ubuntu 18.04 and it still works fine with "make examples-run", and gets errors with "make all". In this case, errors are like this.

make[1]: [ace-mst-test.o] Error 1 make[1]: Leaving directory '/home/soc/posh-rtl-birdges-refdesigns/libsystemctlm-soc/tests/rtl-bridges/ace' Makefile:62: recipe for traget 'rtl-bridges/ace' failed make: [rtl-bridges/ace] Error 2

Thanks.

edgarigl commented 4 years ago

Hi Andy,

There should have been an error message from the compiler before make[1] bails out, could you please post the compilation error messages so we can have a look?

Thanks, Edgar

andypark24 commented 4 years ago

@ Docker

g++: fatal error: Killed signal terminated program cc1plus compilation terminated. make[2]: [/usr/share/verilator/include/verilated.mk:171: Vace_mst__ALLcls.o] Error 1 make[2]: Leaving directory '/Volumes/Docker/libsystemctlm-soc/tests/rtl-bridges/ace/obj_dir' make[1]: [Makefile:101: obj_dir/Vace_mst__ALL.a] Error 2 make[1]: Leaving directory '/Volumes/Docker/libsystemctlm-soc/tests/rtl-bridges/ace' make: *** [Makefile:62: rtl-bridges/ace] Error 2

It seems like some messages have been changed. I just used

$ make all 2>&1 | tee make.log

to log.. that's the only difference.

@ Ubuntu (which I manually installed packages)

/usr/local/share/verilator/include/verilated.h:28:10: error: #if with no expression #if VM_SC

edgarigl commented 4 years ago

I see. We're going to need to look at the error in your make.log file.

The Ubuntu error seems related to using older verilators that have had some bugs with SystemC support. Can you run verilator --version?

4.016 is for example known to work.

Best regards, Edgar

andypark24 commented 4 years ago

As for docker, I made it work by changing size of memory and swap. Verilator 4.101 is what I currently use in Ubuntu. I'm gonna try it for version 4.016 as you said.

Thanks for your help. Have a nice day 👍

edgarigl commented 4 years ago

Ah I see, If there's something wrong with 4.101 that'll be something we'd like to fix. Thanks for reporting it, I'll have a look at 4.101 on my side. You too, have a nice weekend!