[GHC] #12460: Solaris linker does not recognize option --gc-sections
GHC
ghc-devs at haskell.org
Tue Aug 30 17:53:24 UTC 2016
#12460: Solaris linker does not recognize option --gc-sections
-------------------------------------+-------------------------------------
Reporter: herzen | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
(Linking) |
Resolution: | Keywords:
Operating System: Solaris | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by herzen):
Replying to [comment:4 bgamari]:
> herzen, where does your `ld` come from? Presumably it's not a gnu ld
Oops, I didn't know about "ghc --info". Yes, it turns out that the ld that
was being used was gnu ld. When I change that to Solaris's ld
(/usr/bin/ld), the behavior I reported as a bug goes away.
My mistake was to assume that the option --with-ld passed to ./configure
has no effect, because I was dealing with a prebuilt binary of ghc, as
opposed to building it myself. I was packaging the prebuilt binary using
Solaris's build system called pkgbuild, which is derived from rpmbuild.
The way we use that build system is by having a PATH in which /usr/gnu/bin
is in front of /usr/bin; that is why gnu ld was getting picked up instead
of Solaris ld. The spec file I was working with, which was written by
someone else and actually built ghc, supplied --with-ld=/usr/bin/ld to
./configure, but I deleted that, because I didn't think it made a
difference for what I was doing, as I said.
It was sloppy of me to file a bug report instead of making sure that
Solaris ld was being used, as I had assumed.
I could paste what "ghc --info" produces, but I don't think there's any
point now.
'''kgardas''' noted above that he makes his builds on Solaris 11.2. I will
go on investigating whether I run into problems with his builds on 11.3.
(I have set up a Solaris 11.2 system, in case I need to compare what
happens between the two Solaris releases.)
Thank you very much for your suggestion. I should have thought of that
myself.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12460#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list