Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2019 15:36:03 +0530
From:      Dinesh Thirumurthy <dinesh.thirumurthy@gmail.com>
To:        freebsd-riscv <freebsd-riscv@freebsd.org>
Subject:   riscv-qemu build error
Message-ID:  <CAPn%2BtrFbCL5aV0y0AO3NKsykVcCBhYZMTDvDpUZV4P8W6YY03g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

Following instructions at https://wiki.freebsd.org/qemu
Build QEMU emulator
git clone https://github.com/riscv/riscv-qemu
cd riscv-qemu
mkdir build && cd build
../configure --target-list=riscv64-softmmu --prefix=$PREFIX
gmake
gmake install

Running  13.0-CURRENT on VirtualBox

[dt@freebsd ~/riscv-qemu/build]$ uname -a
FreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT r342707 GENERIC  amd64
[dt@freebsd ~/riscv-qemu/build]$

A complaint about a missing pkg-config ...

[dt@freebsd ~]$ git clone https://github.com/riscv/riscv-qemu
Cloning into 'riscv-qemu'...
remote: Enumerating objects: 409277, done.
Receiving objects:  15% (62311/409277), 24.67 MiB | 335.00 KiB/s
Receiving objects:  16% (66331/409277), 25.82 MiB | 405.00 KiB/s
remote: Total 409277 (delta 0), reused 0 (delta 0), pack-reused 409277
Receiving objects: 100% (409277/409277), 160.47 MiB | 204.00 KiB/s, done.
Resolving deltas: 100% (332316/332316), done.
Checking out files: 100% (6481/6481), done.
[dt@freebsd ~]$ cd riscv-qemu/
[dt@freebsd ~/riscv-qemu]$ mkdir build
[dt@freebsd ~/riscv-qemu]$ cd build
[dt@freebsd ~/riscv-qemu/build]$ ../configure
--target-list=riscv64-softmmu --prefix=$HOME/bin

ERROR: pkg-config binary 'pkg-config' not found

[dt@freebsd ~/riscv-qemu/build]$ sudo su
root@freebsd:/usr/home/dt/riscv-qemu/build # pkg install pkg-config
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'pkg-config' have been
found in the repositories
root@freebsd:/usr/home/dt/riscv-qemu/build # whereis pkg-config
pkg-config: /usr/local/man/man8/pkg-config.8.gz
root@freebsd:/usr/home/dt/riscv-qemu/build # exit
[dt@freebsd ~/riscv-qemu/build]$ env | grep PATH
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/dt/bin
[dt@freebsd ~/riscv-qemu/build]$

How do I resolve this?

Thanks.
Regards,
Dinesh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPn%2BtrFbCL5aV0y0AO3NKsykVcCBhYZMTDvDpUZV4P8W6YY03g>