Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 590416 - Cross compile from x86_64 to x86 builds 64 bit utilities instead of 32 bit
Cross compile from x86_64 to x86 builds 64 bit utilities instead of 32 bit
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2010-05-09 09:05 EDT by Matthew Whitehead
Modified: 2010-06-28 11:44 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-06-28 11:44:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matthew Whitehead 2010-05-09 09:05:49 EDT
Description of problem: A 'rpmbuild --target i586' builds a few utilities in kernel-devel that are 64 bit and not 32 bit. This causes utilities such as systemtap to fail.

Version-Release number of selected component (if applicable): kernel-

How reproducible: 100%

Steps to Reproduce:
1. rpmbuild --target i586 -bb kernel.spec # done on x86_64 host
Actual results: The following files are compiled as 64bit:


Expected results:

Additional info:
Comment 1 Eric Sandeen 2010-05-11 11:56:49 EDT

hostprogs-y     := modpost mk_elfconfig


hostprogs-y     := fixdep docproc hash

"=== 4 Host Program support

Kbuild supports building executables on the host for use during the
compilation stage.
Two steps are required in order to use a host executable.

The first step is to tell kbuild that a host program exists. This is
done utilising the variable hostprogs-y."

IOW these are explicitly built for the host, not the target, in the upstream makefiles.

Why does systemtap care about things like fixdep and modpost?
Comment 2 William Cohen 2010-05-12 12:46:47 EDT
systemtap builds a kernel module for the instrumentation. One can see the "make -C ..." when using the "stap -vv ..." The fixdep and modpost are called during the build of the systemtap instrumentation kernel module.

It might be wiser to use mock to build the kernel in a chroot environment to ensure that everything is really 32-bit.

Comment 3 Eric Sandeen 2010-05-12 12:53:00 EDT
Ok, so I guess there are different requirements for these tools; when building for a package, we want the build host to do the processing of the things that will be packaged.  However, if we are actually packaging those tools themselves, we want them to be built for the target.  Hrm.  Probably not an easy one to fix... using Mock sounds good :)
Comment 4 Bug Zapper 2010-06-28 11:44:20 EDT
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.