Unrecognized option to 'ld' when building hslua
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**[root@example tools]#** cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
**[root@example tools]#** cabal install hslua
Resolving dependencies...
Configuring hslua-0.3.13...
Building hslua-0.3.13...
Preprocessing library hslua-0.3.13...
gcc: --hash-size=31: linker input file unused because linking not done
gcc: --reduce-memory-overheads: linker input file unused because linking not done
gcc: --hash-size=31: linker input file unused because linking not done
gcc: --reduce-memory-overheads: linker input file unused because linking not done
[1 of 2] Compiling Scripting.Lua ( dist/build/Scripting/Lua.hs, dist/build/Scripting/Lua.o )
src/Scripting/Lua.hsc:183:1: Warning:
Module `Prelude' does not export`catch'
/usr/bin/ld: unrecognized option '--build-id=none'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
ghc --make: /usr/hs/ghc/7.6.3/bin/ghc failure (return code=1)
Failed to install hslua-0.3.13
cabal-1.16.0.2: Error: some packages failed to install:
hslua-0.3.13 failed during the building phase. The exception was:
ExitFailure 1
cabal install: /usr/hs/tools/cabal-1.16.0.2 failure (return code=1)
**[root@example tools]#** which gcc
/usr/bin/gcc
**[root@example tools]#** gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**[root@example tools]#** which ld
/usr/bin/ld
**[root@example tools]#** ld --version
GNU ld version 2.17.50.0.6-14.el5 20061020
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
**[root@example hslua-0.3.13]#** which ghc
/usr/bin/ghc
**[root@example hslua-0.3.13]#** ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
Contributor guide
Research direction
Start by reproducing `cabal install hslua` with the reported GHC, GCC, and GNU ld versions, then inspect the build configuration around `src/Scripting/Lua.hsc` and the linker flags shown in the log. Done means hslua builds successfully without passing unsupported options to `ld`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100