Code: Select all
# Closest i can get is a command like this (on a 64-bit system):
linux32 rpmbuild --target=i386 --rebuild SRPMS/sip-4.14.6-4.el7.src.rpm
Code: Select all
mock -v -r epel-7-x86_64 --arch=i386 \
--resultdir=./rpms \
--rebuild sip-4.14.6-4.el7.src.rpm
Code: Select all
...
gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -O2 -Wall -W -DNDEBUG -I. -o lexer.o /builddir/build/BUILD/sip-4.14.6/sipgen/lexer.c
g++ -Wl,-z,relro -o sip main.o transform.o gencode.o extracts.o export.o type_hints.o heap.o parser.o lexer.o
/usr/bin/ld: i386 architecture of input file `main.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `transform.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `gencode.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `extracts.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `export.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `type_hints.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `heap.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `parser.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `lexer.o' is incompatible with i386:x86-64 output
collect2: error: ld returned 1 exit status
Is there another tool like mock that they are using? Or perhaps a custom mock configuration that just doesn't ship? Or more importantly; is there a good spot to learn how to build the accompanied i686 packages that sit next to their x86_64 counterparts?