I use for build #-------------------------------------- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig #autoreconf -fv --install ./configure \ CC="gcc -m32" CXX="g++ -m32" \ --build=x86_64-pc-linux-gnu \ --host=i686-pc-linux-gnu #-------------------------------------- And I have: #--------------------------- + export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig + PKG_CONFIG_PATH=/usr/local/lib/pkgconfig + ./configure 'CC=gcc -m32' 'CXX=g++ -m32' --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu Checking for program gcc or cc : /usr/bin/gcc Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program ranlib : /usr/bin/ranlib Checking for gcc : ok Checking for program git : /usr/bin/git Check for -MD : yes ERROR: Mismatch between --build and --host. Please use --cross-compile instead #---------------------------- But how use --cross-compile option ?
I use it for build 32bit packjage on 64 bit system. talloc 2.1.6
I read https://wiki.samba.org/index.php/Waf#cross-compiling and #---------------------------------------------- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig #autoreconf -fv --install ./configure \ CC="gcc -m32" CXX="g++ -m32" \ --cross-compile \ --cross-execute=x86_64-pc-linux-gnu \ --build=x86_64-pc-linux-gnu \ --hostcc=i686-pc-linux-gnu #---------------------------------------------- is ok ?
I leave the building, I needed it for building wayland, now I --disable-wayland (in build mesa) so it is solved.