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

Error building the simulation #125

Open
Inky-13 opened this issue Oct 23, 2024 · 3 comments · May be fixed by #129
Open

Error building the simulation #125

Inky-13 opened this issue Oct 23, 2024 · 3 comments · May be fixed by #129

Comments

@Inky-13
Copy link

Inky-13 commented Oct 23, 2024

I am currently trying to build the simulation of the demo SoC and I am getting the following error:

ERROR: ../src/lowrisc_dv_verilator_ibex_pcounts_0/cpp/ibex_pcounts.cc: In function ‘std::string ibex_pcount_string(bool)’:
../src/lowrisc_dv_verilator_ibex_pcounts_0/cpp/ibex_pcounts.cc:80:41: warning: ‘longest_name_length’ may be used uninitialized [-Wmaybe-uninitialized]
   80 |       int padding = longest_name_length - ibex_counter_names[i].length();
      |                     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/lowrisc_dv_verilator_ibex_pcounts_0/cpp/ibex_pcounts.cc:56:26: note: ‘longest_name_length’ was declared here
   56 |   std::string::size_type longest_name_length;
      |                          ^~~~~~~~~~~~~~~~~~~
/usr/share/verilator/include/verilated_fst_c.cpp: In member function ‘void VerilatedFst::declare(uint32_t, const char*, int, VerilatedTraceSigDirection, VerilatedTraceSigKind, VerilatedTraceSigType, bool, int, bool, int, int)’:
/usr/share/verilator/include/verilated_fst_c.cpp:220:27: warning: ‘varDir’ may be used uninitialized [-Wmaybe-uninitialized]
  220 |         fstWriterCreateVar(m_fst, varType, varDir, bits, name_str.c_str(), it->second);
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/share/verilator/include/verilated_fst_c.cpp:177:15: note: ‘varDir’ was declared here
  177 |     fstVarDir varDir;
      |               ^~~~~~
Vtop_verilator__Trace__0__Slow.cpp: In function ‘void Vtop_verilator___024root__trace_init_sub__TOP__0(Vtop_verilator___024root*, VerilatedFst*)’:
Vtop_verilator__Trace__0__Slow.cpp:5949:125: error: expected unqualified-id before ‘,’ token
 5949 |     tracep->declQuad(c+206,0,"ctx",-1, VerilatedTraceSigDirection::NONE, VerilatedTraceSigKind::VAR, VerilatedTraceSigType::, false,-1, 63,0);
      |                                                                                                                             ^
make[1]: *** [/usr/share/verilator/include/verilated.mk:275: Vtop_verilator__Trace__0__Slow.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:13: Vtop_verilator] Error 2

ERROR: Failed to build lowrisc:ibex:demo_system:0 : '['make', '-j', '4']' exited with an error:

I have installed the dependencies in my python environment. I also installed the provided tool-chain and ran the fusesoc command in the README. I also trying building the Ibex core itself (separate repo) with the simple config and that seemed to work.

Has anyone encountered this?

@marnovandermaas
Copy link
Contributor

Curious, what command did you use exactly?

The other things that would be useful to know are some versions, these are mine:

$ verilator --version
Verilator 5.024 2024-04-05 rev v5.024
$ which fusesoc
.venv/bin/fusesoc
$ fusesoc --version
0.1

@Inky-13
Copy link
Author

Inky-13 commented Oct 24, 2024

Curious, what command did you use exactly?

The other things that would be useful to know are some versions, these are mine:

$ verilator --version
Verilator 5.024 2024-04-05 rev v5.024
$ which fusesoc
.venv/bin/fusesoc
$ fusesoc --version
0.1

I am on an Ubuntu 24 VM
Here are the versions:

verilator --version
Verilator 5.020 2024-01-01 rev (Debian 5.020-1)
which fusesoc
/home/inky13/workspace/ibex-demo-system/.venv/bin/fusesoc
fusesoc --version
0.1

and this is the command I am using to build the simulation

fusesoc --cores-root=. run --target=sim --tool=verilator --setup --build lowrisc:ibex:demo_system

I get these warnings immediuatelly after running the command:

WARNING: Unknown item flags in section Target
WARNING: Unknown item flags in section Target
WARNING: Unknown item flags in section Target

@marnovandermaas I am not sure what I am doing wrong I was also wondering if Ubuntu could be the issue but I seem to be able to build the Ibex core with the simple config

@Inky-13
Copy link
Author

Inky-13 commented Oct 24, 2024

I was able to checkout release v0.0.3 and it worked just fine. Usure what the issue is with main.

This commit seems to be the one breaking things for me.

@Inky-13 Inky-13 linked a pull request Nov 20, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants