../../gpc1/gcc-3.4.6/gcc/unwind-dw2.c:1031: error: dereferencing pointer to incomplete type
Paul Dufresne <[email protected]> Sat, 06 Mar 2021 09:12:44 -0500
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
--===============8384905264623943375== Content-Type: multipart/alternative; boundary="----=_Part_128857_1953034679.1615039964552" ------=_Part_128857_1953034679.1615039964552 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable paul@jacko:~/gpc1-build$ LANG=3DC make make[1]: Entering directory '/home/paul/gpc1-build/libiberty' make[2]: Entering directory '/home/paul/gpc1-build/libiberty/testsuite' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/paul/gpc1-build/libiberty/testsuite' make[1]: Leaving directory '/home/paul/gpc1-build/libiberty' make[1]: Entering directory '/home/paul/gpc1-build/intl' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/paul/gpc1-build/intl' make[1]: Entering directory '/home/paul/gpc1-build/gcc' cd ../../gpc1/gcc-3.4.6/gcc/p/rts && make -f Makefile.in srcdir=3D. GCC_VER= SION=3D"3.4.6" SHELL=3D"/bin/sh" CFLAGS=3D"-g -O2" PFLAGS=3D"" AR_FLAGS=3D"= rc" RTSFLAGS=3D"" GPC_DESTDIR=3D"../.." AR=3D"ar" RANLIB=3D"ranlib" RANLIB_= TEST=3D"" generated-files make[2]: Entering directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' make[2]: Nothing to be done for 'generated-files'. make[2]: Leaving directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' cd ../../gpc1/gcc-3.4.6/gcc/p/rts && make -f Makefile.in srcdir=3D. GCC_VER= SION=3D"3.4.6" SHELL=3D"/bin/sh" CFLAGS=3D"-g -O2" PFLAGS=3D"" AR_FLAGS=3D"= rc" RTSFLAGS=3D"" GPC_DESTDIR=3D"../.." AR=3D"ar" RANLIB=3D"ranlib" RANLIB_= TEST=3D"" generated-files make[2]: Entering directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' make[2]: Nothing to be done for 'generated-files'. make[2]: Leaving directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' cd ../../gpc1/gcc-3.4.6/gcc/p/rts && make -f Makefile.in srcdir=3D. GCC_VER= SION=3D"3.4.6" SHELL=3D"/bin/sh" CFLAGS=3D"-g -O2" PFLAGS=3D"" AR_FLAGS=3D"= rc" RTSFLAGS=3D"" GPC_DESTDIR=3D"../.." AR=3D"ar" RANLIB=3D"ranlib" RANLIB_= TEST=3D"" generated-files make[2]: Entering directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' make[2]: Nothing to be done for 'generated-files'. make[2]: Leaving directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' cd ../../gpc1/gcc-3.4.6/gcc/p/rts && make -f Makefile.in srcdir=3D. GCC_VER= SION=3D"3.4.6" SHELL=3D"/bin/sh" CFLAGS=3D"-g -O2" PFLAGS=3D"" AR_FLAGS=3D"= rc" RTSFLAGS=3D"" GPC_DESTDIR=3D"../.." AR=3D"ar" RANLIB=3D"ranlib" RANLIB_= TEST=3D"" generated-files make[2]: Entering directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' make[2]: Nothing to be done for 'generated-files'. make[2]: Leaving directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' cd ../../gpc1/gcc-3.4.6/gcc/p/rts && make -f Makefile.in srcdir=3D. GCC_VER= SION=3D"3.4.6" SHELL=3D"/bin/sh" CFLAGS=3D"-g -O2" PFLAGS=3D"" AR_FLAGS=3D"= rc" RTSFLAGS=3D"" GPC_DESTDIR=3D"../.." AR=3D"ar" RANLIB=3D"ranlib" RANLIB_= TEST=3D"" generated-files make[2]: Entering directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' make[2]: Nothing to be done for 'generated-files'. make[2]: Leaving directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts' make[1]: Circular libgcc.a <- pascal dependency dropped. make \ =C2=A0 CFLAGS=3D"-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmiss= ing-prototypes -pedantic -Wno-long-long=C2=A0 " \ =C2=A0 CONFIG_H=3D"tconfig.h ../../gpc1/gcc-3.4.6/gcc/../include/ansidecl.h= " TM_H=3D"tm.h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ../../gpc1/gcc-3.4.6/gcc/confi= g/i386/biarch64.h ../../gpc1/gcc-3.4.6/gcc/config/i386/i386.h ../../gpc1/gc= c-3.4.6/gcc/config/i386/unix.h ../../gpc1/gcc-3.4.6/gcc/config/i386/att.h .= ./../gpc1/gcc-3.4.6/gcc/config/dbxelf.h ../../gpc1/gcc-3.4.6/gcc/config/elf= os.h ../../gpc1/gcc-3.4.6/gcc/config/svr4.h ../../gpc1/gcc-3.4.6/gcc/config= /linux.h ../../gpc1/gcc-3.4.6/gcc/config/i386/x86-64.h ../../gpc1/gcc-3.4.6= /gcc/config/i386/linux64.h ../../gpc1/gcc-3.4.6/gcc/defaults.h insn-constan= ts.h insn-flags.h" \ =C2=A0 INCLUDES=3D"-I. -I. -I../../gpc1/gcc-3.4.6/gcc -I../../gpc1/gcc-3.4.= 6/gcc/. -I../../gpc1/gcc-3.4.6/gcc/../include " \ =C2=A0 MAKEOVERRIDES=3D \ =C2=A0 -f libgcc.mk all make[2]: Entering directory '/home/paul/gpc1-build/gcc' for d in libgcc 32 libgcc/32; do \ =C2=A0 if [ -d $d ]; then true; else /bin/sh ../../gpc1/gcc-3.4.6/gcc/mkins= talldirs $d; fi; \ done if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi /home/paul/gpc1-build/gcc/xgcc -B/home/paul/gpc1-build/gcc/ -B/usr/local/x8= 6_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isy= stem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64= -unknown-linux-gnu/sys-include -O2=C2=A0 -DIN_GCC=C2=A0=C2=A0=C2=A0 -W -Wal= l -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-defi= nition=C2=A0 -isystem ./include=C2=A0 -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIB= GCC2 -D__GCC_FLOAT_NOT_NEEDED=C2=A0 -I. -I. -I../../gpc1/gcc-3.4.6/gcc -I..= /../gpc1/gcc-3.4.6/gcc/. -I../../gpc1/gcc-3.4.6/gcc/../include=C2=A0 -fexce= ptions -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 make[2]: Leaving directory '/home/paul/gpc1-build/gcc' make[1]: *** [Makefile:1228: libgcc.a] Error 2 make[1]: Leaving directory '/home/paul/gpc1-build/gcc' make: *** [Makefile:23375: all-gcc] Error 2 paul@jacko:~/gpc1-build$=20 "The =E2=80=9Cdereferencing pointer to incomplete type=E2=80=9D error commo= nly occurs in C when one tries to dereference a type (usually a struct) tha= t is: not declared at all. declared, but not defined. The error in the first bullet point occurs because C cannot=20 find the struct that is being dereferenced. The reason for this could be that the struct may not have been declared, or that the user made a=20 typographical error in the struct=E2=80=99s name" from: https://www.educative.io/edpresso/resolving-the-dereferencing-pointer= -to-incomplete-type-error At this stage, it seems to use generated xgcc to compile itself... a bit we= ird it get errors at this stage to me. Will investigate a bit more later. ------=_Part_128857_1953034679.1615039964552 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>= <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h= ead><body ><div style=3D"font-family: Verdana, Arial, Helvetica, sans-serif= ; font-size: 10pt;"><div>paul@jacko:~/gpc1-build$ LANG=3DC make<br></div><d= iv>make[1]: Entering directory '/home/paul/gpc1-build/libiberty'<br></div><= div>make[2]: Entering directory '/home/paul/gpc1-build/libiberty/testsuite'= <br></div><div>make[2]: Nothing to be done for 'all'.<br></div><div>make[2]= : Leaving directory '/home/paul/gpc1-build/libiberty/testsuite'<br></div><d= iv>make[1]: Leaving directory '/home/paul/gpc1-build/libiberty'<br></div><d= iv>make[1]: Entering directory '/home/paul/gpc1-build/intl'<br></div><div>m= ake[1]: Nothing to be done for 'all'.<br></div><div>make[1]: Leaving direct= ory '/home/paul/gpc1-build/intl'<br></div><div>make[1]: Entering directory = '/home/paul/gpc1-build/gcc'<br></div><div>cd ../../gpc1/gcc-3.4.6/gcc/p/rts= && make -f Makefile.in srcdir=3D. GCC_VERSION=3D"3.4.6" SHELL=3D"/= bin/sh" CFLAGS=3D"-g -O2" PFLAGS=3D"" AR_FLAGS=3D"rc" RTSFLAGS=3D"" GPC_DES= TDIR=3D"../.." AR=3D"ar" RANLIB=3D"ranlib" RANLIB_TEST=3D"" generated-files= <br></div><div>make[2]: Entering directory '/home/paul/gpc1/gcc-3.4.6/gcc/p= /rts'<br></div><div>make[2]: Nothing to be done for 'generated-files'.<br><= /div><div>make[2]: Leaving directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts'<= br></div><div>cd ../../gpc1/gcc-3.4.6/gcc/p/rts && make -f Makefile= .in srcdir=3D. GCC_VERSION=3D"3.4.6" SHELL=3D"/bin/sh" CFLAGS=3D"-g -O2" PF= LAGS=3D"" AR_FLAGS=3D"rc" RTSFLAGS=3D"" GPC_DESTDIR=3D"../.." AR=3D"ar" RAN= LIB=3D"ranlib" RANLIB_TEST=3D"" generated-files<br></div><div>make[2]: Ente= ring directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts'<br></div><div>make[2]:= Nothing to be done for 'generated-files'.<br></div><div>make[2]: Leaving d= irectory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts'<br></div><div>cd ../../gpc1/= gcc-3.4.6/gcc/p/rts && make -f Makefile.in srcdir=3D. GCC_VERSION= =3D"3.4.6" SHELL=3D"/bin/sh" CFLAGS=3D"-g -O2" PFLAGS=3D"" AR_FLAGS=3D"rc" = RTSFLAGS=3D"" GPC_DESTDIR=3D"../.." AR=3D"ar" RANLIB=3D"ranlib" RANLIB_TEST= =3D"" generated-files<br></div><div>make[2]: Entering directory '/home/paul= /gpc1/gcc-3.4.6/gcc/p/rts'<br></div><div>make[2]: Nothing to be done for 'g= enerated-files'.<br></div><div>make[2]: Leaving directory '/home/paul/gpc1/= gcc-3.4.6/gcc/p/rts'<br></div><div>cd ../../gpc1/gcc-3.4.6/gcc/p/rts &&= amp; make -f Makefile.in srcdir=3D. GCC_VERSION=3D"3.4.6" SHELL=3D"/bin/sh"= CFLAGS=3D"-g -O2" PFLAGS=3D"" AR_FLAGS=3D"rc" RTSFLAGS=3D"" GPC_DESTDIR=3D= "../.." AR=3D"ar" RANLIB=3D"ranlib" RANLIB_TEST=3D"" generated-files<br></d= iv><div>make[2]: Entering directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts'<b= r></div><div>make[2]: Nothing to be done for 'generated-files'.<br></div><d= iv>make[2]: Leaving directory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts'<br></di= v><div>cd ../../gpc1/gcc-3.4.6/gcc/p/rts && make -f Makefile.in src= dir=3D. GCC_VERSION=3D"3.4.6" SHELL=3D"/bin/sh" CFLAGS=3D"-g -O2" PFLAGS=3D= "" AR_FLAGS=3D"rc" RTSFLAGS=3D"" GPC_DESTDIR=3D"../.." AR=3D"ar" RANLIB=3D"= ranlib" RANLIB_TEST=3D"" generated-files<br></div><div>make[2]: Entering di= rectory '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts'<br></div><div>make[2]: Nothin= g to be done for 'generated-files'.<br></div><div>make[2]: Leaving director= y '/home/paul/gpc1/gcc-3.4.6/gcc/p/rts'<br></div><div>make[1]: Circular lib= gcc.a <- pascal dependency dropped.<br></div><div>make \<br></div><div>&= nbsp; CFLAGS=3D"-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissi= ng-prototypes -pedantic -Wno-long-long " \<br></div><div> CONFI= G_H=3D"tconfig.h ../../gpc1/gcc-3.4.6/gcc/../include/ansidecl.h" TM_H=3D"tm= .h ../../gpc1/gcc-3.4.6/gcc/config/i386/biarc= h64.h ../../gpc1/gcc-3.4.6/gcc/config/i386/i386.h ../../gpc1/gcc-3.4.6/gcc/= config/i386/unix.h ../../gpc1/gcc-3.4.6/gcc/config/i386/att.h ../../gpc1/gc= c-3.4.6/gcc/config/dbxelf.h ../../gpc1/gcc-3.4.6/gcc/config/elfos.h ../../g= pc1/gcc-3.4.6/gcc/config/svr4.h ../../gpc1/gcc-3.4.6/gcc/config/linux.h ../= ../gpc1/gcc-3.4.6/gcc/config/i386/x86-64.h ../../gpc1/gcc-3.4.6/gcc/config/= i386/linux64.h ../../gpc1/gcc-3.4.6/gcc/defaults.h insn-constants.h insn-fl= ags.h" \<br></div><div> INCLUDES=3D"-I. -I. -I../../gpc1/gcc-3.4.6/gc= c -I../../gpc1/gcc-3.4.6/gcc/. -I../../gpc1/gcc-3.4.6/gcc/../include " \<br= ></div><div> MAKEOVERRIDES=3D \<br></div><div> -f libgcc.mk all= <br></div><div>make[2]: Entering directory '/home/paul/gpc1-build/gcc'<br><= /div><div>for d in libgcc 32 libgcc/32; do \<br></div><div> if [ -d $= d ]; then true; else /bin/sh ../../gpc1/gcc-3.4.6/gcc/mkinstalldirs $d; fi;= \<br></div><div>done<br></div><div>if [ -f stmp-dirs ]; then true; else to= uch stmp-dirs; fi<br></div><div>/home/paul/gpc1-build/gcc/xgcc -B/home/paul= /gpc1-build/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x8= 6_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/in= clude -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -D= IN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmis= sing-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-d= w2.c -o libgcc/./unwind-dw2.o<br></div><div>../../gpc1/gcc-3.4.6/gcc/unwind= -dw2.c: In function `uw_frame_state_for':<br></div><div>../../gpc1/gcc-3.4.= 6/gcc/unwind-dw2.c:1031: error: dereferencing pointer to incomplete type<br= ></div><div>make[2]: *** [libgcc.mk:236: libgcc/./unwind-dw2.o] Error 1<br>= </div><div>make[2]: Leaving directory '/home/paul/gpc1-build/gcc'<br></div>= <div>make[1]: *** [Makefile:1228: libgcc.a] Error 2<br></div><div>make[1]: = Leaving directory '/home/paul/gpc1-build/gcc'<br></div><div>make: *** [Make= file:23375: all-gcc] Error 2<br></div><div>paul@jacko:~/gpc1-build$ <br></d= iv><div><br></div><div>"The <b>=E2=80=9Cdereferencing pointer to incomplete= type=E2=80=9D error</b> commonly occurs in C when one tries to dereference= a type (usually a struct) that is:<br></div><ul><li>not declared at all.<b= r></li><li>declared, but <i>not</i> defined.<br></li></ul><p>The error in t= he <i>first bullet point</i> occurs because C cannot=20 find the struct that is being dereferenced. The reason for this could be that the struct may not have been declared, or that the user made a=20 typographical error in the struct=E2=80=99s name"<br></p><div>from: <a targ= et=3D"_blank" href=3D"https://www.educative.io/edpresso/resolving-the-deref= erencing-pointer-to-incomplete-type-error">https://www.educative.io/edpress= o/resolving-the-dereferencing-pointer-to-incomplete-type-error</a><br></div= ><div><br></div><div>At this stage, it seems to use generated xgcc to compi= le itself... a bit weird it get errors at this stage to me.<br></div><div><= br></div><div>Will investigate a bit more later.<br></div><div><br></div></= div><br></body></html> ------=_Part_128857_1953034679.1615039964552-- --===============8384905264623943375== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gpc mailing list [email protected] https://www.g-n-u.de/mailman/listinfo/gpc --===============8384905264623943375==--