Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2019 11:00:17 -0600
From:      Sean Bruno <sbruno@freebsd.org>
To:        Jan Beich <jbeich@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   Re: qemu error on startup
Message-ID:  <f644270c-03ba-20a7-9f7a-f424d8afc3e6@freebsd.org>
In-Reply-To: <r248-30ax-wny@FreeBSD.org>
References:  <20190922103148.GM41568@bastion.zyxst.net> <r248-30ax-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--GHG8eOCDuBtXgSvnUQyAajkeMkUcmTS9L
Content-Type: multipart/mixed; boundary="EzPNgRpl8mVO3XVah9DqRGBwDXg6MQwia"

--EzPNgRpl8mVO3XVah9DqRGBwDXg6MQwia
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable



On 2019-09-22 07:52, Jan Beich wrote:
> tech-lists <tech-lists@zyxst.net> writes:
>=20
>> Hello,
>>
>> context: 12.1-PRERELEASE r352514 amd64
>> qemu-user-static-2.11.50.g20190730
>>
>> I have a rc.conf line like this:
>> qemu_user_static_enable=3DYES
>>
>> when my machine boots, I see this before the login prompt:
>>
>> /etc/rc: interpreter /usr/local/bin/qemu-riscv64-static not found, can=
not
>> register.=20
>> Yes, it's not found (because it's not there) but the issue for me is
>> why it's looking for riscv64 in the first place
>=20
> I also see this. r507618 says "- add qemu-user-static redirection for
> riscv64, no support, yet.", so the current behavior is expected.
> Maybe the error should be hidden behind non-default rc_info=3DYES e.g.,=

>=20
> --- emulators/qemu-sbruno/Makefile~
> +++ emulators/qemu-sbruno/Makefile
> @@ -3,6 +3,7 @@
> =20
>  PORTNAME=3D	qemu
>  PORTVERSION=3D	2.11.50.g20190730
> +PORTREVISION=3D	1
>  CATEGORIES=3D	emulators
>  PKGNAMESUFFIX?=3D	-sbruno
>  DIST_SUBDIR=3D	qemu/${PORTVERSION}
> diff --git emulators/qemu-sbruno/files/qemu_user_static.in emulators/qe=
mu-sbruno/files/qemu_user_static.in
> index 4022421f8963..52d690c79f54 100644
> --- emulators/qemu-sbruno/files/qemu_user_static.in
> +++ emulators/qemu-sbruno/files/qemu_user_static.in
> @@ -42,7 +42,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask  "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x=
ff\xff\xfe\xff\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register armv6 interpreter styled 'arm'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}arm${QEMU_SUFFIX}
> @@ -52,7 +52,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask  "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x=
ff\xff\xfe\xff\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register armv7 interpreter styled 'arm'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}arm${QEMU_SUFFIX}
> @@ -62,7 +62,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask  "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x=
ff\xff\xfe\xff\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register aarch64 interpreter styled 'aarch64'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}aarch64${QEMU_SUFFIX}
> @@ -72,7 +72,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask  "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x=
ff\xff\xfe\xff\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register mips interpreter styled 'mips'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}mips${QEMU_SUFFIX}
> @@ -82,7 +82,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xf=
f\xff\xff\xfe\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register mipsle interpreter styled 'mipsel'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}mipsel${QEMU_SUFFIX}
> @@ -92,7 +92,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xf=
f\xff\xff\xfe\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register mips64 interpreter styled 'mips64'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}mips64${QEMU_SUFFIX}
> @@ -102,7 +102,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask  "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x=
ff\xff\xff\xfe\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register powerpc interpreter styled 'ppc'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}ppc${QEMU_SUFFIX}
> @@ -112,7 +112,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xf=
f\xff\xff\xfe\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register powerpc64 interpreter styled 'ppc64'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}ppc64${QEMU_SUFFIX}
> @@ -122,7 +122,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xf=
f\xff\xff\xfe\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register riscv64 interpreter styled 'riscv64'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}riscv64${QEMU_SUFFIX}
> @@ -132,7 +132,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xf=
f\xff\xfe\xff\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  	# register sparc64 interpreter styled 'sparc64'
>  	interpreter=3D${QEMU_DIR}/${QEMU_PREFIX}sparc64${QEMU_SUFFIX}
> @@ -142,7 +142,7 @@ list_cmd=3D"${BINMISCCTL} list"
>  			--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xf=
f\xff\xff\xfe\xff\xff" \
>  			--size 20 --set-enabled
>  	else
> -		echo "$0: interpreter ${interpreter} not found, cannot register."
> +		info "interpreter ${interpreter} not found, cannot register."
>  	fi
>  }
> =20
> @@ -159,6 +159,6 @@ list_cmd=3D"${BINMISCCTL} list"
>  	${BINMISCCTL} remove powerpc64
>  	${BINMISCCTL} remove riscv64
>  	${BINMISCCTL} remove sparc64
> -}
> +} 2>/dev/null
> =20
>  run_rc_command "$1"
>=20

It is safe to ignore this error for now.  We are testing a riscv64
interpreter at this time and will update the port once that's in the git
repo.

sean


--EzPNgRpl8mVO3XVah9DqRGBwDXg6MQwia--

--GHG8eOCDuBtXgSvnUQyAajkeMkUcmTS9L
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEE6MTp+IA1BOHj9Lo0veT1/om1/LYFAl2HqKFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEU4
QzRFOUY4ODAzNTA0RTFFM0Y0QkEzNEJERTRGNUZFODlCNUZDQjYACgkQveT1/om1
/LbrFwf/ZjY3zrKEnw7m9zBj4Y7ozM/KMlwINTieX2mhcpBocl/qcg1anOXifbMq
+a97O175J3tMhBx28xQALjnQytMyucsKZz87bjr9Afpw21i5yBF5da57IaIIoqDl
y2zp3HGMtj15Szh2HkwVXX2SmRPvgpjOrFhJLA3LipgHCj1psiQkVI6r2LLv/rXh
XQ/yhKCk7AxIug+Pfbv7wouuiO5Y6oQBw1il8oI8JJOEcFcXM9z3cEoJGmBOlK12
zRILqWLwpLcHfqwh1p6CANVeixN09qkdQyNGU3/T0jj4MubjiKJr+iooGTji+QEB
54FzL98HZYWWvGxD3qWFuP9x5Txqpw==
=1Vuh
-----END PGP SIGNATURE-----

--GHG8eOCDuBtXgSvnUQyAajkeMkUcmTS9L--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f644270c-03ba-20a7-9f7a-f424d8afc3e6>