chipsalliance / chipsalliance/Surelog
Call with -nobuiltin will still pull in pre-compiled *.slpp and *.slpa (was: 'make install' fails)
- Dominant language
- C++
- Stars
- 475
- Forks
- 90
- Avg merge
- 1h 39m
- Merged PRs (30d)
- 37
Description
Currently, 'make install' fails; it seems to not be able to find the generated pkg ?
It does seem to generate the packages:
```
make
#... all kinds of stuff
[ 98%] Building CXX object CMakeFiles/hellosureworld.dir/src/hellosureworld.cpp.o
[100%] Linking CXX executable dist/Release/surelog
Creating staging for precompiled packages
Creating OVM precompiled package...
Creating UVM precompiled package...
Packages created
make[3]: Leaving directory '/home/hzeller/src/Surelog/build'
# ...
```
But then this happens
```
sudo make install
# ...
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/surelog
-- Installing: /usr/local/lib/surelog/libsurelog.a
-- Installing: /usr/local/include/surelog/surelog.h
-- Up-to-date: /usr/local/lib/surelog/python
-- Installing: /usr/local/lib/surelog/python/slSV3_1aPythonListener.py
-- Installing: /usr/local/lib/surelog/python/slwaivers.py
-- Installing: /usr/local/lib/surelog/python/slformatmsg.py
-- Up-to-date: /usr/local/lib/surelog/sv
-- Installing: /usr/local/lib/surelog/sv/builtin.sv
CMake Error at cmake_install.cmake:65 (file):
file INSTALL cannot find
"/home/hzeller/src/Surelog/build/dist/Release/pkg".
make[1]: *** [Makefile:74: install] Error 1
```
This is what is in build/dist/Release
```
$ find build/dist/Release/
build/dist/Release/
build/dist/Release/hellosureworld
build/dist/Release/uhdm-test2
build/dist/Release/uhdm-test1
build/dist/Release/python
build/dist/Release/python/slSV3_1aPythonListener.py
build/dist/Release/python/slwaivers.py
build/dist/Release/python/slformatmsg.py
build/dist/Release/sv
build/dist/Release/sv/builtin.sv
build/dist/Release/uhdm-test3
build/dist/Release/uhdm-dump
build/dist/Release/uhdm-listener
build/dist/Release/surelog
build/dist/Release/uhdm-test4
```
These are the only places where directories named `pkg/` exist:
```
$ find . -name "pkg"
./third_party/UVM/ovm-2.1.2/examples/basic_examples/pkg
./third_party/UVM/uvm-1.2/examples/simple/basic_examples/pkg
./third_party/UVM/uvm-1.1d/examples/simple/basic_examples/pkg
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with make followed by sudo make install, then inspect cmake_install.cmake around the reference to build/dist/Release/pkg and the package-generation output shown in the issue. Confirm the expected package location and make install complete without the missing-directory error; also verify the -nobuiltin behavior described in the title.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100