Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137440 - mdadm uses funky pointer dereferencing which breaks aliasing rules
Summary: mdadm uses funky pointer dereferencing which breaks aliasing rules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 15:35 UTC by Andrew Gaffney (RETIRED)
Modified: 2006-06-26 19:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build failure with gcc-4.1.1 (mdadm,2.54 KB, text/plain)
2006-06-20 15:35 UTC, Andrew Gaffney (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaffney (RETIRED) gentoo-dev 2006-06-20 15:35:09 UTC
The summary says it all. mdadm-1.12.0 builds fine with gcc-3.4.6 and fails in gcc-4.1.1 due to warnings being treated as errors in gcc-4.1.1. The latest ~x86 (2.5) builds just fine with both gcc versions. Perhaps we can stable a newer version in time for the release snapshot?
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-20 15:35:33 UTC
Created attachment 89674 [details]
build failure with gcc-4.1.1
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2006-06-22 13:51:00 UTC
This only happens when you add '-O2' to CXFLAGS, as done by the ebuild.
I suggest to 'filter-flags "-O*"'.
Comment 3 SpanKY gentoo-dev 2006-06-23 22:44:47 UTC
ha you cant be serious
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2006-06-24 06:03:15 UTC
vapier: this is a potential release blocker for amd64, so I'd be delighted to have it rather solved before the snapshot date.
Comment 5 SpanKY gentoo-dev 2006-06-24 16:55:46 UTC
what does that have to do with adding a hack like filtering flags ?  fix it properly or dont fix it at all
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-24 17:07:50 UTC
(In reply to comment #5)
> what does that have to do with adding a hack like filtering flags ?  fix it
> properly or dont fix it at all

I don't think it was clear what your previous comment was regarding. I took it the same way that Kugelfang did...that the bug itself was bogus.
Comment 7 SpanKY gentoo-dev 2006-06-24 17:22:05 UTC
the bug is not bogus, later versions of mdadm just dont compile with -Werror

see the recent thread on gentoo-dev mailing list about aliasing rules
Comment 8 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-24 17:29:00 UTC
No, no, no...I know the bug isn't bogus. I wouldn't have filed it :P I was saying that Kugelfang (probably) and I took your comment (#3) to mean that you thought the bug was bogus.
Comment 9 SpanKY gentoo-dev 2006-06-24 17:50:16 UTC
right

my comment #3 was in reference to comment #2 being completely bogus
Comment 10 SpanKY gentoo-dev 2006-06-24 17:51:36 UTC
2.5-r1 now has a patch to fix this properly
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2006-06-26 14:42:14 UTC
Since the current stable is nowhere near 2.5-r1, can we get this reopened and assigned to the proper arch teams for stabilization?  Fixing it in the tree doesn't help Release Engineering if it isn't stable, too.
Comment 12 SpanKY gentoo-dev 2006-06-26 19:39:51 UTC
file a new bug