Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8726725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:18:24+00:00 2026-06-13T08:18:24+00:00

I wrote a basic hello world program in haskel and tried to compile it

  • 0

I wrote a basic hello world program in haskel and tried to compile it with:
ghc filename.hs. It produces .hi and .o files but no executable and displays
this error in the linker:

marox@IT-marox:~/Marox$ ghc tupel.hs
Linking tupel …
/usr/bin/ld: –hash-size=31: unknown option
/usr/bin/ld: use the –help option for usage information
collect2: ld returned 1 exit status

Googling didn’t return any useful information.

I am on ubuntu 12.04.

How can I fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:18:25+00:00Added an answer on June 13, 2026 at 8:18 am

    Have you binutils-gold installed? If yes, this is the problem (since the gold linker does not support --hash-size AFAIK).

    Possible solutions:

    1. remove gold
    2. your ld probably links to ld.gold, so change the symlink to ld.ld
    3. tell the haskell compiler explicitly which linker to use with the -pgml option: ghc -pgml ld.ld tupel.hs
    4. install ghc from source, since the configure script of ghc will then build ghc so that it won’t use --hash-size
    5. Depending on your version of ghc, you can adjust the linker settings in ghc‘s setting file /usr/lib/ghc-your.ghc.version/settings
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to compile a very basic hello world level Cuda program under Linux.
I wrote a custom (VERY basic Hello world!) bootloader in Assembler and I would
I have a basic Java program with output of hello world. What I want
I wrote a basic Hippity Hop program in C, Python, and OCaml. Granted, this
I wrote a streaming radio app that is fairly basic in functionality but some
I'm trying to write a basic synchronisation program to copy files between two directories.
I am working on a basic hello world application that will open a txt
Im trying to just create basic files internally for another app. So i wrote
I try to make simple hello world app for facebook. But when i try
I wanted to write something basic in assembly under Windows. I'm using NASM, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.