From nobody Sat Aug 05 15:24:37 2023 X-Original-To: dev-commits-ports-main@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 4RJ5wk1rWVz4m9Np; Sat, 5 Aug 2023 15:24:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RJ5wk1524z3fDb; Sat, 5 Aug 2023 15:24:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691249078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hg/rwfJjW4/iAmCmK3SDlIKJ94QfVDnr+HoOM6BXYnQ=; b=pXGPevHKXjA7dpxqyN6JURkzp52qk79z1z08Og36+WSFKnfZbqvOkfKLY4TmlkmwPGUlVN v1bVe72IyIMMQ5+hdXddK9NsN1opabPRoLV88Hd3o9q+ccvJ+MBX3wClusllSgze9/0019 riWPtcv8wdrWMjOpsW+bWrm4v5aeie8fSxje8FdjYYiryV3SGYHApqWHXuXPPX1zA2gWMx x4VVIeEO0ePRr2tOI8/DkcYg1qtnl3fIdhXmeiJUWjjCJXzkVT5HMSnQSUpFDwUKjKYnNS JJ1gkFEJcyjMgjpAhR5lFOJrjyG9n+DFbyhio+g9wIqx044QIB5lWkgbCVdtBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691249078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hg/rwfJjW4/iAmCmK3SDlIKJ94QfVDnr+HoOM6BXYnQ=; b=gNSTN54YPhVjquu4mmA36AYioGqXi1ulXHFG9GLPJfJKAZ+NhlNrFRoHqSpGSAv5CcpDA4 RUjL0YR0yeBACANuTu0XAY42ktOnAAiPvw/HI2J0xcXrRhD6q2G/hfmefpwfLQ0wW7IQlz PKDO5oCF4uYk+Ubu9qSqVwNXrvvayH4iWZUSnOhIaVWbNIfhThBPQ12fE8BxReHg8DezIV /MeK+ODqh/x7da17e+aZrV3YVZtiMqOwA2mFxoXZQHrtkJKGoWV6PSusyt/XeuORCXIB6t ei1hj70wA3S8nRPAZVKaN8/lgY7e3k496Tj2XYWftovyttnHGkM80QmpW8KsvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691249078; a=rsa-sha256; cv=none; b=T9xWVIacemW0PbWeFq5a0O7kcSB/9KrcCmyzVY+3hCHpyEnE8hNrYRaJ/7b16cDjj/YWxi P75D/s5s4b+v73NQSGqoc7fURT+H443Ydn7M09Zv+XX75i2ANQJQull/xrwi0l9BaIH5tn Mzy3LlZE5byFDoUiK42BgDel5t6BFc3tSs/SyrtvR+kMwgFE0SIrhrZ46O84VUgiTqc+Ed LY0x43/Q8HiwNWydK4fehzplj2+wdwZWipHskBI6fOd8268NmwPp1IL+GqzXrmbWSPtNbm M7Tu88N7aqFH1rCificZjgY83fFOc/hSzMjbfzdJ5qlT6AgdDXeXhJ6PD38giQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RJ5wk05KmzZRs; Sat, 5 Aug 2023 15:24:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 375FObX1026376; Sat, 5 Aug 2023 15:24:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 375FObmR026375; Sat, 5 Aug 2023 15:24:37 GMT (envelope-from git) Date: Sat, 5 Aug 2023 15:24:37 GMT Message-Id: <202308051524.375FObmR026375@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: John Baldwin Subject: git: e858e20eec81 - main - devel/freebsd-gcc12: Use -stdlib=libc++ to use libc++. List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e858e20eec8104648b25313b388e9f2532c980fb Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/ports/commit/?id=e858e20eec8104648b25313b388e9f2532c980fb commit e858e20eec8104648b25313b388e9f2532c980fb Author: John Baldwin AuthorDate: 2023-08-05 15:24:11 +0000 Commit: John Baldwin CommitDate: 2023-08-05 15:24:11 +0000 devel/freebsd-gcc12: Use -stdlib=libc++ to use libc++. Instead of overriding the path and library name of libstdc++, set the path for libc++ and change the default of -stdlib= from libstdc++ to libc++. --- devel/freebsd-gcc12/Makefile | 8 ++++---- devel/freebsd-gcc12/files/patch-gcc-configure | 13 ------------- devel/freebsd-gcc12/files/patch-gcc_c-family_c.opt | 11 +++++++++++ devel/freebsd-gcc12/files/patch-gcc_cp_g++spec.cc | 11 +++++++++++ 4 files changed, 26 insertions(+), 17 deletions(-) diff --git a/devel/freebsd-gcc12/Makefile b/devel/freebsd-gcc12/Makefile index 677f60f8c5dd..e6ac2069852a 100644 --- a/devel/freebsd-gcc12/Makefile +++ b/devel/freebsd-gcc12/Makefile @@ -1,6 +1,6 @@ PORTNAME= gcc PORTVERSION= 12.2.0 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= devel MASTER_SITES= GCC PKGNAMEPREFIX= ${TARGETARCH}- @@ -53,7 +53,7 @@ CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ --with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ --with-system-zlib \ --without-zstd \ - --with-gxx-include-dir=/usr/include/c++/v1/ \ + --with-gxx-libcxx-include-dir=//usr/include/c++/v1 \ --with-sysroot="/" \ --with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ --with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld @@ -62,6 +62,8 @@ CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ CONFIGURE_ARGS+=--with-abi=elfv2 .endif +CPPFLAGS+= -DLIBCXXABI=NULL + ALL_TARGET= all-gcc INSTALL_TARGET= install-gcc @@ -79,8 +81,6 @@ BU_PREFIX= ${GCC_TARGET} GCC_TARGET= ${TARGETARCH:S/amd64/x86_64/}-${TARGET_ABI}-${OPSYS:tl}${OSREL} post-patch: - @${REINPLACE_CMD} -e '/LIBSTDCXX/ s/stdc\+\+/c\+\+/g ' \ - ${WRKSRC}//gcc/cp/g++spec.cc @${REINPLACE_CMD} -e '/LOCAL_INCLUDE_DIR/ d ' \ ${WRKSRC}//gcc/Makefile.in diff --git a/devel/freebsd-gcc12/files/patch-gcc-configure b/devel/freebsd-gcc12/files/patch-gcc-configure deleted file mode 100644 index 77263f826378..000000000000 --- a/devel/freebsd-gcc12/files/patch-gcc-configure +++ /dev/null @@ -1,13 +0,0 @@ ---- gcc/configure.orig 2019-11-29 16:01:46.850423000 -0800 -+++ gcc/configure 2019-11-29 16:05:09.818243000 -0800 -@@ -3673,7 +3673,9 @@ if test x${gcc_gxx_include_dir} = x; then - fi - elif test "${with_sysroot+set}" = set; then - gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'` -- if test "${gcc_gxx_without_sysroot}"; then -+ if test "${with_sysroot}" = "/"; then -+ gcc_gxx_include_dir_add_sysroot=1 -+ elif test "${gcc_gxx_without_sysroot}"; then - gcc_gxx_include_dir="${gcc_gxx_without_sysroot}" - gcc_gxx_include_dir_add_sysroot=1 - fi diff --git a/devel/freebsd-gcc12/files/patch-gcc_c-family_c.opt b/devel/freebsd-gcc12/files/patch-gcc_c-family_c.opt new file mode 100644 index 000000000000..2883e47e4e05 --- /dev/null +++ b/devel/freebsd-gcc12/files/patch-gcc_c-family_c.opt @@ -0,0 +1,11 @@ +--- gcc/c-family/c.opt.orig 2023-07-01 21:56:03 UTC ++++ gcc/c-family/c.opt +@@ -2464,7 +2464,7 @@ stdlib= + Conform to the ISO 2017 C standard (published in 2018). + + stdlib= +-Driver C++ ObjC++ Common Condition(ENABLE_STDLIB_OPTION) Var(flag_stdlib_kind) Joined Enum(stdlib_kind) RejectNegative Init(1) ++Driver C++ ObjC++ Common Condition(ENABLE_STDLIB_OPTION) Var(flag_stdlib_kind) Joined Enum(stdlib_kind) RejectNegative Init(2) + -stdlib=[libstdc++|libc++] The standard library to be used for C++ headers + and runtime. + diff --git a/devel/freebsd-gcc12/files/patch-gcc_cp_g++spec.cc b/devel/freebsd-gcc12/files/patch-gcc_cp_g++spec.cc new file mode 100644 index 000000000000..ba527535ca0c --- /dev/null +++ b/devel/freebsd-gcc12/files/patch-gcc_cp_g++spec.cc @@ -0,0 +1,11 @@ +--- gcc/cp/g++spec.cc.orig 2023-05-08 12:14:39 UTC ++++ gcc/cp/g++spec.cc +@@ -95,7 +95,7 @@ lang_specific_driver (struct cl_decoded_option **in_de + int library = 0; + + /* Which c++ runtime library to link. */ +- stdcxxlib_kind which_library = USE_LIBSTDCXX; ++ stdcxxlib_kind which_library = USE_LIBCXX; + + /* The number of arguments being added to what's in argv, other than + libraries. We use this to track the number of times we've inserted