Thread View: muc.lists.netbsd.tech.toolchain
1 messages
1 total messages
Started by Martin Husemann
Mon, 23 Nov 2026 13:29
Building netbsd-10 on -current fails (patch)
Author: Martin Husemann
Date: Mon, 23 Nov 2026 13:29
Date: Mon, 23 Nov 2026 13:29
43 lines
2341 bytes
2341 bytes
Building netbsd-10 on a current host fails with:
...src-10/external/gpl3/gcc/dist/gcc/genmodes.c:1935:14: error: 'swap' is not a member of 'std'
1935 | std::swap (mode_sort[i], mode_sort[j]);
| ^~~~
The patch below seems to be enough to fix this (and with that the full build
of netbsd-10 works):
Can someone please review and request pullup (I'd suggest of just this
minimal patch).
Martin
--8<-
Cherry-picked from revision 1.69:
date: 2023-08-01 07:57:54 +0200; author: mrg; state: Exp; lines: +111
various updates to build native GCC 12.
[..]
- use -std=gnu++11 for various places
Index: Makefile
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/usr.bin/backend/Makefile,v
retrieving revision 1.66.2.2
diff -u -p -r1.66.2.2 Makefile
--- Makefile 8 Oct 2023 14:35:19 -0000 1.66.2.2
+++ Makefile 23 Nov 2026 13:18:47 -0000
@@ -30,7 +30,7 @@ CPPFLAGS.cppdefault.c+= -DPREFIX=\"/usr\
-DNATIVE_SYSTEM_HEADER_DIR=\"${G_NATIVE_SYSTEM_HEADER_DIR}\"
CPPFLAGS.lto-streamer-in.c+= -DTARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\"
-HOST_CXXFLAGS+= -std=gnu++98
+HOST_CXXFLAGS+= -std=gnu++11
HOST_LIBIBERTYOBJ!= cd ${.CURDIR}/../host-libiberty && ${PRINTOBJDIR}
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads