Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Are there any way for building x86_64 arch target rpm on a 32 bit rpmbuild build system?

$ rpmbuild -ba --target=x86_64 kernel64.spec
Building target platforms: x86_64
Building for target x86_64
error: No compatible architectures found for build

I have also tried setarch.

$ setarch x86_64 rpmbuild -ba --target=x86_64 kernel64.spec
setarch: x86_64: Unrecognized architecture
share|improve this question

1 Answer 1

You can set up an x86_64 chroot (assuming the cpu can do both x86_64/ix86), or you can attempt a cross compiler to build x86_64 on ix86.

The issue is often that ix86 gcc tools do not support x86_64.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.