ghc-cabal: Use fromFlagOrDefault instead of fromFlag

As fromFlag is partial. The only case where we used fromFlag is when
determining whether to strip libraries; we now assume that we shouldn't.
18 jobs for !1416 with wip/bump-cabal in 364 minutes and 57 seconds (queued for 3 seconds)
detached
Status Job ID Name Coverage
  Lint
passed #127681
lint
ghc-linters

00:00:17

passed #127682
lint
lint-submods-mr

00:00:17

 
  Build
failed #127685
x86_64-linux allowed to fail
release-x86_64-linux-deb9-dwarf

01:39:14

passed #127683
x86_64-linux
validate-x86_64-linux-deb8-hadrian

02:43:57

passed #127684
x86_64-linux
validate-x86_64-linux-deb9-debug

00:52:43

 
  Full Build
failed #127687
aarch64-linux allowed to fail
validate-aarch64-linux-deb9

00:57:02

passed #127688
x86_64-linux
validate-i386-linux-deb9

01:44:50

passed #127686
x86_64-darwin
validate-x86_64-darwin

01:31:05

passed #127689
x86_64-linux
validate-x86_64-linux-deb9

00:58:01

failed #127691
x86_64-linux allowed to fail
validate-x86_64-linux-deb9-integer-simple

00:43:34

passed #127690
x86_64-linux
validate-x86_64-linux-deb9-llvm

03:20:05

passed #127692
x86_64-linux
validate-x86_64-linux-deb9-unreg

02:46:32

passed #127693
x86_64-linux
validate-x86_64-linux-fedora27

01:30:57

failed #127695
x86_64-windows allowed to fail
validate-x86_64-windows

02:36:08

failed #127694
x86_64-windows allowed to fail
validate-x86_64-windows-hadrian

00:28:52

 
  Cleanup
passed #127697
x86_64-darwin
cleanup-darwin

00:00:08

passed #127696
x86_64-windows
cleanup-windows

00:00:27

 
  Hackage
manual #127698
x86_64-linux allowed to fail manual
hackage
 
Name Stage Failure
failed
release-x86_64-linux-deb9-dwarf Build
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
ghc-*.tar.xz: found 1 matching files
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=127685 responseStatus=201 Created token=Hm3-gBBW
Uploading artifacts...
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=127685 responseStatus=201 Created token=Hm3-gBBW
ERROR: Job failed: exit code 1
failed
validate-x86_64-linux-deb9-integer-simple Full Build
libraries/text/ghc.mk:4: recipe for target 'libraries/text/dist-install/build/Data/Text/Lazy/Builder/Int.o' failed
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
Running after script...
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows-hadrian Full Build
   Speed :           108623352 Bytes/sec.
Speed : 6215.478 MegaBytes/min.
Ended : Saturday, July 20, 2019 12:47:23 PM

Uploading artifacts...
Runtime platform arch=amd64 os=windows pid=5752 revision=1f513601 version=11.10.1
WARNING: ghc.tar.xz: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
validate-x86_64-windows Full Build
junit.xml: found 1 matching files                  
WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=127695 responseStatus=201 Created token=vszmGonb
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=2784 revision=1f513601 version=11.10.1
junit.xml: found 1 matching files

WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=127695 responseStatus=201 Created token=vszmGonb
ERROR: Job failed: exit status 2
failed
validate-aarch64-linux-deb9 Full Build
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1