public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ghc support in multilib-build.eclass
@ 2023-08-09 23:42 Georg Rudoy
  2023-08-10  1:54 ` Michał Górny
  0 siblings, 1 reply; 2+ messages in thread
From: Georg Rudoy @ 2023-08-09 23:42 UTC (permalink / raw
  To: gentoo-dev

Hi,

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"
```

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.

If everybody's happy with that, I'll be also happy to open a PR with
that change.

-- 
  Georg Rudoy


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-10  1:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 23:42 [gentoo-dev] ghc support in multilib-build.eclass Georg Rudoy
2023-08-10  1:54 ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox