From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAFDA15800A for ; Thu, 10 Aug 2023 01:54:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E93C32BC026; Thu, 10 Aug 2023 01:54:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AA0B52BC021 for ; Thu, 10 Aug 2023 01:54:55 +0000 (UTC) Message-ID: <8695d1bcfa85049decfbc388a8435043c4d8be24.camel@gentoo.org> Subject: Re: [gentoo-dev] ghc support in multilib-build.eclass From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Thu, 10 Aug 2023 03:54:51 +0200 In-Reply-To: References: Organization: Gentoo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: 435f93a0-5d6b-4784-824a-7b31675f9a94 X-Archives-Hash: 17853fffc3fefb163cb32d3161f9bb61 On Wed, 2023-08-09 at 18:42 -0500, Georg Rudoy wrote: > Hi, >=20 > Right now, the configuration header generated for packages like > openssl by multilib-build.eclass doesn't play nicely with ghc. > Long story short, ghc runs `gcc -E` with `-undef`, which causes the > `#if defined(__x86_64__)` branch (or whatever is the relevant one) to > be missed, falling back to > ``` > error "No ABI matched, please report a bug to bugs.gentoo.org" > ``` /me facepalms. > There is already a workaround for Swig in the template. > I propose extending this workaround with a very small change, replacing > ``` > #elif defined(SWIG) > ``` > with > ``` > #elif defined(SWIG) || defined(__GLASGOW_HASKELL__) > ``` > in the template inside the eclass. >=20 > If everybody's happy with that, I'll be also happy to open a PR with > that change. Yes, please. --=20 Best regards, Micha=C5=82 G=C3=B3rny