Summary: | devel/avr-gcc: fix build with libc++ 17 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Dimitry Andric <dim> | ||||
Component: | Individual Port(s) | Assignee: | Joerg Wunsch <joerg> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(joerg) |
||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 273753 | ||||||
Attachments: |
|
Description
Dimitry Andric
2023-09-23 07:53:30 UTC
Created attachment 245142 [details]
devel/avr-gcc: fix build with libc++ 17
Thanks for the analysis and patch, applied. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=6275155b90de11398a1d105b053732313e7c1e7a commit 6275155b90de11398a1d105b053732313e7c1e7a Author: Joerg Wunsch <joerg@FreeBSD.org> AuthorDate: 2023-09-23 20:43:27 +0000 Commit: Joerg Wunsch <joerg@FreeBSD.org> CommitDate: 2023-09-23 20:46:17 +0000 devel/avr-gcc: Fix build with libc++ 17 gcc/system.h includes safe-ctype.h which redefines ctype macros such as toupper, tolower, etc to "poison" them. However, it should only include the safe-ctype.h header *after* any C++ headers, such as <list>, <map>, <string>, etc, otherwise these might transitively include internal ctype headers (such as with libc++ 17), causing compilation errors. PR: 274038 Reported by: dim devel/avr-gcc/Makefile | 2 +- devel/avr-gcc/files/patch-gcc_system.h (new) | 42 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) |