Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516282 - sys-devel/gcc-4.0.4 - In file included from ../work/gcc-4.0.4/gcc/unwind-dw2.c:257: ../work/gcc-4.0.4/gcc/config/i386/linux-unwind.h:138: error: field 'info' has incomplete type
Summary: sys-devel/gcc-4.0.4 - In file included from ../work/gcc-4.0.4/gcc/unwind-dw2....
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-07-04 05:22 UTC by Daniel Santos
Modified: 2014-07-11 14:58 UTC (History)
0 users

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


Attachments
change struct siginfo to siginfo_t (siginfo-4.0.4.patch,3.58 KB, patch)
2014-07-04 05:22 UTC, Daniel Santos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2014-07-04 05:22:09 UTC
Created attachment 380156 [details, diff]
change struct siginfo to siginfo_t

This problem effects multiple older versions of gcc, this bug is specifically for gcc-4.0.4. Related bug #516276. This same patch may work for more than one 4.x version.

A promiscuous cure seems to be (same as 3.4.6-r2):

cd ${PORTAGE_TMPDIR}/sys-devel/gcc-<version>/work
sed -i 's/struct siginfo/siginfo_t/g;' $(grep -r 'struct siginfo' .|awk -F: '{print $1}')

In file included from /home/tmp-portage/portage/sys-devel/gcc-4.0.4/work/gcc-4.0.4/gcc/unwind-dw2.c:257:
/home/tmp-portage/portage/sys-devel/gcc-4.0.4/work/gcc-4.0.4/gcc/config/i386/linux-unwind.h: In function 'x86_fallback_frame_state':
/home/tmp-portage/portage/sys-devel/gcc-4.0.4/work/gcc-4.0.4/gcc/config/i386/linux-unwind.h:138: error: field 'info' has incomplete type
Comment 1 Daniel Santos 2014-07-11 14:58:05 UTC
Caused by USE=vanilla