On 14/02/2023 21.17, Valentin Vidic wrote:
On Tue, Feb 14, 2023 at 06:18:55AM +0100, Fabio M. Di Nitto wrote:
The process would have to look like:

<deploy amd64 debian image and add to CI> (usual)
apt-get install <list of packages + 32 bit versions of them>
git clone gfs2-utils
export CFLAGS/LDFLAGS/CC or whatever env var
<normal build bits go here>
./autogen.sh
./configure..
make
make <tests>

Using other build tools like debbuild or mock has been problematic in the
past for other projects, might not be the case for gfs2-utils.

so you can try that all in a local VM and let me know the steps, then we can
add it to CI.

Sure, the commands to build and test a 32-bit version look like this for me:

dpkg --add-architecture i386

doh.. didn´t think of cross compilation.

apt-get update
apt-get install --yes build-essential crossbuild-essential-i386 autoconf 
automake autopoint autotools-dev bison flex check:i386 libblkid-dev:i386 
libbz2-dev:i386 libncurses-dev:i386 libtool pkg-config:i386 zlib1g-dev:i386
./configure --build=x86_64-linux-gnu --host=i686-linux-gnu
make
make check


ack perfect, we already have a Debian CI builder dedicated to arm cross compilation, we can tweak it to add i386 as well.

Thanks
Fabio

Reply via email to