While doing my quarterly package rebuild, where I have GCC_REQD+= 12,
something (lang/nodejs) wanted to build lang/gcc14.
First of all, I don't think you want to build any pkgsrc gcc with
another pkgsrc gcc, but rather with the base system gcc. In fact, I
fixed the issue by doing exactly that. I'm just reporting this here for
the record, in case it shows some underlying flaw in the lang/gcc14
package.
I think these were the first errors:
../../../gcc-14.3.0/libgcc/unwind-dw2.c: At top level:
../../../gcc-14.3.0/libgcc/unwind-dw2.c:1122:17: error: unknown type name '_Unwind_Ptr'; did you mean '_Unwind_Action'?
1122 | typedef union { _Unwind_Ptr ptr; _Unwind_Word word; } _Unwind_SpTmp;
| ^~~~~~~~~~~
| _Unwind_Action
../../../gcc-14.3.0/libgcc/unwind-dw2.c:1122:34: error: unknown type name '_Unwind_Word'
1122 | typedef union { _Unwind_Ptr ptr; _Unwind_Word word; } _Unwind_SpTmp;
| ^~~~~~~~~~~~
../../../gcc-14.3.0/libgcc/unwind-dw2.c: In function '_Unwind_SetSpColumn':
../../../gcc-14.3.0/libgcc/unwind-dw2.c:1130:22: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
1130 | if (size == sizeof(_Unwind_Ptr))
| ^~~~~~~~~~~
| _Unwind_GetPtr
../../../gcc-14.3.0/libgcc/unwind-dw2.c:1131:32: error: expected ';' before 'cf '
1131 | tmp_sp->ptr = (_Unwind_Ptr) cfa;
| ^~~~
| ;
../../../gcc-14.3.0/libgcc/unwind-dw2.c:1134:34: error: '_Unwind_Word' undeclared (first use in this function)
1134 | gcc_assert (size == sizeof(_Unwind_Word));
| ^~~~~~~~~~~~
The bug could be either in lang/gcc12 (not making _Unwind_Ptr available)
or in lang/gcc14 (not detecting _Unwind_Ptr properly).
For now I'm assuming the second, since _Unwind_Ptr is defined both in
/usr/include/unwind.h and
/usr/pkg/gcc12/lib/gcc/x86_64--netbsd/12.5.0/include/unwind.h, and those
files are nearly the same.
-Olaf.
--
___ Olaf 'Rhialto' Seibert <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work. --I. Rose
Attachment:
signature.asc
Description: PGP signature