Red Hat Bugzilla – Bug 464613
11143 unconditional linker option arch/powerpc/lib/crtsavres.o causes external module buildfailure
Last modified: 2008-10-23 21:52:31 EDT
Created attachment 317996 [details]
related patch from opensuse's KOTD kernel.src.rpm
Description of problem:
The problem described in http://bugzilla.kernel.org/show_bug.cgi?id=11143 happens on F9 these days. Quoting that bug:
77 ifeq ($(CONFIG_PPC64),y)
94 LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o
if external modules are build against the source tree, then linking will fail
because there is no arch/powerpc/lib/crtsavres.o binary.
I see a make scripts and make prepare target, which copies
/usr/src/linux/scripts sources to /usr/src/linux-obj/<arch>/<flavor>/
Maybe the ctrsavres.S has to be copied as well?
Now, if I knew how kbuild works, I could provide a patch. But I do not know, so
I opened this bug in the hope that it gets fixed for 22.214.171.124
In the end it looks like this:
ld -m elf32ppc -r arch/powerpc/lib/crtsavres.o --build-id -o /home/thl/rpmbuild/BUILD/qc-usb-kmod-0.6.6/qc-usb-0.6.6/quickcam.ko /home/thl/rpmbuild/BUILD/qc-usb-kmod-0.6.6/qc-usb-0.6.6/quickcam.o /home/thl/rpmbuild/BUILD/qc-usb-kmod-0.6.6/qc-usb-0.6.6/quickcam.mod.o
ld: arch/powerpc/lib/crtsavres.o: No such file: No such file or directory
That was building of qc-usb for ppc
Version-Release number of selected component (if applicable):
Seems suse has patch in their kernels; in the changelog I found
* Mi Aug 06 2008 email@example.com
- add patches.suse/ppc-no-LDFLAGS_MODULE.patch
do not link external modules against arch/powerpc/lib/crtsavres.o
Same problem happens on F8.ppc; didn't check rawhide
Why is there no arch "ppc" in the "Platform" selection of bugzilla?
(In reply to comment #0)
> P.S.: Why is there no arch "ppc" in the "Platform" selection of bugzilla?
Ohh, there is powerpc; missed that, sorry
Copied dwmw2's fixes from rawhide in 126.96.36.199-58.rc1.
kernel-188.8.131.52-46.fc8 has been submitted as an update for Fedora 8.
kernel-184.108.40.206-71.fc9 has been submitted as an update for Fedora 9.
kernel-220.127.116.11-79.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update kernel'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-8929
kernel-18.104.22.168-79.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.