Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178336 - grub-0.97-r3 QA Notice: poor programming practices strict-aliasing
Summary: grub-0.97-r3 QA Notice: poor programming practices strict-aliasing
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2007-05-13 13:31 UTC by Brant Gurganus
Modified: 2008-07-18 07:06 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_info,4.00 KB, text/plain)
2008-07-17 23:28 UTC, muhsin
Details
log (log_grub,3.77 KB, text/plain)
2008-07-17 23:29 UTC, muhsin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brant Gurganus 2007-05-13 13:31:02 UTC
Installing grub-0.97-r3 with FEATURES="stricter" will not succeed because grub dereferences type-punned pointers.

Reproducible: Always

Steps to Reproduce:
1. FEATURES="stricter" emerge "=sys-boot/grub-0.97-r3"
Actual Results:  
The package builds and runs its tests fine, but when it is to be merged to the system, it fails with a "QA Notice: Package has poor programming practices which may compile fine but exhibit random runtime failures."

Expected Results:  
These warnings should not occur allowing the package to install with FEATURES="stricter".

The usual solution for this warning is to remove the case causing the problem and use a union instead to allow access to the same location with different types.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 14:04:58 UTC
Are you going to post the emerge output, or are we supposed to guess?
Comment 2 Brant Gurganus 2007-05-13 14:17:29 UTC
 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:222: warning: dereferencing type-punned pointer will break strict-aliasing rules
builtins.c:4862: warning: dereferencing type-punned pointer will break strict-aliasing rules
disk_io.c:1027: warning: dereferencing type-punned pointer will break strict-aliasing rules
disk_io.c:1057: warning: dereferencing type-punned pointer will break strict-aliasing rules
tparm.c:719: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:222: warning: dereferencing type-punned pointer will break strict-aliasing rules
builtins.c:4862: warning: dereferencing type-punned pointer will break strict-aliasing rules
disk_io.c:1027: warning: dereferencing type-punned pointer will break strict-aliasing rules
disk_io.c:1057: warning: dereferencing type-punned pointer will break strict-aliasing rules
tparm.c:719: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
char_io.c:181: warning: dereferencing type-punned pointer will break strict-aliasing rules
Comment 3 muhsin 2008-07-17 23:28:46 UTC
Created attachment 160675 [details]
emerge --info


emerge --info
Comment 4 muhsin 2008-07-17 23:29:11 UTC
Created attachment 160677 [details]
log
Comment 5 muhsin 2008-07-17 23:30:23 UTC
im stuck on the same error as this bug, i left part of the log and emerge --info on the attachment.

thanks
Comment 6 muhsin 2008-07-18 07:06:05 UTC
(In reply to comment #5)
> im stuck on the same error as this bug, i left part of the log and emerge
> --info on the attachment.
> 
> thanks
> 

thanks...remounting proc fixed it for me