From owner-freebsd-ports-bugs@freebsd.org Mon Nov 23 02:01:12 2020 Return-Path: Delivered-To: freebsd-ports-bugs@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 2658847C604 for ; Mon, 23 Nov 2020 02:01:12 +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 4CfVkJ0QMhz4k3Y for ; Mon, 23 Nov 2020 02:01:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0E57247C71E; Mon, 23 Nov 2020 02:01:12 +0000 (UTC) Delivered-To: ports-bugs@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 0E1C347C06F for ; Mon, 23 Nov 2020 02:01:12 +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 4CfVkH6xGZz4kJg for ; Mon, 23 Nov 2020 02:01:11 +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 E13C7245DB for ; Mon, 23 Nov 2020 02:01:11 +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 0AN21BvV089971 for ; Mon, 23 Nov 2020 02:01:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0AN21BcQ089970 for ports-bugs@FreeBSD.org; Mon, 23 Nov 2020 02:01:11 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: ports-bugs@FreeBSD.org Subject: [Bug 237213] [NEW PORT] devel/mingw-w64 cross compilers Date: Mon, 23 Nov 2020 02:01:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: damjan.jov@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2020 02:01:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237213 --- Comment #16 from Damjan Jovanovic --- Thank you Alex. USE_GCC=3D10 and SSP_UNSAFE=3Dyes give different results, but all break in different ways: gcc- | | | bootstrap|crt |gcc |RESULT ---------+--------------+-------------------------------+------------------= ---- clang |default |clang with |some __stack_check | |--enable-gnu-indirect-function |failure | |--enable-initfini-array | ---------+--------------+-------------------------------+------------------= ---- clang |default |clang |ld: error: unable = to | | | find library -lc ---------+--------------+-------------------------------+------------------= ---- clang |default |gcc |C++ errors ---------+--------------+-------------------------------+------------------= ---- clang |USE_GCC=3D10 and| |CRT fails to link |SSP_UNSAFE=3Dyes| | ---------+--------------+-------------------------------+------------------= ---- clang |default and |gcc |C++ errors |SSP_UNSAFE=3Dyes| | ---------+--------------+-------------------------------+------------------= ---- gcc |default and |gcc |C++ errors |SSP_UNSAFE=3Dyes| | ---------+--------------+-------------------------------+------------------= ---- Those C++ errors happen while building gcov, and look like this: /usr/local/bin/ld: gcov.o: in function `void std::__cxx11::basic_string, std::allocator >::_M_construct(c= har const*, char const*, std::forward_iterator_tag) [clone .isra.0]': gcov.c:(.text+0xf4a): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_create(unsigned long&, unsigned long)' /usr/local/bin/ld: gcov.c:(.text+0xf76): undefined reference to `std::__throw_logic_error(char const*)' /usr/local/bin/ld: gcov.o: in function `output_line_beginning(__sFILE*, boo= l, bool, bool, long, unsigned int, char const*, char const*, unsigned int)': gcov.c:(.text+0x233e): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)' /usr/local/bin/ld: gcov.c:(.text+0x241c): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)' and many more. --=20 You are receiving this mail because: You are the assignee for the bug.=