From nobody Fri Aug 30 15:48:35 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WwMyB2YHrz5Mn84 for ; Fri, 30 Aug 2024 15:48:50 +0000 (UTC) (envelope-from jdavidlists@gmail.com) Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WwMy928nfz488R for ; Fri, 30 Aug 2024 15:48:49 +0000 (UTC) (envelope-from jdavidlists@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=MK7hvnrt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of jdavidlists@gmail.com designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=jdavidlists@gmail.com Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-7143ae1b560so1163044b3a.1 for ; Fri, 30 Aug 2024 08:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725032927; x=1725637727; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=5t48bMT7kt9FGrhRL6IF/2CNEPgVV3iL9dK3e8FBRF8=; b=MK7hvnrt/pWQSg8YQN0vXxmuaecXbCha2ebHV5vcM4unSCGmu3JFxxLbFD2S9eELhU MsJNl7fAKduLoZBlF7alcjCx+0hwcMzrsQd/0/zYD2ksJyL/juBnkNSCuO+PpPl8/9pE /4nnHL/652guCSxNfQKCaGc0UVTPluS88ElFFbgCEvCve26DjEPTqnyvSeLhZ/EJm8w5 7JdU3Colqg0f4+HQ6H96zB7JC5TzBXhGJASjLYPd0NMLOb7yLD4N+SUsfBKdWCjopjAN aCMGHGyyK1ZIH4wOT9TCt5egfYJQgJsK1jAyrnbnX6dfpGfDV4fZ/AvcORLGTkIQKG6P svXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725032927; x=1725637727; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5t48bMT7kt9FGrhRL6IF/2CNEPgVV3iL9dK3e8FBRF8=; b=DqG9S9uV60RYdC1gJFXdxxXa19xH4Drmdg4HXbrtUJQPheSqClInQEELJR5F5gvZjX ZhfQkFquoz7YrOjly7vS+uCGbMikOjcroFzpNdQChUd2mQq3dCpUCGERXPBcWPbnpAJL LoXn0CLkEPJXfSRFZgTPO+5hUATsE8v88wrf4RTFXVAv3nC3XW/XG+O86S/OvfGyiYKD SyKVPW0VXautlJmqd9X/9Wni30QWnhggMHHqxEEbAlbyCpAPJJEODKEC3guNX2DTtpbe WZTfEqtN3v5OzJ9dsFdVvJiTQ/a34puXam3Ya7gH9rRx6ThwVt5C04IbId/+kHw06mRF B5DA== X-Gm-Message-State: AOJu0YyJNmKf0/ddICeg/Tlevsstmh9JNH+wAYvuDKcxtW4L/conTARC wx6dO3dtZKj6kQSCpPL/BfWs6tqgD6Oll4v0+efnnT1OQtqwUWf38gtSUmmPZ9TdmkHVzPLMyIY XE3i8jkYmFPA++dHY4fNPYkHCwQSFil78 X-Google-Smtp-Source: AGHT+IFluulK6id3Tp/a+X2tW22huaX61jXgm30FEKVZADH1+SEY/vwb/gkQJW4+NyG+ZlPKSWHf13JmHH2+36c9MEA= X-Received: by 2002:a05:6a00:4b12:b0:712:7319:6f53 with SMTP id d2e1a72fcca58-715dfc89109mr6037967b3a.30.1725032927294; Fri, 30 Aug 2024 08:48:47 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 From: J David Date: Fri, 30 Aug 2024 11:48:35 -0400 Message-ID: Subject: Building certain ports fails with errors in system C++ libraries To: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::429:from] X-Rspamd-Queue-Id: 4WwMy928nfz488R On a freshly-installed FreeBSD 14.1 amd64 system, I'm hitting errors in the system C++ standard include files. For example, trying to build editors/le produces: c++ -DHAVE_CONFIG_H -I. -I../lib -I../lib -I../lib -isystem /usr/local/include -D_THREAD_SAFE -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -MT highli.o -MD -MP -MF .deps/highli.Tpo -c -o highli.o highli.cc In file included from highli.cc:36: In file included from /usr/include/c++/v1/set:1499: In file included from /usr/include/c++/v1/functional:526: In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /usr/include/c++/v1/vector:325: In file included from /usr/include/c++/v1/__format/formatter_bool.h:20: In file included from /usr/include/c++/v1/__format/formatter_integral.h:35: In file included from /usr/include/c++/v1/locale:209: /usr/include/c++/v1/ios:260:25: error: expected ')' 260 | static const fmtflags hex = 0x0008; | ^ ./edit.h:158:26: note: expanded from macro 'hex' 158 | #define hex (editmode==HEXM) | ^ /usr/include/c++/v1/ios:260:25: note: to match this '(' ./edit.h:158:17: note: expanded from macro 'hex' 158 | #define hex (editmode==HEXM) | ^ In file included from highli.cc:36: In file included from /usr/include/c++/v1/set:1499: In file included from /usr/include/c++/v1/functional:526: In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /usr/include/c++/v1/vector:325: In file included from /usr/include/c++/v1/__format/formatter_bool.h:20: In file included from /usr/include/c++/v1/__format/formatter_integral.h:35: In file included from /usr/include/c++/v1/locale:209: /usr/include/c++/v1/ios:794:40: error: expected ')' 794 | _LIBCPP_HIDE_FROM_ABI inline ios_base& hex(ios_base& __str) { | ^ ./edit.h:158:26: note: expanded from macro 'hex' 158 | #define hex (editmode==HEXM) | ^ /usr/include/c++/v1/ios:794:40: note: to match this '(' ./edit.h:158:17: note: expanded from macro 'hex' 158 | #define hex (editmode==HEXM) | ^ In file included from highli.cc:36: In file included from /usr/include/c++/v1/set:1499: In file included from /usr/include/c++/v1/functional:526: In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /usr/include/c++/v1/vector:325: In file included from /usr/include/c++/v1/__format/formatter_bool.h:20: In file included from /usr/include/c++/v1/__format/formatter_integral.h:35: In file included from /usr/include/c++/v1/locale:209: /usr/include/c++/v1/ios:795:24: error: expected unqualified-id 795 | __str.setf(ios_base::hex, ios_base::basefield); | ^ ./edit.h:158:17: note: expanded from macro 'hex' 158 | #define hex (editmode==HEXM) | ^ In file included from highli.cc:36: In file included from /usr/include/c++/v1/set:1499: In file included from /usr/include/c++/v1/functional:526: In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /usr/include/c++/v1/vector:325: In file included from /usr/include/c++/v1/__format/formatter_bool.h:20: In file included from /usr/include/c++/v1/__format/formatter_integral.h:35: In file included from /usr/include/c++/v1/locale:209: /usr/include/c++/v1/ios:795:24: error: comparison between pointer and integer ('ios_base &(*)(ios_base &)' and 'int') 795 | __str.setf(ios_base::hex, ios_base::basefield); | ^~~ ./edit.h:158:26: note: expanded from macro 'hex' 158 | #define hex (editmode==HEXM) | ~~~~~~~~^ ~~~~ 4 errors generated. Errors in the system include files using the system compiler would tend to indicate (to me) that I've damaged the install somehow. But this is fresh off the ISO using the default system compiler with the default system include files and default port options. Building using Poudriere in a 13.3 or 14.1 jail produces the same result. According to Freshports, there are no reported issues with this package, and the automated infrastructure that builds the official packages builds it with no problem for both 13.3 and 14.1. If there were a real problem with the default environment, I would expect the problem to show up there as well. So there must be more to the story. Does anyone know what might be going on here? And/or how to find out what settings are used to build the official FreeBSD packages so I can try to reproduce it? Thanks for any advice!