Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Run Ghc Stage1 (package = iserv-bin) - duplicate symbol #102

Closed
angerman opened this issue Jan 5, 2016 · 4 comments
Closed

Run Ghc Stage1 (package = iserv-bin) - duplicate symbol #102

angerman opened this issue Jan 5, 2016 · 4 comments

Comments

@angerman
Copy link
Collaborator

angerman commented Jan 5, 2016

Now I'm stuck at iserv-bin with:

/--------------------------------------------------------\
| Run Ghc Stage1 (package = iserv-bin)                   |
|     input: iserv/stage1/build/iservmain.o (and 1 more) |
| => output: iserv/stage1/build/tmp/iserv-bin            |
\--------------------------------------------------------/
duplicate symbol _main in:
    iserv/stage1/build/iservmain.o
    /var/folders/fv/xqjrpfj516n5xq_m_ljpsjx00000gn/T/ghc91363_0/ghc_2.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`clang' failed in phase `Linker'. (Exit code: 1)
shakeArgsWith     0.002s    0%                           
Function shake    0.032s    0%                           
Database read     0.005s    0%                           
With database     0.000s    0%                           
Running rules  1831.507s   99%  =========================
Total          1831.546s  100%                           
Error when running Shake build system:
* iserv/stage1/build/tmp/iserv-bin
user error (Development.Shake.cmd, system command failed
Command: inplace/bin/ghc-stage1 -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db -package-id array-0.5.1.0 -package-id base-4.9.0.0 -package-id binary-0.8.0.0 -package-id bytestring-0.10.7.0 -package-id containers-0.5.7.1 -package-id deepseq-1.4.2.0 -package-id ghci-8.1 -package-id unix-2.7.1.1 -i -iiserv/stage1/build -iiserv/stage1/build/autogen -iiserv -Iiserv/stage1/build -Iiserv/stage1/build/autogen -I/Users/angerman/Projects/Haskell/ghc/libraries/directory/include -I/Users/angerman/Projects/Haskell/ghc/libraries/unix/include -I/Users/angerman/Projects/Haskell/ghc/libraries/time/lib/include -I/Users/angerman/Projects/Haskell/ghc/libraries/containers/include -I/Users/angerman/Projects/Haskell/ghc/libraries/bytestring/include -I/Users/angerman/Projects/Haskell/ghc/libraries/base/include -I/Users/angerman/Projects/Haskell/ghc/libraries/integer-gmp/include -I/Users/angerman/Projects/haskell/ghc/rts/stage1/build -I/Users/angerman/Projects/haskell/ghc/includes -I/Users/angerman/Projects/haskell/ghc/includes/dist-derivedconstants/header -optP-include -optPiserv/stage1/build/autogen/cabal_macros.h -XHaskell2010 -odir iserv/stage1/build -hidir iserv/stage1/build -stubdir iserv/stage1/build -rtsopts -H32m -O2 -Wall -fwarn-tabs -no-auto-link-packages -optl-liconv -optl-lm -optl-ldl -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/ghci/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/transformers/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/template-haskell/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/pretty/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/ghc-boot/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/directory/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/unix/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/time/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/filepath/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/binary/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/containers/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/bytestring/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/deepseq/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/array/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/base/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/integer-gmp/stage1/build -optl-L/Users/angerman/Projects/Haskell/ghc/libraries/ghc-prim/stage1/build -optl-L/Users/angerman/Projects/haskell/ghc/rts/stage1/build iserv/stage1/build/iservmain.o iserv/stage1/build/Main.o -o iserv/stage1/build/tmp/iserv-bin
Exit code: 1
Stderr:
duplicate symbol _main in:
    iserv/stage1/build/iservmain.o
    /var/folders/fv/xqjrpfj516n5xq_m_ljpsjx00000gn/T/ghc91363_0/ghc_2.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`clang' failed in phase `Linker'. (Exit code: 1)
)

I'm a bit confused what ghc_2.o is.

@angerman
Copy link
Collaborator Author

angerman commented Jan 5, 2016

Here's the full iserv-bin log

/----------------------------------------------------\
| Run GhcCabal (stage = Stage1, package = iserv-bin) |
|     input: iserv/iserv-bin.cabal                   |
| => output: iserv/stage1/package-data.mk            |
\----------------------------------------------------/
Configuring iserv-bin-0.0...
| Fix iserv/stage1/package-data.mk
Reading iserv/stage1/package-data.mk...
Reading dependencies from iserv/stage1/build/.dependencies...

/------------------------------------------------\
| Run GccM Stage1 (package = iserv-bin)          |
|     input: iserv/iservmain.c                   |
| => output: iserv/stage1/build/iservmain.c.deps |
\------------------------------------------------/

/------------------------------------------------\
| Run GhcM Stage1 (package = iserv-bin)          |
|     input: iserv/Main.hs                       |
| => output: iserv/stage1/build/.hs-dependencies |
\------------------------------------------------/

/--------------------------------------\
| Run Ghc Stage1 (package = iserv-bin) |
|     input: iserv/Main.hs             |
| => output: iserv/stage1/build/Main.o |
\--------------------------------------/

/-------------------------------------------\
| Run Gcc Stage1 (package = iserv-bin)      |
|     input: iserv/iservmain.c              |
| => output: iserv/stage1/build/iservmain.o |
\-------------------------------------------/

/--------------------------------------------------------\
| Run Ghc Stage1 (package = iserv-bin)                   |
|     input: iserv/stage1/build/iservmain.o (and 1 more) |
| => output: iserv/stage1/build/tmp/iserv-bin            |
\--------------------------------------------------------/

@angerman
Copy link
Collaborator Author

angerman commented Jan 5, 2016

Symbols:

$ nm iserv/stage1/build/iservmain.o
                 U _ZCMain_main_closure
                 U _defaultRtsConfig
                 U _hs_main
0000000000000000 T _main
                 U _memcpy

@snowleopard
Copy link
Owner

Could it be related to -no-hs-main option?

@angerman
Copy link
Collaborator Author

angerman commented Jan 5, 2016

For reference, here's the full output from the build log (using make)

   File `all_iserv' does not exist.
     File `all_iserv_stage2' does not exist.
       File `iserv/stage2/build/tmp/ghc-iserv' does not exist.
         File `iserv/stage2/build/Main.o' does not exist.
        Must remake target `iserv/stage2/build/Main.o'.
"inplace/bin/ghc-stage1" -hisuf hi -osuf  o -hcsuf hc -static  -O0 -H64m -Wall      -hide-all-packages -i -iiserv/. -iiserv/stage2/build -iiserv/stage2/build/autogen -Iiserv/stage2/build -Iiserv/stage2/build/autogen     -optP-include -optPiserv/stage2/build/autogen/cabal_macros.h -package-id array-0.5.1.0 -package-id base-4.9.0.0 -package-id binary-0.8.0.0 -package-id bytestring-0.10.7.0 -package-id containers-0.5.7.1 -package-id deepseq
-1.4.2.0 -package-id ghci-7.11 -package-id unix-2.7.1.1 -XHaskell2010  -threaded -no-hs-main -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  -odir iserv/stage2/build -hidir iserv/stage2/build -stubdir iserv/stage2/build    -c iserv/./Main.hs -o iserv/stage2/build/Main.o 
        Successfully remade target file `iserv/stage2/build/Main.o'.
         File `iserv/stage2/build/iservmain.o' does not exist.
        Must remake target `iserv/stage2/build/iservmain.o'.
"/usr/bin/clang"  -m64 -fno-stack-protector -Wall   -Iiserv/stage2/build/autogen      -I'/Users/angerman/Projects/Haskell/ghc/libraries/directory/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/unix/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/time/lib/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/containers/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/bytestring/include' -I'/Users/ange
rman/Projects/Haskell/ghc/libraries/base/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/integer-gmp/include' -I'/Users/angerman/Projects/Haskell/ghc/rts/dist/build' -I'/Users/angerman/Projects/Haskell/ghc/includes' -I'/Users/angerman/Projects/Haskell/ghc/includes/dist-derivedconstants/header'   -Wno-unknown-pragmas     -c iserv/iservmain.c -o iserv/stage2/build/iservmain.o
        Successfully remade target file `iserv/stage2/build/iservmain.o'.
         File `iserv/stage2/build/tmp//.' does not exist.
        Must remake target `iserv/stage2/build/tmp//.'.
"inplace/bin/mkdirhier" iserv/stage2/build/tmp//.
        Successfully remade target file `iserv/stage2/build/tmp//.'.
      Must remake target `iserv/stage2/build/tmp/ghc-iserv'.
"inplace/bin/ghc-stage1" -o iserv/stage2/build/tmp/ghc-iserv -hisuf hi -osuf  o -hcsuf hc -static  -O0 -H64m -Wall      -hide-all-packages -i -iiserv/. -iiserv/stage2/build -iiserv/stage2/build/autogen -Iiserv/stage2/build -Iiserv/stage2/build/autogen     -optP-include -optPiserv/stage2/build/autogen/cabal_macros.h -package-id array-0.5.1.0 -package-id base-4.9.0.0 -package-id binary-0.8.0.0 -package-id bytestring-0.10.7.0 -package-id containers-0.5.7.1 -package-id deepseq-1.4.2.0 -package-id ghci-7.11 -package-id unix-2.7.1.1 -XHaskell2010  -threaded -no-hs-main -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  -odir iserv/stage2/build -hidir iserv/stage2/build -stubdir iserv/stage2/build    -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/ghci/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/transformers/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/template-haskell/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/pretty/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/ghc-boot/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/directory/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/unix/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/time/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/filepath/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/binary/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/containers/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/bytestring/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/deepseq/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/array/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/base/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/integer-gmp/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/ghc-prim/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/rts/dist/build' -optl-liconv -optl-lm -optl-ldl -static  -O0 -H64m -Wall      -hide-all-packages -i -iiserv/. -iiserv/stage2/build -iiserv/stage2/build/autogen -Iiserv/stage2/build -Iiserv/stage2/build/autogen     -optP-include -optPiserv/stage2/build/autogen/cabal_macros.h -package-id array-0.5.1.0 -package-id base-4.9.0.0 -package-id binary-0.8.0.0 -package-id bytestring-0.10.7.0 -package-id containers-0.5.7.1 -package-id deepseq-1.4.2.0 -package-id ghci-7.11 -package-id unix-2.7.1.1 -XHaskell2010  -threaded -no-hs-main -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  iserv/stage2/build/Main.o iserv/stage2/build/iservmain.o   
Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
    Call hs_init_ghc() from your main() function to set these options.
      Successfully remade target file `iserv/stage2/build/tmp/ghc-iserv'.
       File `inplace/lib/bin/ghc-iserv' does not exist.
         File `inplace/lib/bin/ghc-iserv.bin' does not exist.
        Must remake target `inplace/lib/bin/ghc-iserv.bin'.
/usr/bin/install -c -m 755 iserv/stage2/build/tmp/ghc-iserv inplace/lib/bin/ghc-iserv.bin
        Successfully remade target file `inplace/lib/bin/ghc-iserv.bin'.
      Must remake target `inplace/lib/bin/ghc-iserv'.
"rm" -f                                                     inplace/lib/bin/ghc-iserv  
echo '#!/bin/sh'                                                   >> inplace/lib/bin/ghc-iserv
echo 'executablename="/Users/angerman/Projects/Haskell/ghc/inplace/lib/bin/ghc-iserv.bin"'                                  >> inplace/lib/bin/ghc-iserv
echo 'datadir="/Users/angerman/Projects/Haskell/ghc/inplace/lib"'                             >> inplace/lib/bin/ghc-iserv
echo 'bindir="/Users/angerman/Projects/Haskell/ghc/inplace/bin"'                              >> inplace/lib/bin/ghc-iserv
echo 'topdir="/Users/angerman/Projects/Haskell/ghc/inplace/lib"'                           >> inplace/lib/bin/ghc-iserv
echo 'pgmgcc="/usr/bin/clang"'                                  >> inplace/lib/bin/ghc-iserv
echo 'export DYLD_LIBRARY_PATH="/Users/angerman/Projects/Haskell/ghc/libraries/ghci/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/transformers/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/template-haskell/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/pretty/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/ghc-boot/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/directory/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/unix/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/time/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/filepath/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/binary/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/containers/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/bytestring/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/deepseq/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/array/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/base/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/integer-gmp/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/ghc-prim/dist-install/build:/Users/angerman/Projects/Haskell/ghc/rts/dist/build${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}"' >> inplace/lib/bin/ghc-iserv
echo 'exec "$executablename" ${1+"$@"}'                     >> inplace/lib/bin/ghc-iserv
chmod +x                                                     inplace/lib/bin/ghc-iserv
      Successfully remade target file `inplace/lib/bin/ghc-iserv'.
    Must remake target `all_iserv_stage2'.
    Successfully remade target file `all_iserv_stage2'.
     File `all_iserv_stage2_dyn' does not exist.
       File `iserv/stage2_dyn/build/tmp/ghc-iserv-dyn' does not exist.
         File `iserv/stage2_dyn/build/Main.dyn_o' does not exist.
        Must remake target `iserv/stage2_dyn/build/Main.dyn_o'.
"inplace/bin/ghc-stage1" -hisuf dyn_hi -osuf  dyn_o -hcsuf dyn_hc -fPIC -dynamic  -O0 -H64m -Wall      -hide-all-packages -i -iiserv/. -iiserv/stage2_dyn/build -iiserv/stage2_dyn/build/autogen -Iiserv/stage2_dyn/build -Iiserv/stage2_dyn/build/autogen     -optP-include -optPiserv/stage2_dyn/build/autogen/cabal_macros.h -package-id array-0.5.1.0 -package-id base-4.9.0.0 -package-id binary-0.8.0.0 -package-id bytestring-0.10.7.0 -package-id containers-0.5.7.1 -package-id deepseq-1.4.2.0 -package-id ghci-7.11 -package-id unix-2.7.1.1 -XHaskell2010  -threaded -no-hs-main -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  -odir iserv/stage2_dyn/build -hidir iserv/stage2_dyn/build -stubdir iserv/stage2_dyn/build    -c iserv/./Main.hs -o iserv/stage2_dyn/build/Main.dyn_o 
        Successfully remade target file `iserv/stage2_dyn/build/Main.dyn_o'.
         File `iserv/stage2_dyn/build/iservmain.dyn_o' does not exist.
        Must remake target `iserv/stage2_dyn/build/iservmain.dyn_o'.
"/usr/bin/clang"  -m64 -fno-stack-protector -Wall   -Iiserv/stage2_dyn/build/autogen      -I'/Users/angerman/Projects/Haskell/ghc/libraries/directory/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/unix/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/time/lib/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/containers/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/bytestring/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/base/include' -I'/Users/angerman/Projects/Haskell/ghc/libraries/integer-gmp/include' -I'/Users/angerman/Projects/Haskell/ghc/rts/dist/build' -I'/Users/angerman/Projects/Haskell/ghc/includes' -I'/Users/angerman/Projects/Haskell/ghc/includes/dist-derivedconstants/header'   -Wno-unknown-pragmas     -c iserv/iservmain.c -o iserv/stage2_dyn/build/iservmain.dyn_o
        Successfully remade target file `iserv/stage2_dyn/build/iservmain.dyn_o'.
         File `iserv/stage2_dyn/build/tmp//.' does not exist.
        Must remake target `iserv/stage2_dyn/build/tmp//.'.
"inplace/bin/mkdirhier" iserv/stage2_dyn/build/tmp//.
        Successfully remade target file `iserv/stage2_dyn/build/tmp//.'.
      Must remake target `iserv/stage2_dyn/build/tmp/ghc-iserv-dyn'.
"inplace/bin/ghc-stage1" -o iserv/stage2_dyn/build/tmp/ghc-iserv-dyn -hisuf dyn_hi -osuf  dyn_o -hcsuf dyn_hc -fPIC -dynamic  -O0 -H64m -Wall      -hide-all-packages -i -iiserv/. -iiserv/stage2_dyn/build -iiserv/stage2_dyn/build/autogen -Iiserv/stage2_dyn/build -Iiserv/stage2_dyn/build/autogen     -optP-include -optPiserv/stage2_dyn/build/autogen/cabal_macros.h -package-id array-0.5.1.0 -package-id base-4.9.0.0 -package-id binary-0.8.0.0 -package-id bytestring-0.10.7.0 -package-id containers-0.5.7.1 -package-id deepseq-1.4.2.0 -package-id ghci-7.11 -package-id unix-2.7.1.1 -XHaskell2010  -threaded -no-hs-main -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  -odir iserv/stage2_dyn/build -hidir iserv/stage2_dyn/build -stubdir iserv/stage2_dyn/build    -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/ghci/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/transformers/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/template-haskell/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/pretty/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/ghc-boot/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/directory/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/unix/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/time/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/filepath/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/binary/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/containers/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/bytestring/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/deepseq/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/array/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/base/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/integer-gmp/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/libraries/ghc-prim/dist-install/build' -optl-L'/Users/angerman/Projects/Haskell/ghc/rts/dist/build' -optl-liconv -optl-lm -optl-ldl -fPIC -dynamic  -O0 -H64m -Wall      -hide-all-packages -i -iiserv/. -iiserv/stage2_dyn/build -iiserv/stage2_dyn/build/autogen -Iiserv/stage2_dyn/build -Iiserv/stage2_dyn/build/autogen     -optP-include -optPiserv/stage2_dyn/build/autogen/cabal_macros.h -package-id array-0.5.1.0 -package-id base-4.9.0.0 -package-id binary-0.8.0.0 -package-id bytestring-0.10.7.0 -package-id containers-0.5.7.1 -package-id deepseq-1.4.2.0 -package-id ghci-7.11 -package-id unix-2.7.1.1 -XHaskell2010  -threaded -no-hs-main -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  -fno-use-rpaths -optl-Wl,-rpath -optl-Wl,'@loader_path/../ghci-7.11' -optl-Wl,-rpath -optl-Wl,'@loader_path/../transformers-0.5.0.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../template-haskell-2.11.0.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../pretty-1.1.3.2' -optl-Wl,-rpath -optl-Wl,'@loader_path/../ghc-boot-7.11' -optl-Wl,-rpath -optl-Wl,'@loader_path/../directory-1.2.5.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../unix-2.7.1.1' -optl-Wl,-rpath -optl-Wl,'@loader_path/../time-1.6' -optl-Wl,-rpath -optl-Wl,'@loader_path/../filepath-1.4.1.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../binary-0.8.0.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../containers-0.5.7.1' -optl-Wl,-rpath -optl-Wl,'@loader_path/../bytestring-0.10.7.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../deepseq-1.4.2.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../array-0.5.1.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../base-4.9.0.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../integer-gmp-1.0.0.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../ghc-prim-0.5.0.0' -optl-Wl,-rpath -optl-Wl,'@loader_path/../rts' iserv/stage2_dyn/build/Main.dyn_o iserv/stage2_dyn/build/iservmain.dyn_o   
Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
    Call hs_init_ghc() from your main() function to set these options.
      Successfully remade target file `iserv/stage2_dyn/build/tmp/ghc-iserv-dyn'.
       File `inplace/lib/bin/ghc-iserv-dyn' does not exist.
         File `inplace/lib/bin/ghc-iserv-dyn.bin' does not exist.
        Must remake target `inplace/lib/bin/ghc-iserv-dyn.bin'.
/usr/bin/install -c -m 755 iserv/stage2_dyn/build/tmp/ghc-iserv-dyn inplace/lib/bin/ghc-iserv-dyn.bin
        Successfully remade target file `inplace/lib/bin/ghc-iserv-dyn.bin'.
      Must remake target `inplace/lib/bin/ghc-iserv-dyn'.
"rm" -f                                                     inplace/lib/bin/ghc-iserv-dyn  
echo '#!/bin/sh'                                                   >> inplace/lib/bin/ghc-iserv-dyn
echo 'executablename="/Users/angerman/Projects/Haskell/ghc/inplace/lib/bin/ghc-iserv-dyn.bin"'                                  >> inplace/lib/bin/ghc-iserv-dyn
echo 'datadir="/Users/angerman/Projects/Haskell/ghc/inplace/lib"'                             >> inplace/lib/bin/ghc-iserv-dyn
echo 'bindir="/Users/angerman/Projects/Haskell/ghc/inplace/bin"'                              >> inplace/lib/bin/ghc-iserv-dyn
echo 'topdir="/Users/angerman/Projects/Haskell/ghc/inplace/lib"'                           >> inplace/lib/bin/ghc-iserv-dyn
echo 'pgmgcc="/usr/bin/clang"'                                  >> inplace/lib/bin/ghc-iserv-dyn
echo 'export DYLD_LIBRARY_PATH="/Users/angerman/Projects/Haskell/ghc/libraries/ghci/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/transformers/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/template-haskell/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/pretty/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/ghc-boot/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/directory/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/unix/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/time/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/filepath/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/binary/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/containers/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/bytestring/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/deepseq/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/array/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/base/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/integer-gmp/dist-install/build:/Users/angerman/Projects/Haskell/ghc/libraries/ghc-prim/dist-install/build:/Users/angerman/Projects/Haskell/ghc/rts/dist/build${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}"' >> inplace/lib/bin/ghc-iserv-dyn
echo 'exec "$executablename" ${1+"$@"}'                     >> inplace/lib/bin/ghc-iserv-dyn
chmod +x                                                     inplace/lib/bin/ghc-iserv-dyn
      Successfully remade target file `inplace/lib/bin/ghc-iserv-dyn'.
    Must remake target `all_iserv_stage2_dyn'.
    Successfully remade target file `all_iserv_stage2_dyn'.
  Must remake target `all_iserv'.
  Successfully remade target file `all_iserv'.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants