Re: ../../gpc1/gcc-3.4.6/gcc/unwind-dw2.c:1031: error: dereferencing pointer to incomplete type

Waldek Hebisch <[email protected]> Sat, 6 Mar 2021 15:58:05 +0100
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
On Sat, Mar 06, 2021 at 09:12:44AM -0500, Paul Dufresne wrote:
> paul@jacko:~/gpc1-build$ LANG=C make
> 
<snip>
> 
> /home/paul/gpc1-build/gcc/xgcc -B/home/paul/gpc1-build/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -O2?? -DIN_GCC?????? -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition?? -isystem ./include?? -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED?? -I. -I. -I../../gpc1/gcc-3.4.6/gcc -I../../gpc1/gcc-3.4.6/gcc/. -I../../gpc1/gcc-3.4.6/gcc/../include?? -fexceptions -c ../../gpc1/gcc-3.4.6/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
> 
> ../../gpc1/gcc-3.4.6/gcc/unwind-dw2.c: In function `uw_frame_state_for':
> 
> ../../gpc1/gcc-3.4.6/gcc/unwind-dw2.c:1031: error: dereferencing pointer to incomplete type
> 
> make[2]: *** [libgcc.mk:236: libgcc/./unwind-dw2.o] Error 1

That looks weird, did you follow instructions that I posted?  When
using unpatched gcc-3.4.6 this error is due to libc change:
older libc headers defined 'struct context' and gcc-3.4.6 used it.
Recent libc headers no longer define this struct, so the error.
However, the patch I provided effectively comments out this code,
so it should be impossible to get such error. 

-- 
                              Waldek Hebisch