Hadrian: remove superfluous dependencies in Rules.Compile

Each package's object files were 'need'ing the library files of all transitive
dependencies of the current package, whichi is pointless since the said
libraries are not needed until we link those object files together.

This fixes #16759.
17 jobs for master in 441 minutes and 54 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Lint
passed #102817
lint
lint-submods-branch

00:00:16

 
  Build
passed #102819
x86_64-linux
hadrian-ghc-in-ghci

00:27:43

failed #102821
x86_64-linux allowed to fail
release-x86_64-linux-deb9-dwarf

01:52:48

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

02:30:46

passed #102818
x86_64-linux
validate-x86_64-linux-deb9-hadrian

03:53:45

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

03:03:14

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

01:02:03

passed #102822
x86_64-darwin
validate-x86_64-darwin

00:58:24

passed #102825
x86_64-linux
validate-x86_64-linux-deb9-integer-simple

01:03:33

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

02:45:05

passed #102827
x86_64-linux
validate-x86_64-linux-fedora27

00:59:40

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

02:08:45

passed #102828
x86_64-windows
validate-x86_64-windows-hadrian

01:19:29

 
  Cleanup
passed #102830
x86_64-darwin
cleanup-darwin

00:00:06

 
  Packaging
failed #102831
x86_64-linux allowed to fail
doc-tarball

00:03:47

 
  Hackage
manual #102832
x86_64-linux allowed to fail manual
hackage
 
  Deploy
failed #102833
x86_64-linux allowed to fail
pages

00:00:33

 
Name Stage Failure
failed
validate-aarch64-linux-deb9 Full 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=102823 responseStatus=201 Created token=BLSrhsp_
Uploading artifacts...
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=102823 responseStatus=201 Created token=BLSrhsp_
ERROR: Job failed: exit code 1
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=102821 responseStatus=201 Created token=bx1ZQ2sW
Uploading artifacts...
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=102821 responseStatus=201 Created token=bx1ZQ2sW
ERROR: Job failed: exit code 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=102829 responseStatus=201 Created token=R1ByUnA3
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=5872 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=102829 responseStatus=201 Created token=R1ByUnA3
ERROR: Job failed: exit status 2
failed
doc-tarball Packaging
+ for i in haddock libraries users_guide
+ tar -Jcf ../../../../../libraries.html.tar.xz libraries
+ for i in haddock libraries users_guide
+ tar -Jcf ../../../../../users_guide.html.tar.xz users_guide
+ mv index.html ../../../../..
+ cd ..
+ mv '*.pdf' ../../../..
mv: cannot stat '*.pdf': No such file or directory
ERROR: Job failed: exit code 1
failed
pages Deploy
$ git checkout .gitmodules
$ git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true
From https://gitlab.haskell.org/ghc/ghc-performance-notes
c3b0155f99..2b9323a01b refs/notes/perf -> refs/notes/perf
$ mkdir -p public/doc
$ tar -xf haddock.html.tar.xz -C public/doc
tar: haddock.html.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ERROR: Job failed: exit code 1