Date: Mon, 18 May 2020 20:29:45 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 246488] gcc-built binary crashes in std::ios_base::Init::Init() Message-ID: <bug-246488-29464-mYHrbX4MzD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-246488-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-246488-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246488 --- Comment #8 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (In reply to Dimitry Andric from comment #7) .if ${_COMPILER_ARGS:Mfeatures} .if defined(_CXXINTERNAL_${_CXX_hash}) _CXXINTERNAL=3D ${_CXXINTERNAL_${_CXX_hash}} .else _CXXINTERNAL!=3D ${CXX} -\#\#\# /dev/null 2>&1 _CXXINTERNAL_${_CXX_hash}=3D ${_CXXINTERNAL} PORTS_ENV_VARS+=3D _CXXINTERNAL_${_CXX_hash} .endif .if ${_CXXINTERNAL:M\"-lc++\"} COMPILER_FEATURES=3D libc++ .else COMPILER_FEATURES=3D libstdc++ .endif When I the command with -### for g++9 I find a: "-lstdc++" and no instance of -lc++. So I get COMPILER_FEATURES being libstdc++ . Then later I see: .if ${_COMPILER_ARGS:Mgcc-c++11-lib} USE_GCC=3D yes CHOSEN_COMPILER_TYPE=3D gcc .if ${COMPILER_FEATURES:Mlibc++} CXXFLAGS+=3D -nostdinc++ -isystem /usr/include/c++/v1 LDFLAGS+=3D -L${WRKDIR} _USES_configure+=3D 200:gcc-libc++-configure gcc-libc++-configure: @${LN} -fs /usr/lib/libc++.so ${WRKDIR}/libstdc++.so .endif .endif which would not set the likes of -nostdinc++ and related material. Have I missed something? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246488-29464-mYHrbX4MzD>