Following on from #2.
Pull-Request has been merged by jhutar
Thank you!
Hello. After I have installed glibc-devel.i686 on my F23@x86_64 I'm getting:
$ python rpmfluff.py TestSimpleRpmBuild.test_multiarch_compilation test-rpmbuild-test-multiarch-compilation-0.1-1/test-multiarch-compilation.spec + umask 022 + cd /home/pok/Checkouts/rpmfluff/test-rpmbuild-test-multiarch-compilation-0.1-1/BUILD + cp /home/pok/Checkouts/rpmfluff/test-rpmbuild-test-multiarch-compilation-0.1-1/SOURCES/main.c . + exit 0 + umask 022 + cd /home/pok/Checkouts/rpmfluff/test-rpmbuild-test-multiarch-compilation-0.1-1/BUILD + gcc -m32 main.c /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/5.3.1/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: cannot find -lgcc_s collect2: error: ld returned 1 exit status error: Bad exit status from /var/tmp/rpm-tmp.RVx8Ot (%build) Bad exit status from /var/tmp/rpm-tmp.RVx8Ot (%build) E ====================================================================== ERROR: test_multiarch_compilation (__main__.TestSimpleRpmBuild) Ensure that building on multiple archs works as expected ---------------------------------------------------------------------- Traceback (most recent call last): File "rpmfluff.py", line 1690, in test_multiarch_compilation self.rpmbuild.make() File "rpmfluff.py", line 229, in make self.do_make() File "rpmfluff.py", line 297, in do_make log = check_output(command).splitlines(True) File "/usr/lib64/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) CalledProcessError: Command '['rpmbuild', '--define', '_topdir /home/pok/Checkouts/rpmfluff/test-rpmbuild-test-multiarch-compilation-0.1-1', '-ba', '--target', 'i386', 'test-rpmbuild-test-multiarch-compilation-0.1-1/test-multiarch-compilation.spec']' returned non-zero exit status 1 ---------------------------------------------------------------------- Ran 1 test in 0.042s FAILED (errors=1)
Any idea on what I need to install now? I have tried to install gcc.i686 as a blind attempt to get gcc_s, but that conflicts with gcc.x86_64 because of /usr/libexec/getconf/default file and I have no clue if it is a bug or feature.
/usr/libexec/getconf/default
You want libgcc.i686 I think.
And yes I should have actually made that test skip unless you have all those multilib bits installed. I didn't think of it.
Thank you, that helped! I'll add that as a comment at least to the test case.
Following on from #2.