Closed GreenMan-1 closed 1 year ago
sudo is nor required!
It looks like you have some root owned files lying around. Perhaps these are build products from when you (accidentally?) attempted to build with sudo, perhaps they are from something else. Try setting the ownership of all files back to yourself, and the sudo problem should be resolved. Something like ...
sudo find . -exec chown user \{\} \;
, where user
is your user name, should work. (I make no promises, I haven't tested it, do your own homework, etc.--but this is where I would start.) Make sure you are in the appropriate zipcpu directory when doing this, and it should then change ownership of all files at your current directory level and deeper to your user.
The requirement for -faligned-new
is somewhat of a confusing requirement between Verilator and g++. It comes from Verilator using a new g++ language feature. You can either safely ignore this, or add the -faligned-new
flag to the CFLAGS Makefile variable.
The ZipCPU test bench does require access to zipelf.h and zipelf.cpp. In my development tree, these are soft linked to ../cpp/zipelf.h
and ../cpp/zipelf.cpp
.
The warnings from zopcodes.cpp
is the result of g++ getting upgraded, and something that didn't used to generate warnings now does. The same should be true with div_tb.cpp
. The comparison of different signedness warning is also similar--g++ didn't used to complain about that, although it now does. In most cases, the integers in question will never be so large their signedness will matter, but it is something that I'm sure a newer version of Verilator will likely fix.
Dan
OK, i will check from my end, Thank you very much Dan
Hi, I came across the below-mentioned error while making some changes in zipcpu_tb.cpp and then ran the make command to build it.
so to resolve this error I copied zipelf.h & zipelf.cpp from
cpp/
folder toverilator/
folder then the build was successful but there were some warnings as mentioned belowand also I need to run in
su
mode i.esudo su
otherwise I am getting the following errorIs this ok or am I doing any serious mistakes? Please let me know.