From owner-freebsd-ports-bugs@freebsd.org Thu Nov 26 15:14:28 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 338AF4AEA08 for ; Thu, 26 Nov 2020 15:14:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4ChhBD0p1cz4cGH for ; Thu, 26 Nov 2020 15:14:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 196924AEA07; Thu, 26 Nov 2020 15:14:28 +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 181644AEBB5 for ; Thu, 26 Nov 2020 15:14:28 +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 4ChhBC75lTz4cDZ for ; Thu, 26 Nov 2020 15:14:27 +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 E6E222561C for ; Thu, 26 Nov 2020 15:14:27 +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 0AQFER9q024442 for ; Thu, 26 Nov 2020 15:14:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0AQFERTi024441 for ports-bugs@FreeBSD.org; Thu, 26 Nov 2020 15:14:27 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: Thu, 26 Nov 2020 15:14:26 +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: attachments.isobsolete attachments.created 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: Thu, 26 Nov 2020 15:14:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237213 Damjan Jovanovic changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #219875|0 |1 is obsolete| | --- Comment #19 from Damjan Jovanovic --- Created attachment 220001 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D220001&action= =3Dedit complete mingw-w64 port Here is my complete mingw-w64 Port, which I am submitting with me as the maintainer. You can install devel/mingw-w64-gcc, with FLAVOR=3Di686 to target Win32 or FLAVOR=3Damd64 to target Win64. The GCC binaries are named i686-w64-mingw32= -gcc and x86_64-w64-mingw32-gcc, like on other *nix platforms. binutils is patched to expose its i686-w64-mingw32 and x86_64-w64-mingw32 targets, which it already had but we never used. mingw-w64 provides the hea= ders and CRT, while GCC 10 provides the bootstrap GCC (to build the CRT) and full GCC. All 5 Ports build and work on both amd64 and i386 hosts. The PE build of the whole of i386-wine (5 million lines of code) was successfully compiled with the i686-mingw-w64-gcc port, and worked fully wi= th all the Windows applications I tested. ******* WARNING ******* Other Ports, whose software auto-detects mingw-w64 and automatically uses i= t, will break with this Port installed, as they may start producing files unexpected by their pkg-plist. Eg. Wine, since version 5.0, preferentially makes PE builds with mingw-w64 (instead of ELF builds with native CC), and will build successfully but probably fail to package/install as its pkg-plist expects .dll.so files whi= le it produces .dll with mingw-w64 instead. You can (1) force Wine to ignore mingw-w64 with "./configure --without-mingw", or better yet (2) update the = Wine ports to use different pkg-plist files depending on whether mingw-w64 is us= ed. (In my test, I built Wine directly from source, not the Port.) --=20 You are receiving this mail because: You are the assignee for the bug.=