[GHC] #15945: Unable to compile GHC from source: redefinition of '_DYNAMIC' as different kind of symbol
GHC
ghc-devs at haskell.org
Sat Dec 29 22:26:05 UTC 2018
#15945: Unable to compile GHC from source: redefinition of '_DYNAMIC' as different
kind of symbol
-------------------------------------+-------------------------------------
Reporter: klomeli | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 8.6.2
Resolution: | Keywords: clang
Operating System: OpenBSD | Architecture: x86_64
Type of failure: Building GHC | (amd64)
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D5461
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari <ben@…>):
In [changeset:"1638350f0629365f20e97554e872d85b75f48d73/ghc"
1638350f/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="1638350f0629365f20e97554e872d85b75f48d73"
rts: fix build failure on OpenBSD (_DYNAMIC symbol collision)
Summary:
Build failure on OpenBSD-6.4 the the following:
```
rts/RtsSymbols.c:994:1: error:
error: redefinition of '_DYNAMIC' as different kind of symbol
|
994 | RTS_OPENBSD_ONLY_SYMBOLS
| ^
RTS_OPENBSD_ONLY_SYMBOLS
^
```
On OpenBSD `_DYNAMIC` was always defined in `<elf.h>` headers
but used not to be included.
The change explicitly includes `<elf.h>` as a source of symbol definition.
Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
Test Plan: build-tested on OpenBSD-6.4
Reviewers: bgamari, erikd, simonmar
Subscribers: rwbarton, carter
GHC Trac Issues: #15945
Differential Revision: https://phabricator.haskell.org/D5461
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15945#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list