Bug 429074
| Summary: | invalid /usr/include/asm/gcc_intrin.h | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Dave Cantrell <dcantrell> | ||||
| Component: | kernel | Assignee: | Jarod Wilson <jarod> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Martin Jenner <mjenner> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 5.1 | CC: | dchapman, dwmw2, dzickus | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | RHBA-2008-0314 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-05-21 15:06:50 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
I know it's late in the game, but can this be fixed for 5.2 so I can build the new dhcpv6 correctly? Or should I find another way around this problem for 5.2? Thanks. pm-ack Upstream fix for the same issue: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=0df29025fd0379d5950d206314d0b10a2c8a9607 That patch is better, because it hides the global register variable altogether. We really don't want that in userspace. But it's also incomplete -- it should move gcc_intrin.h to 'unifdef-y' in the Kbuild file, since it now has __KERNEL__ bits to be removed. Adding the author of the upstream patch to the cc list. Doug, do you want to follow up on the additional fix suggested in comment #4? OK, so _that_ is what unifdef is for (I still feel like a newbie from time to time). I guess I didn't know how that stuff worked before but I see what is needed now. I will post a patch upstream. Created attachment 296400 [details]
RHEL5 version gcc_intrin.h fix, including Kbuild addition
Looks like there's a bunch of other stuff in there which shouldn't be visible in userspace too -- but maybe we don't want to be changing that for RHEL5. Will chase upstream. in kernel-$NEW_VER You can download this test kernel from http://people.redhat.com/dzickus/el5 in kernel-2.6.18-85.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0314.html |
While trying to build the new dhcpv6 on RHEL 5.1, I hit a problem on ia64 with the gcc_intrin.h header file in /usr/include/asm. The problem is an invalid __attribute_used__. Removing it seemed to work for me: --- gcc_intrin.h.orig 2007-10-10 17:23:42.000000000 -0400 +++ gcc_intrin.h 2008-01-16 21:33:16.000000000 -0500 @@ -23,7 +23,7 @@ extern void ia64_bad_param_for_setreg (void); extern void ia64_bad_param_for_getreg (void); -register unsigned long ia64_r13 asm ("r13") __attribute_used__; +register unsigned long ia64_r13 asm ("r13"); #define __ia64_setreg(regnum, val) \ ({ \