[Bug 243740] Linker error: unrecognized reloc 8

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 30 19:43:36 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243740

            Bug ID: 243740
           Summary: Linker error: unrecognized reloc 8
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: arrowd at FreeBSD.org

I'm facing a problem with bootstrap GHC (Haskell compiler).

The bootstrap compiler is built on amd64 11.3-RELEASE and is located here:
http://arrowd.name/ghc-8.6.3-boot-amd64-freebsd.tar.xz

Now, I'm trying to use it to build GHC on 12.0-RELEASE, however it turns out
that it doesn't work on FreeBSD 12. Compiling even simple hello world
application results in

/usr/bin/ld.lld: error: OSMem.c:(.SUNW_dof+0x160): unrecognized reloc 8

error.

Steps to reproduce. On FreeBSD 12 amd64 do:

fetch http://arrowd.name/ghc-8.6.3-boot-amd64-freebsd.tar.xz

tar -xvf ghc-8.6.3-boot-amd64-freebsd.tar.xz

cd ghc-8.6.3-boot

./configure --prefix=<someprefix>
gmake install

echo main=print 123 > test.hs
<someprefix>/bin/ghc -v test.hs

Making GHC use ld from binutils package makes the problem go away.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list