Date: Thu, 30 Jan 2020 19:43:36 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 243740] Linker error: unrecognized reloc 8 Message-ID: <bug-243740-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243740 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@FreeBSD.org Reporter: arrowd@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=3D<someprefix> gmake install echo main=3Dprint 123 > test.hs <someprefix>/bin/ghc -v test.hs Making GHC use ld from binutils package makes the problem go away. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243740-227>