Skip to content

Instantly share code, notes, and snippets.

View mitchty's full-sized avatar

Mitch Tishmack mitchty

  • Saint Paul, MN
View GitHub Profile
/nix/var/nix/profiles
|-- default -> default-3-link
|-- default-1-link -> /nix/store/n63sfkbgknzra60np1xqg1fyaj3fhgm0-user-environment
|-- default-2-link -> /nix/store/2j9hfkckmj7ccgl1xag1y1gi3msny14f-user-environment
|-- default-3-link -> /nix/store/byxaigz788ss50firxkcysm7mkw5vzy2-user-environment
`-- per-user
|-- mitch
`-- root
|-- channels -> channels-1-link
`-- channels-1-link -> /nix/store/6kzh2s07wxkbqq2lhfnra296qjvz61j7-user-environment
derp:~# which ghc
/usr/bin/ghc
derp:~# ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
derp:~# apk info ghc
ghc-8.0.2-r6 description:
The Glasgow Haskell Compiler
ghc-8.0.2-r6 webpage:
http://haskell.org
echo '#!/usr/bin/perl' >> utils/count_lines/dist/count_lines
echo 'my $TARGETPLATFORM = "arm-alpine-linux";' >> utils/count_lines/dist/count_lines
"gcc" -marm -fno-stack-protector -Wall -Iiserv/stage2/build/iserv/autogen -Iiserv/. -Iiserv/stage2/build/. -I'/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/src/ghc-8.4.1/libraries/directory/.' -I'/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/src/ghc-8.4.1/libraries/directory/dist-install/build/.' -I'/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/src/ghc-8.4.1/libraries/unix/include' -I'/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/src/ghc-8.4.1/libraries/unix/dist-install/build/include' -I'/tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA/community/ghc/s
/usr/lib/gcc/armv6-alpine-linux-musleabihf/6.4.0/../../../../armv6-alpine-linux-musleabihf/bin/ld: error: rts/dist/build/libHSrts-ghc8.4.1.so uses VFP register arguments, rts/dist/build/PrimOps.dyn_o does not
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
"inplace/bin/ghc-stage1" -optc-marm -optc-fno-stack-protector -optc-Wall -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Wundef -optc-Iincludes -optc-Iincludes/dist -optc-Iincludes/dist-derivedconstants/header -optc-Iincludes/dist-ghcconstants/header -optc-Irts -optc-Irts/dist/build -optc-DCOMPILING_RTS -optc-DNOSMP -optc-DUSE_LIBFFI_FOR_ADJUSTORS -optc-fno-strict-aliasing -optc-fno-common -optc-DBE_CONSERVATIVE -optc-Irts/dist/build/./autogen -optc-Werror=unused-but-set-variable -optc-Wno-error=inline -optc-O2 -optc-fomit-frame-pointer -optc-g -optc-DRtsWay=\"rts_v\" -optc-ffunction-sections -optc-fdata-sections -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
10:58:22 [x86_64 ghc] >>> ghc: abuild 3.1.0-r3
10:58:22 [x86_64 ghc] >>> ghc: Checking sanity of /tmp/workspace/alpine-build-ghc_8.4.1-4JCVG775BLPUUIVONG7OXNONWQVRSQWC3VMIAC47VEVGV7FT77PA@2/community/ghc/APKBUILD...
10:58:22 [x86_64 ghc] >>> ghc: Analyzing dependencies...
10:58:23 [x86_64 ghc] >>> ghc: Installing for build: build-base gmp-dev perl gcc>=6.2.1 llvm3.9 libffi-dev autoconf cpio binutils-gold paxmark ncurses-dev xz coreutils linux-headers musl-dev zlib-dev binutils-dev python3
10:58:23 [x86_64 ghc] (1/25) Installing musl-dev (1.1.18-r3)
10:58:24 [x86_64 ghc] (2/25) Installing libc-dev (0.7.1-r0)
10:58:24 [x86_64 ghc] (3/25) Installing g++ (6.4.0-r5)
10:58:26 [x86_64 ghc] (4/25) Installing make (4.2.1-r0)
10:58:26 [x86_64 ghc] (5/25) Installing fortify-headers (0.9-r0)
10:58:26 [x86_64 ghc] (6/25) Installing build-base (0.5-r0)
# apk add abuild
(1/14) Installing fakeroot (1.21-r1)
(2/14) Installing pax-utils (1.2.2-r1)
(3/14) Installing libressl2.6-libtls (2.6.3-r0)
(4/14) Installing libressl (2.6.3-r0)
(5/14) Installing libattr (2.4.47-r6)
(6/14) Installing attr (2.4.47-r6)
(7/14) Installing tar (1.29-r1)
(8/14) Installing pkgconf (1.3.10-r0)
(9/14) Installing patch (2.7.5-r1)
>>> gcc-aarch64: Updating the main/x86_64 repository index...
>>> gcc-aarch64: Signing the index...
>>> gcc-aarch64: Updating the main/aarch64 repository index...
>>> gcc-aarch64: Signing the index...
>>> build-base-aarch64: abuild 3.1.0-r3
>>> build-base-aarch64: Checking sanity of /home/build/aports/main/build-base/APKBUILD...
>>> build-base-aarch64: Analyzing dependencies...
ERROR: unsatisfiable constraints:
libstdc++-6.4.0-r5:
breaks:
HC [stage 2] utils/haddock/dist/build/ResponseFile.dyn_o
/bin/bash: line 1: 2490 Segmentation fault "inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc -fPIC -dynamic -H32m -O -Wall -hide-all-packages -i -iutils/haddock/driver -iutils/haddock/haddock-api/src -iutils/haddock/haddock-library/vendor/attoparsec-0.13.1.0 -iutils/haddock/haddock-library/src -iutils/haddock/dist/build -Iutils/haddock/dist/build -iutils/haddock/dist/build/haddock/autogen -Iutils/haddock/dist/build/haddock/autogen -optP-DIN_GHC_TREE -optP-include -optPutils/haddock/dist/build/haddock/autogen/cabal_macros.h -package-id base-4.10.1.0 -package-id filepath-1.4.1.2 -package-id directory-1.3.0.2 -package-id containers-0.5.10.2 -package-id deepseq-1.4.3.0 -package-id array-0.5.2.0 -package-id xhtml-3000.2.2 -package-id Cabal-2.0.1.0 -package-id ghc-boot-8.2.2 -package-id ghc-8.2.2 -package-id bytestring-0.10.8.2 -package-id transformers-0.5.2.0 -funbox-strict-fields -Wall -fwarn-tabs -O2 -threaded -XHaskell2010 -no-user-