Skip to content

Instantly share code, notes, and snippets.

@mitchty
Created March 12, 2018 23:51
Show Gist options
  • Save mitchty/88428a817a3e708302157135241bc131 to your computer and use it in GitHub Desktop.
Save mitchty/88428a817a3e708302157135241bc131 to your computer and use it in GitHub Desktop.
echo 'executablename="/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/src/ghc-8.4.1/inplace/lib/bin/genapply"' >> inplace/bin/genapply
echo 'datadir="/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/src/ghc-8.4.1/inplace/lib"' >> inplace/bin/genapply
echo 'bindir="/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/src/ghc-8.4.1/inplace/bin"' >> inplace/bin/genapply
echo 'topdir="/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/src/ghc-8.4.1/inplace/lib"' >> inplace/bin/genapply
echo 'pgmgcc="gcc"' >> inplace/bin/genapply
echo 'export LD_LIBRARY_PATH="/usr/lib/ghc-8.0.2/pretty-1.1.3.3:/usr/lib/ghc-8.0.2/deepseq-1.4.2.0:/usr/lib/ghc-8.0.2/array-0.5.1.1:/usr/lib/ghc-8.0.2/base-4.9.1.0:/usr/lib/ghc-8.0.2/integer-gmp-1.0.0.1:/usr/lib/ghc-8.0.2/ghc-prim-0.5.0.0:/usr/lib/ghc-8.0.2/rts${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"' >> inplace/bin/genapply
echo 'exec "$executablename" ${1+"$@"}' >> inplace/bin/genapply
chmod +x inplace/bin/genapply
"inplace/bin/genapply" >rts/dist/build/AutoApply.cmm
"inplace/bin/ghc-stage1" -static -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -optc-DNOSMP -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/dist/build/AutoApply.cmm -o rts/dist/build/AutoApply.o
"inplace/bin/ghc-stage1" -static -prof -eventlog -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -optc-DNOSMP -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/dist/build/AutoApply.cmm -o rts/dist/build/AutoApply.p_o
"inplace/bin/ghc-stage1" -fPIC -dynamic -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -optc-DNOSMP -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/dist/build/AutoApply.cmm -o rts/dist/build/AutoApply.dyn_o
"inplace/bin/ghc-stage1" -static -eventlog -H32m -O -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -optc-DNOSMP -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/dist/build/AutoApply.cmm -o rts/dist/build/AutoApply.l_o
/usr/lib/gcc/armv6-alpine-linux-musleabihf/6.4.0/../../../../armv6-alpine-linux-musleabihf/bin/ld: error: /tmp/ghc2211_0/ghc_7.p_o uses VFP register arguments, libraries/ghc-prim/dist-install/build/GHC/Types.p_o does not
/usr/lib/gcc/armv6-alpine-linux-musleabihf/6.4.0/../../../../armv6-alpine-linux-musleabihf/bin/ld: failed to merge target specific data of file /tmp/ghc2211_0/ghc_7.p_o
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
make[1]: *** [libraries/ghc-prim/ghc.mk:4: libraries/ghc-prim/dist-install/build/GHC/Types.p_o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:127: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment