From owner-freebsd-riscv@freebsd.org Mon Jan 21 11:12:29 2019 Return-Path: Delivered-To: freebsd-riscv@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 178CA14A4FE1 for ; Mon, 21 Jan 2019 11:12:29 +0000 (UTC) (envelope-from rb743@hermes.cam.ac.uk) Received: from ppsw-33.csi.cam.ac.uk (ppsw-33.csi.cam.ac.uk [131.111.8.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E964C841D2 for ; Mon, 21 Jan 2019 11:12:27 +0000 (UTC) (envelope-from rb743@hermes.cam.ac.uk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cam.ac.uk; s=20180806.ppsw; h=Sender:In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qUyMCX6LKhh2cETKPm9Lkp7KYxVreRd+/+Z9/12El0s=; b=x0GqAAzxxVBocG1o+/wewlsO3P TeJX4iqRQfm1WIuhkO7eAGgQy00j/f/Gcl/LqpHUnqP6g0/eemd8qm3e9MvUYkZvGqpJS+YHr2R7Z vtGhmQslqJ1faPKUEA3xwDsRduHjWeE3EYEvau+aj8tF3a09spvnp4boUFOwBZ98/OzU=; X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus Received: from sc1.bsdpad.com ([163.172.212.18]:16663) by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587) with esmtpsa (LOGIN:rb743) (TLSv1:ECDHE-RSA-AES256-SHA:256) id 1glXVB-000mma-ip (Exim 4.91) (return-path ); Mon, 21 Jan 2019 11:12:25 +0000 Date: Mon, 21 Jan 2019 11:09:48 +0000 From: Ruslan Bukin To: Dinesh Thirumurthy Cc: freebsd-riscv Subject: Re: riscv-qemu build error Message-ID: <20190121110948.GA11387@bsdpad.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) Sender: "R. Bukin" X-Rspamd-Queue-Id: E964C841D2 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cam.ac.uk header.s=20180806.ppsw header.b=x0GqAAzx; spf=pass (mx1.freebsd.org: domain of rb743@hermes.cam.ac.uk designates 131.111.8.133 as permitted sender) smtp.mailfrom=rb743@hermes.cam.ac.uk X-Spamd-Result: default: False [-4.11 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_COMPOSITE_RCVD_IN_DNSWL_MED_DWL_DNSWL_LOW(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:131.111.0.0/16]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cam.ac.uk:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_MED(-0.20)[133.8.111.131.list.dnswl.org : 127.0.11.2]; MX_GOOD(-0.01)[cached: mx.cam.ac.uk]; FORGED_SENDER(0.30)[ruslan.bukin@cl.cam.ac.uk,rb743@hermes.cam.ac.uk]; IP_SCORE(-0.76)[ip: (-0.86), ipnet: 131.111.0.0/16(-0.65), asn: 786(-2.21), country: GB(-0.09)]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:786, ipnet:131.111.0.0/16, country:GB]; FREEMAIL_TO(0.00)[gmail.com]; FROM_NEQ_ENVFROM(0.00)[ruslan.bukin@cl.cam.ac.uk,rb743@hermes.cam.ac.uk]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[cam.ac.uk:s=20180806.ppsw]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.43)[-0.433,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cam.ac.uk]; DWL_DNSWL_LOW(0.00)[cam.ac.uk.dwl.dnswl.org : 127.0.11.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2019 11:12:29 -0000 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@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 > _______________________________________________ > freebsd-riscv@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-riscv > To unsubscribe, send any mail to "freebsd-riscv-unsubscribe@freebsd.org"