From nobody Sat Aug 20 19:13:23 2022 X-Original-To: toolchain@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 4M97ZC72PFz4Z3lK for ; Sat, 20 Aug 2022 19:13:23 +0000 (UTC) (envelope-from bugzilla-noreply@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 4M97ZC3lCCz3pSY for ; Sat, 20 Aug 2022 19:13:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4M97ZC2pVCzjdX for ; Sat, 20 Aug 2022 19:13:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27KJDNnw077620 for ; Sat, 20 Aug 2022 19:13:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27KJDNAO077619 for toolchain@FreeBSD.org; Sat, 20 Aug 2022 19:13:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: maintainer-feedback requested: [Bug 265962] lang/gcc11: expose non-default -stdlib=libc++ support Date: Sat, 20 Aug 2022 19:13:23 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661022803; 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: in-reply-to:in-reply-to:references:references; bh=hCaX/C6adTGa6F3TuG2qjfAlVFIp6j1Qk8QucElWo/A=; b=l+CXbRip+DXSoWZYf1Aj8Htnkb5vHzfQOIbbfphqEUJ4Y4O4mk8s7BdA7bSD1sbzzoZbTM +gtF7Rq+bwjOlSmjB8H+M5KO87ZZuaUmJOsVf5LNapA2tCKZryZRzkD19VFZlmBAsjFp/c QwqbBI5mMffxc7vOzNv0iWZr79mBb1XjJ9WjRep6qffztUMqNBu4hCiPQQNc+o4r+rjWiA SrFmGP37SqpL/9wkJOz9OKgEYyWCN827me5iGKxRpdd5/joBXmP+pcjb3pKQwOrcMZmp9V vpXV4DAktV7965kv4i2QDmFfpg7WSI4oyHio5IlZfjsE62Namta7Kva3Zv3ipQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661022803; a=rsa-sha256; cv=none; b=x4VAb99bKNPeeBpmQRTIJT7+LeR/xOYGbF22sHRknT+RdodOOajCe6P8XHip0mG5zsP5YP /1Vg20/UtFoBedSaAAAxWV4T0imFUIMvZk/36kGEIrPKTiiteyhbSctk2MEqmKEFyGitIc NTNehUPN5s4xB58IvcMdlQXaGpo9JxJps+1rkERsWb68tVEDJYWj0jWLQB7BkggnFZZ9aY 3bBV7fLDbITlH0ugAOjwR0ihprleWTOzqGFoSqhTBNqYR505HgTmSDbDjTABBcPi9sR4u0 JR8eUKXId0WQwKsNYUuSXwlRXh5YSP7m3ehElUEmoQaQul/RnZ2v8ALXJTX22A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-toolchain (Nob= ody) for maintainer-feedback: Bug 265962: lang/gcc11: expose non-default -stdlib=3Dlibc++ support https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265962 --- Description --- $ pkg install gcc11 $ echo 'int main() {}' >a.cc $ gcc11 -stdlib=3Dlibc++ a.cc gcc11: error: unrecognized command-line option '-stdlib=3Dlibc++' $ man gcc11 | col -b | fgrep -A9 stdlib=3D -stdlib=3Dlibstdc++,libc++ When G++ is configured to support this option, it allows specification of alternate C++ runtime libraries. Two options are available: libstdc++ (the default, native C++ runtime for G++) and libc++ which is the C++ runtime installed on some operating systems (e.g. Darwin versions from Darwin11 onwards). The option switches G++ to use the headers from the specified library and to emit "-lstdc++" or "-lc++" respectively, when a C++ runtime is required for linking.