tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: gcc14 on NetBSD 10
On 12/09/2026 04:24, Rhialto wrote:
I presume that on NetBSD 11 with gcc 12 in base binutils is already new
enough.
I believe so.
So, in order to get gcc14 to use binutils gas on NetBSD 10 I made the
following change to the Makefile.common
--- Makefile.common 21 Apr 2025 20:26:50 -0000 1.8
+++ Makefile.common 16 Sep 2026 20:51:09 -0000
@@ -81,7 +81,13 @@
CONFIGURE_ARGS.Darwin+= --with-sysroot=${OSX_SDK_PATH}
.endif
CONFIGURE_ARGS.NetBSD+= --with-gnu-ld --with-ld=/usr/bin/ld
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 110000
+BUILDLINK_DEPMETHOD.binutils= full
+. include "../../devel/binutils/buildlink3.mk"
+CONFIGURE_ARGS.NetBSD+= --with-gnu-as --with-as=${PREFIX}/bin/gas
+.else
CONFIGURE_ARGS.NetBSD+= --with-gnu-as --with-as=/usr/bin/as
+.endif
MAKE_ENV.NetBSD+= ac_cv_func_clock_gettime=yes
MAKE_ENV.NetBSD+= ac_cv_func_gethostbyname_r=no
MAKE_ENV.NetBSD+= ac_cv_func_freelocale=no
But with that change the make of gcc14 dies trying to build libgcc
/src/work/pkgsrc/lang/gcc14/work.x86_64/build/./gcc/xgcc
-B/src/work/pkgsrc/lang/gcc14/work.x86_64/build/./gcc/
-B/usr/pkg/gcc14/x86_64--netbsd/bin/
-B/usr/pkg/gcc14/x86_64--netbsd/lib/ -isystem
/usr/pkg/gcc14/x86_64--netbsd/include -isystem
/usr/pkg/gcc14/x86_64--netbsd/sys-include -fno-checking -g -O2
-I/usr/include -I/usr/pkg/include -O2 -g -O2 -I/usr/include
-I/usr/pkg/include -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fpic -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector -fpic -I. -I. -I../.././gcc
-I../../../gcc-14.3.0/libgcc -I../../../gcc-14.3.0/libgcc/.
-I../../../gcc-14.3.0/libgcc/../gcc
-I../../../gcc-14.3.0/libgcc/../include -DHAVE_CC_TLS -o
unwind-dw2-fde-dip.o -MT unwind-dw2-fde-dip.o -MD -MP -MF
unwind-dw2-fde-dip.dep -fexceptions -c
../../../gcc-14.3.0/libgcc/unwind-dw2-fde-dip.c -fvisibility=hidden
-DHIDE_EXPORTS
In file included from ../../../gcc-14.3.0/libgcc/unwind-dw2.c:35:
../../../gcc-14.3.0/libgcc/unwind-pe.h:100:8: error: unknown type name
'_Unwind_Ptr'; did you mean '_Unwind_Action'?
100 | static _Unwind_Ptr
| ^~~~~~~~~~~
| _Unwind_Action
../../../gcc-14.3.0/libgcc/unwind-pe.h:131:39: error: unknown type name
'_uleb128_t'
131 | read_uleb128 (const unsigned char *p, _uleb128_t *val)
| ^~~~~~~~~~
[...]
Don't see why just changing the assembler would have the effect.
cheers
mark
Home |
Main Index |
Thread Index |
Old Index