Summary: | sys-power/cpufrequtils-008{,-r1} compilation failed "can't find a register in class ‘BREG’ while reloading ‘asm’" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcin Mirosław <bug> |
Component: | Current packages | Assignee: | Matt Turner <mattst88> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hardened, mobile+disabled |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 375921 | ||
Attachments: |
build.log
patch to fix compilation on x86-32 with -fPIC |
Description
Marcin Mirosław
2011-07-22 08:10:21 UTC
Created attachment 280579 [details]
build.log
build.log
*** This bug has been marked as a duplicate of bug 375899 *** Lars, what kind of problem is common for my bug and bug #375899 ? I don't see the similarity to the bug this is marked a duplicate of. Marcin, can you reproduce this with cpufrequtils-008? You should be able to, since the cpuid code was added before -008. I can't reproduce this with gcc-4.5.2 or 4.6.1, but I see that you're using 4.4.5, so maybe that's related? Indeed, -008 fails to compile too. I think this related to hardened gcc. Please look at those urls: http://linux.derkeiler.com/Newsgroups/comp.os.linux.development.system/2008-01/msg00173.html , http://comments.gmane.org/gmane.linux.oprofile/9684 . Thanks. I've got a good idea how to fix it, thanks to the first link you gave. (In reply to comment #3) > Lars, what kind of problem is common for my bug and bug #375899 ? Sorry I did this by mistake. Of course these two bugs are completely unrelated to each other. Created attachment 280953 [details, diff]
patch to fix compilation on x86-32 with -fPIC
Please give the patch a test and confirm that it fixes the problem for you.
Ok, with this patch cpufrequtils compiles cleanly. Committed and sent upstream as well. Thanks for reporting and testing! |