./validate fails locally on new checkout
I tried validating a patch of mine as well as head recently and they both fail to validate.
This seems to be the relevant part of the log:
configure: creating ./config.status
config.status: creating mk/config.mk
config.status: creating mk/install.mk
****************************************************
Configuration done, ready to 'make install'
(see README and INSTALL files for more info.)
****************************************************
Copying binaries to /home/andi/ghc_head/bindisttest/install dir/lib/ghc-9.3.20211010/bin
/usr/bin/install -c -m 755 -d "/home/andi/ghc_head/bindisttest/install dir/lib/ghc-9.3.20211010/bin"
for i in ./bin/hpc-ghc-9.3.20211010 ./bin/ghc-iserv ./bin/hp2ps-ghc-9.3.20211010 ./bin/runhaskell ./bin/runghc ./bin/ghc-iserv-dyn-ghc-9.3.20211010 ./bin/ghc-pkg ./bin/runghc-9.3.20211010 ./bin/hp2ps ./bin/hpc ./bin/runhaskell-9.3.20211010 ./bin/ghc-pkg-9.3.20211010 ./bin/ghc-iserv-prof-ghc-9.3.20211010 ./bin/ghc-iserv-dyn ./bin/hsc2hs-ghc-9.3.20211010 ./bin/haddock-ghc-9.3.20211010 ./bin/ghc ./bin/unlit-ghc-9.3.20211010 ./bin/hsc2hs ./bin/ghc-9.3.20211010 ./bin/ghc-iserv-prof ./bin/ghc-iserv-ghc-9.3.20211010 ./bin/unlit ./bin/haddock; do \
cp -R $i "/home/andi/ghc_head/bindisttest/install dir/lib/ghc-9.3.20211010/bin"; \
done
Installing wrapper scripts
/usr/bin/install -c -m 755 -d "/home/andi/ghc_head/bindisttest/install dir/bin"
# ghc = package name
# /home/andi/ghc_head/bindisttest/install dir/bin/ghc = wrapper path
# /home/andi/ghc_head/bindisttest/install dir/bin = bindir
# /home/andi/ghc_head/bindisttest/install dir/lib/ghc-9.3.20211010/bin = ghcbindir
# /home/andi/ghc_head/bindisttest/install dir/lib/ghc-9.3.20211010/bin/ghc = Executable binary path
# /home/andi/ghc_head/bindisttest/install dir/lib/ghc-9.3.20211010/lib = Library Directory
# /home/andi/ghc_head/bindisttest/install dir/share/doc/ghc-9.3.20211010 = Docs Directory
# /home/andi/ghc_head/bindisttest/install dir/include = Includes Directory
# We are installing wrappers to programs by searching corresponding
# wrappers. If wrapper is not found, we are attaching the common wrapper
# to it. This implementation is a bit hacky and depends on consistency
# of program names. For hadrian build this will work as programs have a
# consistent naming procedure.
if [ -L wrappers/ghc ]; then echo "ghc is a symlink"; fi
ghc is a symlink
cp: target 'dir/bin/ghc' is not a directory
make: *** [Makefile:197: install_wrappers] Error 1