#7452: [GNU gold] ld: error: cannot find [...]/Types__1.o
--------------------------------+-------------------------------------------
Reporter:  mrothe               |          Owner:                
    Type:  bug                  |         Status:  new           
Priority:  normal               |      Component:  Build System  
 Version:  7.6.1                |       Keywords:                
      Os:  Linux                |   Architecture:  x86_64 (amd64)
 Failure:  Building GHC failed  |      Blockedby:                
Blocking:                       |        Related:                
--------------------------------+-------------------------------------------
 `/usr/bin/ld` is gold linker and I am trying to compile GHC 7.6.1 using
 it. I grabbed GHC 7.6.1 from haskell.org/ghc and edited `settings`; i.e.
 removing `--hash-size=31` and `--reduce-memory-overheads`.

 While running `make` the linker cannot find some object files:

 {{{
 $ make
 ===--- building phase 0
 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
 make[1]: Nothing to be done for `phase_0_builds'.
 ===--- building phase 1
 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
 make[1]: Nothing to be done for `phase_1_builds'.
 ===--- building final phase
 make -r --no-print-directory -f ghc.mk phase=final all
 /usr/bin/xsltproc  docs/man/flags.xsl docs/man/flags.xml > docs/man/ghc.1
   HC [stage 0] utils/hp2ps/dist/build/tmp/hp2ps
 Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
     Call hs_init_ghc() from your main() function to set these options.
 "cp" -p utils/hp2ps/dist/build/tmp/hp2ps inplace/bin/hp2ps
   HC [stage 0] utils/genapply/dist/build/tmp/genapply
 "cp" -p utils/genapply/dist/build/tmp/genapply inplace/bin/genapply
   HC [stage 1] libraries/ghc-prim/dist-install/build/GHC/Types.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__1.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__2.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__3.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__4.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__5.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__6.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__7.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__8.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__9.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__10.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__11.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__12.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__13.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__14.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__15.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__16.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__17.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__18.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__19.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__20.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__21.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__22.o
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-
 gnu/bin/ld: error: cannot find libraries/ghc-prim/dist-
 install/build/GHC/Types_o_split/Types__23.o
 collect2: error: ld returned 1 exit status
 make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/Types.o] Error 1
 make: *** [all] Error 2
 }}}

 All object files that cannot be found are present and switching
 `/usr/bin/ld` to the bfd linker solves the problem.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7452>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to