From owner-freebsd-toolchain@freebsd.org Mon May 18 17:50:40 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 11C0D2D9272 for ; Mon, 18 May 2020 17:50:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49Qml35cShz45j7 for ; Mon, 18 May 2020 17:50:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BEB072D9271; Mon, 18 May 2020 17:50:39 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BE73F2D8D36 for ; Mon, 18 May 2020 17:50:39 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Qml34h7Jz45t6 for ; Mon, 18 May 2020 17:50:39 +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 9C3C9253D2 for ; Mon, 18 May 2020 17:50:39 +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 04IHodqd044012 for ; Mon, 18 May 2020 17:50:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 04IHodhg044009 for toolchain@FreeBSD.org; Mon, 18 May 2020 17:50:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 246488] gcc-built binary crashes in std::ios_base::Init::Init() Date: Mon, 18 May 2020 17:50:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2020 17:50:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246488 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #4 from Dimitry Andric --- I tried with the following diff instead: Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Makefile (revision 535286) +++ Makefile (working copy) @@ -13,7 +13,7 @@ LICENSE_NAME=3D NASA Open Source Agreement version 1 LICENSE_FILE=3D ${WRKSRC}/LICENSE LICENSE_PERMS=3D dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -BROKEN=3D fails to link +#BROKEN=3D fails to link BROKEN_aarch64=3D fails to compile: invokes x86 asm LIB_DEPENDS=3D libdrm.so:graphics/libdrm \ @@ -27,7 +27,7 @@ BUILD_DEPENDS=3D ${LOCALBASE}/lib/libopenNURBS.a:g= ra ${LOCALBASE}/include/glm/glm.hpp:math/glm \ =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs -USES=3D compiler:c++11-lang cmake:noninja localbase\ +USES=3D compiler:gcc-c++11-lib compiler:openmp cmake:noninja loca= lbase\ gl gnome jpeg xorg USE_GITHUB=3D yes GH_PROJECT=3D OpenVSP @@ -57,7 +57,7 @@ USE_GNOME=3D libxml2 # See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230888 .if ${OPSYS} =3D=3D FreeBSD .if (${OSVERSION} < 1200000 || ${OSVERSION} >=3D1300000) -BROKEN=3D undefined reference to __atomic_load +#BROKEN=3D undefined reference to __atomic_load .endif .endif but it errors out pretty quickly with a gcc error: [ 18%] Building CXX object src/cldai/CMakeFiles/stepdai-static.dir/sdaiBinary.cc.o In file included from /usr/include/c++/v1/__tree:15, from /usr/include/c++/v1/map:479, from /wrkdirs/share/dim/ports/cad/openvsp/work/.build/Libraries-prefix/src/Libra= ries-build/STEPCODE-prefix/src/STEPCODE/src/clstepcore/sdaiApplication_inst= ance.cc:13: /usr/include/c++/v1/memory: In instantiation of 'constexpr std::__1::__compressed_pair_elem<_Tp, _Idx, _CanBeEmptyBase>::__compressed_pair_elem(_Up&&) [with _Up =3D long int; =3D void; _Tp =3D std::__1::basic_string, std::__1::allocator >*; int _Idx =3D 0; = bool _CanBeEmptyBase =3D false]': /usr/include/c++/v1/memory:2289:72: required from 'constexpr std::__1::__compressed_pair<_T1, _T2>::__compressed_pair(_U1&&, _U2&&) [with _U1 =3D long int; _U2 =3D std::__1::allocator, std::__1::allocator > >; _T1 =3D std::__1::basic_string, std::__1::allocator >*; _T2 =3D std::__1::allocator, std::__1::allocator > >]' /usr/include/c++/v1/vector:455:41: required from 'std::__1::__vector_base<_Tp, _Allocator>::__vector_base(std::__1::__vector_base<_Tp, _Allocator>::allocator_type&&) [with _Tp =3D std::__1::basic_string, std::__1::allocator >; _Allocator =3D std::__1::allocator, std::__1::allocator > >; std::__1::__vector_base<_Tp, _Allocator>::allocator_type =3D std::__1::allocator, std::__1::allocator > >]' /usr/include/c++/v1/vector:1249:82: required from 'std::__1::vector<_Tp, _Alloc>::vector(const std::__1::vector<_Tp, _Alloc>&) [with _Tp =3D std::__1::basic_string, std::__1::allocator >; _Allocator =3D std::__1::allocator, std::__1::allocator > >]' /wrkdirs/share/dim/ports/cad/openvsp/work/.build/Libraries-prefix/src/Libra= ries-build/STEPCODE-prefix/src/STEPCODE/src/clstepcore/dictSchema.h:66:16: required from here /usr/include/c++/v1/memory:2204:42: error: invalid conversion from 'long in= t' to 'std::__1::basic_string, std::__1::allocator >*' [-fpermissive] 2204 | : __value_(_VSTD::forward<_Up>(__u)) | ^ | | | long int /usr/include/c++/v1/memory: In instantiation of 'constexpr std::__1::__compressed_pair_elem<_Tp, _Idx, _CanBeEmptyBase>::__compressed_pair_elem(_Up&&) [with _Up =3D long int; =3D void; _Tp =3D recursiveEntDescripIterator::queue_pair**; int _Idx =3D 0; bool _CanBeEmpty= Base =3D false]': /usr/include/c++/v1/memory:2289:72: required from 'constexpr std::__1::__compressed_pair<_T1, _T2>::__compressed_pair(_U1&&, _U2&&) [with _U1 =3D long int; _U2 =3D std::__1::allocator&; _T1 =3D recursiveEntDescripIterator::queue_pair**; _T2 =3D std::__1::allocator&]' /usr/include/c++/v1/__split_buffer:316:30: required from 'std::__1::__split_buffer<_Tp, _Allocator>::__split_buffer(std::__1::__split_buffer<_Tp, _Allocator>::size_type, std::__1::__split_buffer<_Tp, _Allocator>::size_typ= e, std::__1::__split_buffer<_Tp, _Allocator>::__alloc_rr&) [with _Tp =3D recursiveEntDescripIterator::queue_pair*; _Allocator =3D std::__1::allocator&; std::__1::__split_buffer<_Tp, _Allocator>::size_type =3D long unsigned int; std::__1::__split_buffer<_Tp, _Allocator>::__alloc_rr =3D std::__1::allocator]' /usr/include/c++/v1/deque:2596:13: required from 'void std::__1::deque<_T= p, _Allocator>::__add_back_capacity() [with _Tp =3D recursiveEntDescripIterator::queue_pair; _Allocator =3D std::__1::allocator]' /usr/include/c++/v1/deque:1928:9: required from 'void std::__1::deque<_Tp, _Allocator>::push_back(const value_type&) [with _Tp =3D recursiveEntDescripIterator::queue_pair; _Allocator =3D std::__1::allocator; std::__1::deque<_Tp, _Allocator>::value_type =3D recursiveEntDescripIterator::queue_pair]' /wrkdirs/share/dim/ports/cad/openvsp/work/.build/Libraries-prefix/src/Libra= ries-build/STEPCODE-prefix/src/STEPCODE/src/clstepcore/SubSuperIterators.h:= 30:34: required from here /usr/include/c++/v1/memory:2204:42: error: invalid conversion from 'long in= t' to 'recursiveEntDescripIterator::queue_pair**' [-fpermissive] [ 19%] Building CXX object src/clutils/CMakeFiles/steputils.dir/dirobj.cc.o /wrkdirs/share/dim/ports/cad/openvsp/work/.build/Libraries-prefix/src/Libra= ries-build/STEPCODE-prefix/src/STEPCODE/src/clstepcore/sdaiApplication_inst= ance.cc: In function 'SDAI_Application_instance* ReadEntityRef(std::__1::istream&, ErrorDescriptor*, const char*, InstMgrBase*, int)': /wrkdirs/share/dim/ports/cad/openvsp/work/.build/Libraries-prefix/src/Libra= ries-build/STEPCODE-prefix/src/STEPCODE/src/clstepcore/sdaiApplication_inst= ance.cc:680:33: warning: this statement may fall through [-Wimplicit-fallthrough=3D] 680 | err->GreaterSeverity( SEVERITY_WARNING ); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /wrkdirs/share/dim/ports/cad/openvsp/work/.build/Libraries-prefix/src/Libra= ries-build/STEPCODE-prefix/src/STEPCODE/src/clstepcore/sdaiApplication_inst= ance.cc:682:9: note: here 682 | case '#': { | ^~~~ As gcc's error messages are very hard to read, and clang does not produce t= hese particular errors, it will be interesting to debug :) --=20 You are receiving this mail because: You are the assignee for the bug.=