binutils-gold breaks haskell (ghc)

Bug #1158232 reported by Bob Wilkinson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
Won't Fix
Low
Unassigned

Bug Description

I installed binutils-gold because of some problem with clang not being able to link C files. I tried compiling some haskell code with ghc and saw errors in the linker
(specifically
bob@sweden:~/src/project_euler/haskell$ ghc 001.hs
[1 of 1] Compiling Main ( 001.hs, 001.o )
Linking 001 ...
/usr/bin/ld: --hash-size=31: unknown option
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
bob@sweden:~/src/project_euler/haskell$
)

It links correctly when I aptitude purge binutils-gold (I guess that the version of ld in binutils-gold is older than the one currently in binutils and does not support the linker option passed by ghc?).

Initially reported to http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34&t=37014

Revision history for this message
peter green (plugwash) wrote :

We don't have anyone with linker internals experiance in raspbian and even if we did we would be unlikely to spend their time troubleshooting the combination of a non-default linker and a compiler for an obscure programming language.

The bigger issue is that clang doesn't work with the regular linker, I intend to bring that one up with debian for jessie (bringing it up now would probablly just result in the armhf port of clang being kicked out).

Changed in raspbian:
importance: Undecided → Low
Revision history for this message
peter green (plugwash) wrote :

Clang seems to have started working with the regular linker now that the issue of ridiculously low CPU defaults is fixed.

I'm marking this wontfix, per the comments in my previous post.

Changed in raspbian:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.