Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290543 - pax-utils scanmacho related compiler warnings sparcv9-sun-solaris2.10
Summary: pax-utils scanmacho related compiler warnings sparcv9-sun-solaris2.10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: Sparc64 Solaris
: High normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-26 09:51 UTC by Fabian Groffen
Modified: 2010-01-15 10:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2009-10-26 09:51:43 UTC
sparcv9-sun-solaris2.10-gcc -O3 -pipe -I/scratch/tmp/gentoo/sparcv9/usr/lib/gnulib/include -D_GNU_SOURCE -DVERSION="0.1.19" -o paxelf.o -c paxelf.c
paxmacho.c: In function 'readmacho_buffer':
paxmacho.c:275: warning: cast increases required alignment of target type
paxmacho.c:305: warning: cast increases required alignment of target type
paxmacho.c: In function 'firstloadcmd':
paxmacho.c:357: warning: cast increases required alignment of target type
paxmacho.c: In function 'nextloadcmd':
paxmacho.c:395: warning: cast increases required alignment of target type

sparcv9-sun-solaris2.10-gcc -O3 -pipe -I/scratch/tmp/gentoo/sparcv9/usr/lib/gnulib/include -D_GNU_SOURCE -DVERSION="0.1.19" -o scanmacho.o -c scanmacho.c
scanmacho.c: In function 'macho_file_needed_lib':
scanmacho.c:98: warning: cast increases required alignment of target type
scanmacho.c: In function 'macho_file_interp':
scanmacho.c:146: warning: cast increases required alignment of target type
scanmacho.c: In function 'macho_file_soname':
scanmacho.c:179: warning: cast increases required alignment of target type

note to self: scanelf has zillions of warnings like this on this platform too
Comment 1 SpanKY gentoo-dev 2009-12-20 20:07:31 UTC
a lot of the pax-utils code has these warnings on different systems (not just scanmacho).  ive seen it on ia64/hppa/sparc linux systems.

i dont really think it's a problem.
Comment 2 Fabian Groffen gentoo-dev 2009-12-20 20:14:06 UTC
in the meanwhile I've found out what the compiler is exactly trying to tell, and I think it's harmless too
Comment 3 SpanKY gentoo-dev 2010-01-15 10:29:02 UTC
looking into a different issue, i narrowed down this problem and fixed it.  just needed to use void* in important locations where the type really didnt matter.