Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jun 2018 05:08:34 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        "Alex V. Petrov" <alexvpetrov@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Error build nvidia-driver with r334555
Message-ID:  <20180603120834.GT1389@albert.catwhisker.org>
In-Reply-To: <83fec8d8-699f-e86c-9884-9d8698a86a91@gmail.com>
References:  <83fec8d8-699f-e86c-9884-9d8698a86a91@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Yg/4YF7t1SayoUom
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 03, 2018 at 06:48:01PM +0700, Alex V. Petrov wrote:
> ....
> --- nvidia_subr.o ---
>=20
>=20
> nvidia_subr.c:367:26: error: 'memset' call operates on objects of type
> 'struct nv_ioctl_card_info' while the size is based on a different type
> 'struct nv_ioctl_card_info *' [-Werror,-Wsizeof
> -pointer-memaccess]
>     memset(ci, 0, sizeof(ci));
>            ~~            ^~
> nvidia_subr.c:367:26: note: did you mean to dereference the argument to
> 'sizeof' (and multiply it by the number of elements)?
>=20
>     memset(ci, 0, sizeof(ci));
>                          ^~
> 1 error generated.
> *** [nvidia_subr.o] Error code 1
> ....

Aye; please ref.
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228709>; for
additional details.

The issue has been narrowed down to the range r334529 - r334535; I'm
suspecting r334533 and/or r334534.  (Not that the commits are in any way
"faulty" -- merely that the nvidia-driver port may need some "evasive
action" to allow for the change).

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Mr. Trump, you reap what you sow:  This is YOUR trade war.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--Yg/4YF7t1SayoUom
Content-Type: application/pgp-signature; name="signature.asc"

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

iQGTBAEBCgB9FiEEzLfO+ReoAfQwZNd7FTnMQKBJ7hcFAlsT2kFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEND
QjdDRUY5MTdBODAxRjQzMDY0RDc3QjE1MzlDQzQwQTA0OUVFMTcACgkQFTnMQKBJ
7hcD2Qf/RGiTBLWuYSuyx7evgeAlhSz3O5OEOk665tYA3ftmXEH7sIzcwQHCjkoQ
9vshBiNJjwPiF0/lYNMksSlNpVQt6NbZ+Lx8N8Pjzdt6La/+X4XtiJLEmYfclgVj
F1QDRN4CXjNVbwDXQNTHGr76Sk588j0J3Jzp+pohc1/pzLHygctcYlv3nDtPUDM5
Gjj32ktYQTjFogCLBUQes8XNPgDj/xvd2n+cOoJDNUINDTJUwHWMoMxvqE2SGlLt
fc9kl19cO64P2tSsM5lKngOfxE19/HjRFxIjJQTvxfDxGne8GjLU4rG3Ku/53Xme
dOYHC9zPUZikP3bES6iUNKm2PWxAwg==
=4UxO
-----END PGP SIGNATURE-----

--Yg/4YF7t1SayoUom--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180603120834.GT1389>