Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 516282

Summary: 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
Product: Gentoo Linux Reporter: Daniel Santos <daniel.santos>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: change struct siginfo to siginfo_t

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