Re: Meson build error: bad register name

Pekka Paalanen <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <[email protected]>
On Wed, 4 Sep 2019 08:49:22 +0200
YuGiOhJCJ <[email protected]> wrote:

> On 03/09/2019 15:57, Pekka Paalanen wrote:
> > On Tue, 3 Sep 2019 14:30:23 +0200
> > YuGiOhJCJ <[email protected]> wrote:
> > 
> >> Hello,
> >>
> >> I have a 64-bit machine, on a 64-bit operating system, able to run 64-bit and 32-bit programs.
> >> I would like to build on this machine mesa 19.1.4 32-bit.
> > 
> > Hi,
> > 
> > have you tried the instructions from https://www.mesa3d.org/meson.html
> > instead, particularly "Cross-compilation and 32-bit builds"?
> > 
> > 
> > Thanks,
> > pq
> > 
> 
> Indeed, following these instructions has solved my problem.
> The trick is to use a file and the --cross-file meson parameter:
> ---
> set -e
> ARCHCFLAGS="-O2 -m32"
> NUMJOBS="-j $(grep -c ^processor /proc/cpuinfo)"
> NAME="32-mesa"
> VERSION="19.1.4"
> DIR="mesa-${VERSION}"
> DESTDIR="/tmp/${NAME}-${VERSION}"
> tar xvf ${DIR}.tar.xz
> mkdir -pv ${DIR}/build
> cd ${DIR}/build
> export PATH="/usr/bin32:${PATH}"
> export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib"
> export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
> export CFLAGS="${ARCHCFLAGS}"
> export CXXFLAGS="${ARCHCFLAGS}"
> export LDFLAGS="${ARCHCFLAGS}"

Hi,

I assume you should not be setting any *FLAGS environment variables
either. PATH and LD_LIBRARY_PATH may be necessary, but PKG_CONFIG_PATH
has a better replacement in Meson's recent versions IIRC as an explicit
configuration option.

I wonder if your pkg-config paths are even correct, how do you ensure
you find the 32-bit instead of 64-bit devel packages? Well, if that
went actually wrong, it should be an obvious failure.

The problem with environment variables is that people never agree which
ones or when should be recorded by the build system so they do not need
to be set again, and which ones need to be always manually set when
doing anything. This leads to a situation where one is never sure what
happens or things revert unexpectedly.

You don't seem to be using NUMJOBS, ninja by default occupies
all cores if possible.


Thanks,
pq

_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAl1vYfEACgkQI1/ltBGq
qqdD5xAAoTsMyewmA8Dcgvy0fP1xto2jmwz/qroCnjtMnfNmTXQnnBe5TxzUTNrz
A5b/EWP0azvvKcq5rzWu1QiR1RMM4jeJ3vcuEWIPFimIbp5OLL/VmZqTnnLsWoIU
7x5kvYEb9wklAWNHi3B+v8dzincBkuZllWvv6DoGWDqTl4AbbuhyhdO2J7lSogzg
JsqP1+R08FvOOyg6r5yJXKrXZ90alpSBt7Xe4YNGS0hH/Fe0J1YTcE8xKnQzx9Ps
BIQycUU1ezCH0uJ2djG7RPVR1mx+zRzTjhID+2h5BvLqkNaMo7QsqnhIOzdLKMHG
o6bdS9+VEbz1XceVE4AWB9FFN9ZsUGnRawFQCIAvj/KtKd1I6n7scrdZUYFSW6Zl
wqOx0E9kWEhGuBCECnAhO+BzXUnhqslO5XkQKywGeW8wgu/kVkkGGMSWnYVKwuL0
Cwly+DeQ+DYnar9JpWzqdj8419xYi1CSShaWaGMIiJTu5o9yfHhbmkfvaIVIDVXd
ay+dAc5JSuCKi6V+n7fhsVZWkh8c1fIHwKUUm9rsPkUH2tNg3RzQcnosfLlMXRst
4PNE/QGR6J87aDQHgRZ53M5Ebu/Iz+skx9zSvwWLPgz4PagpYNiaS8j5wdWx/FJY
XKhlKXVHOz78l9TrSeGqQOPwzyZP85mX4FlS4IqbEWYRUGz8J4Q=
=vmAD
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.