Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting errors while building RTL-bridges ACE example #8

Open
andypark24 opened this issue Oct 9, 2020 · 5 comments
Open

Getting errors while building RTL-bridges ACE example #8

andypark24 opened this issue Oct 9, 2020 · 5 comments

Comments

@andypark24
Copy link

andypark24 commented Oct 9, 2020

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
Copy link
Collaborator

edgarigl commented Oct 9, 2020

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
Copy link
Author

@ 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
Copy link
Collaborator

edgarigl commented Oct 9, 2020

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
Copy link
Author

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
Copy link
Collaborator

edgarigl commented Oct 9, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants