riscv-qemu build error
Ruslan Bukin
ruslan.bukin at cl.cam.ac.uk
Mon Jan 21 11:12:29 UTC 2019
1. pkg which /usr/local/bin/pkg-config
/usr/local/bin/pkg-config was installed by package pkgconf-1.5.4,1
2. Avoid using 'sudo su'
Ruslan
On Mon, Jan 21, 2019 at 03:36:03PM +0530, Dinesh Thirumurthy wrote:
> 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 at freebsd ~/riscv-qemu/build]$ uname -a
> FreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT r342707 GENERIC amd64
> [dt at freebsd ~/riscv-qemu/build]$
>
> A complaint about a missing pkg-config ...
>
> [dt at 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 at freebsd ~]$ cd riscv-qemu/
> [dt at freebsd ~/riscv-qemu]$ mkdir build
> [dt at freebsd ~/riscv-qemu]$ cd build
> [dt at freebsd ~/riscv-qemu/build]$ ../configure
> --target-list=riscv64-softmmu --prefix=$HOME/bin
>
> ERROR: pkg-config binary 'pkg-config' not found
>
> [dt at freebsd ~/riscv-qemu/build]$ sudo su
> root at 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 at freebsd:/usr/home/dt/riscv-qemu/build # whereis pkg-config
> pkg-config: /usr/local/man/man8/pkg-config.8.gz
> root at freebsd:/usr/home/dt/riscv-qemu/build # exit
> [dt at freebsd ~/riscv-qemu/build]$ env | grep PATH
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/dt/bin
> [dt at freebsd ~/riscv-qemu/build]$
>
> How do I resolve this?
>
> Thanks.
> Regards,
> Dinesh
> _______________________________________________
> freebsd-riscv at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-riscv
> To unsubscribe, send any mail to "freebsd-riscv-unsubscribe at freebsd.org"
More information about the freebsd-riscv
mailing list