-
Notifications
You must be signed in to change notification settings - Fork 607
having issue with PKG_CONFIG_PATH #2263
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
Comments
Can you try the following command? echo $PKG_CONFIG_PATH For my setup I use the following exports: export SPIKE_PATH=$_SPIKE_ROOT/bin
export PKG_CONFIG_PATH=$_SPIKE_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH It essentially lets the environment know where to find Spike. |
Actually there is a better explanation here: https://github.com/lowRISC/ibex/tree/master/dv/uvm/core_ibex#prerequisites |
export SPIKE_ROOT=/usr/ The above exception was the direct cause of the following exception: Traceback (most recent call last): still i am having same issue. ls /usr/lib/pkgconfig/ |
Missing riscv-fdt will cause that error. Did you build Spike from here? |
yes i have installed from the same git repo |
Where did you install Spike? As in what argument did you pass to --prefix when you configured the build? I usually try not to install to the /usr directory to avoid clashing with system installs. Also after triggering the error can you run the following commands:
|
Where did you install Spike? echo $PKG_CONFIG_PATH ls /tools-spike/lib/pkgconfig which spike spike --help usage: spike [host options] [target options] --hartids=<a,b,...> Explicitly specify hartids, default is 0,1,... --ic= --dc= --l2= --device=<P,B,A> Attach MMIO plugin device from an --extlib library P -- Name of the MMIO plugin B -- Base memory address of the device A -- String arguments to pass to the plugin This flag can be used multiple times. The extlib flag for the library must come first. --log-cache-miss Generate a log of cache miss --extension= Specify RoCC Extension This flag can be used multiple times. --extlib= Shared library to load This flag can be used multiple times. --rbb-port= Listen on for remote bitbang connection --dump-dts Print device tree string and exit --dtb= Use specified device tree blob [default: auto-generate] --disable-dtb Don't write the device tree blob into memory --kernel= Load kernel flat image into memory --initrd= Load kernel initrd into memory --bootargs= Provide custom bootargs for kernel [default: console=hvc0 earlycon=sbi] --real-time-clint Increment clint time at real-time rate --dm-progsize= Progsize for the debug module [default 2] --dm-sba= Debug system bus access supports up to wide accesses [default 0] --dm-auth Debug module requires debugger to authenticate --dmi-rti= Number of Run-Test/Idle cycles required for a DMI access [default 0] --dm-abstract-rti= Number of Run-Test/Idle cycles required for an abstract command to execute [default 0] --dm-no-hasel Debug module supports hasel --dm-no-abstract-csr Debug module won't support abstract to authenticate --dm-no-halt-groups Debug module won't support halt groups --dm-no-impebreak Debug module won't support implicit ebreak in program buffer --blocksz= Cache block size (B) for CMO operations(powers of 2) [default 64] |
So the content of the package config directory is where the difference is: > ls lib/pkgconfig
riscv-disasm.pc riscv-fdt.pc riscv-fesvr.pc riscv-riscv.pc Inside the repository where you built Spike can you just double check you are on the right remote and branch? When I do
Also, to help you proceed, I've attached a tarball of my current installed version of Spike so you can use that in the meantime (built on Ubuntu 24.04): |
Thanks for the support the above information helps me. make COSIM=1 make --keep-going IBEX_CONFIG=opentitan SIMULATOR=questa ISS=spike ITERATIONS=1 SEED=1 TEST=$TEST_NAME WAVES=0 COV=0 |
In case you've run the make file before you need to remove the |
make TEST=riscv_machine_mode_rand_test ITERATIONS=1 can you please help to run the simulation with questa simulator |
I don't have access to the Questa simulator so won't be able to help on that front. Our simulator should work under Xcelium. |
Hi team,
This chandra tried running end-to end co simulation with lowrisc_ibex core and i am facing an issue as mentioned below,kindly help me out ,even i tried same with pre-compiled built having same issue.
make --keep-going IBEX_CONFIG=opentitan SIMULATOR=questa ISS=spike ITERATIONS=1 SEED=1 TEST=$TEST_NAME WAVES=0 COV=0
Build metadata already exists, not recreating from scratch.
Building RTL testbench
Traceback (most recent call last):
File "/home/gonu.sekhar/Desktop/ibex/dv/uvm/core_ibex/scripts/compile_tb.py", line 94, in _main
subprocess.check_output(['pkg-config', '--exists'] + spike_iss_pc)
File "/usr/lib64/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib64/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pkg-config', '--exists', 'riscv-riscv', 'riscv-disasm', 'riscv-fdt', 'riscv-fesvr']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/gonu.sekhar/Desktop/ibex/dv/uvm/core_ibex/scripts/compile_tb.py", line 149, in
sys.exit(_main())
File "/home/gonu.sekhar/Desktop/ibex/dv/uvm/core_ibex/scripts/compile_tb.py", line 96, in _main
raise RuntimeError(
RuntimeError: Failed to find ['riscv-riscv', 'riscv-disasm', 'riscv-fdt', 'riscv-fesvr'] pkg-config packages. Did you set the PKG_CONFIG_PATH correctly?
make[1]: *** [scripts/ibex_sim.mk:42: out/metadata/tb.compile.stamp] Error 1
Building randomized test generator
make[1]: *** [scripts/riscvdv.mk:61: out/metadata/instr.gen.build.stamp] Error 1
make[1]: Target 'all' not remade because of errors.
make: *** [Makefile:72: run] Error 2
My Environment
i have followed all the steps which are mentioned in the git repo to install spike and gnu-toolchain
The text was updated successfully, but these errors were encountered: