question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cocotb 1.7.0 sdist install fails (_vendor/vpi/sv_vpi_user.h: No such file or directory)

See original GitHub issue

I tried to build cocotb manually, but I fail:

building 'cocotb/libs/libcocotbvpi_icarus' extension
creating build/temp.linux-x86_64-cpython-310/cocotb/libs/libcocotbvpi_icarus
creating build/temp.linux-x86_64-cpython-310/cocotb/libs/libcocotbvpi_icarus/cocotb
creating build/temp.linux-x86_64-cpython-310/cocotb/libs/libcocotbvpi_icarus/cocotb/share
creating build/temp.linux-x86_64-cpython-310/cocotb/libs/libcocotbvpi_icarus/cocotb/share/lib
creating build/temp.linux-x86_64-cpython-310/cocotb/libs/libcocotbvpi_icarus/cocotb/share/lib/vpi
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DCOCOTBVPI_EXPORTS= -DVPI_CHECKING=1 -DICARUS= -D__STDC_FORMAT_MACROS= -Icocotb/share/include -Icocotb -I/tmp/build-env-frrfwotg/include -I/usr/include/python3.10 -c cocotb/share/lib/vpi/VpiCbHdl.cpp -o build/temp.linux-x86_64-cpython-310/cocotb/libs/libcocotbvpi_icarus/cocotb/share/lib/vpi/VpiCbHdl.o -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wcast-qual -Wwrite-strings -Wconversion -Wno-missing-field-initializers -Wnon-virtual-dtor -Woverloaded-virtual -flto
In file included from cocotb/share/lib/vpi/VpiCbHdl.cpp:34:
cocotb/share/lib/vpi/VpiImpl.h:42:10: fatal error: _vendor/vpi/sv_vpi_user.h: No such file or directory
   42 | #include "_vendor/vpi/sv_vpi_user.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel

I’m on cocotb v1.7.0 tag in an environment that can build cocotb v1.6.0 successfully.

OS: Ubuntu 22.04 LTS Dependencies:

$ sudo apt-get install make gcc g++ python3 python3-dev python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
g++ is already the newest version (4:11.2.0-1ubuntu1).
gcc is already the newest version (4:11.2.0-1ubuntu1).
make is already the newest version (4.3-4.1build1).
python3 is already the newest version (3.10.4-0ubuntu2).
python3-dev is already the newest version (3.10.4-0ubuntu2).
python3-pip is already the newest version (22.0.2+dfsg-1).

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
stefan-muccommented, Sep 22, 2022

Confirming that cloning the code and building it manually (as initially reported) works as of release 1.7.1 Thanks from my side too!

1reaction
imphilcommented, Sep 11, 2022

OK, that’s expected then. Thanks! (And expect a 1.7.1 release to come out shortly, fixing the “pip install cocotb” path for you.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — cocotb 1.7.2 documentation
1.0: cannot open shared object file: No such file or directory . Cocotb builds binary libraries during its installation process. These libraries are...
Read more >
Mixed language simulation doesn't work with Aldec Riviera
There's a problem when trying to run mixed language simulation under Aldec Riviera. The problem can be reproduced even with the example in ......
Read more >
cocotb/Lobby - Gitter
Makefile:47: /Makefile.sim: No such file or directory ... correct conda environment activated? you should be able to do a pip list and see...
Read more >
python-cocotb - Coroutine Co-simulation Test Bench
Bug 1747574 - Review Request: python-cocotb - Coroutine Co-simulation Test Bench ... There is no such directory in the upstream tarball.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found