Ticket #2942 (closed bug: worksforme)

Opened 4 years ago

Last modified 4 years ago

witten/ghc-6.10.1-powerpc-apple-darwin.tar.bz2: make install fails on case-sensitive file system

Reported by: thorkilnaur Owned by: igloo
Priority: normal Milestone: 6.10.2
Component: None Version: 6.10.1
Keywords: Cc:
Operating System: MacOS X Architecture: powerpc
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The make install of the binary distribution http://www.haskell.org/ghc/dist/6.10.1/witten/ghc-6.10.1-powerpc-apple-darwin.tar.bz2 (see http://www.haskell.org/ghc/download_ghc_6_10_1.html) for PPC Max OS X 10.5 (Leopard) fails on a case-sensitive file system with this error message:

make -C haddock install
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHC/witten_ghc-6.10.1-powerpc-apple-darwin/ghc-6.10.1/dist/utils/installPackage/install-inplace/bin/installPackage install                                        \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHC/witten_ghc-6.10.1-powerpc-apple-darwin/ghc-6.10.1/dist/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg'                      \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/lib/ghc-6.10.1/package.conf'            \
                           '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1'                       \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/bin' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/lib/ghc-6.10.1'            \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/lib/ghc-6.10.1' '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/lib/ghc-6.10.1'    \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/share/doc/ghc' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/share/doc/ghc' ''       \
                           --distpref dist-install                        \
                           --enable-shell-wrappers
Installing library in
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/lib/ghc-6.10.1/haddock-2.3.0
Installing executable(s) in
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1/bin
installPackage: dist-install/build/haddock/haddock: copyFile: does not exist (No such file or directory)
make[2]: *** [install] Error 1
make[1]: *** [install.haddock] Error 2
make: *** [install] Error 2

As a work-around, I created the following symbolic link:

thorkil-naurs-mac-mini:/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHC/witten_ghc-6.10.1-powerpc-apple-darwin/ghc-6.10.1/dist thorkilnaur$ ls -l utils/haddock/dist-install/build/haddock
lrwxr-xr-x  1 thorkilnaur  501  7 Jan 12 23:31 utils/haddock/dist-install/build/haddock -> Haddock
thorkil-naurs-mac-mini:/Volumes/tn18_HD_1/Users/thorkilnaur/tn/GHC/witten_ghc-6.10.1-powerpc-apple-darwin/ghc-6.10.1/dist thorkilnaur$

With this link, the make install succeeds.

Thanks and best regards Thorkil

Change History

Changed 4 years ago by igloo

  • owner set to igloo
  • difficulty set to Unknown
  • milestone set to 6.10.2

Thanks for the report; I'll try to look into it.

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to worksforme

The tarball contains a directory ghc-6.10.1/dist/utils/haddock/dist-install/build/Haddock/.

I can't work out how this can happen, and I've failed to reproduce it. I'm going to assume that some manual tweak caused the problem, but if anyone can reproduce it then please reopen this ticket.

Incidentally, here's how to make a case-sensitive file system on OS X:

dd if=/dev/zero bs=4096 count=1048576 of=disk.img
hdid -nomount disk.img
# prints /dev/disk1
newfs_hfs -s /dev/disk1
mkdir mnt
mount -t hfs /dev/disk1 mnt

Changed 4 years ago by thorkilnaur

Thanks a lot. Note that it is dist-install/build/haddock/haddock that is reported as missing, not dist-install/build/Haddock/haddock. And the fix is to create utils/haddock/dist-install/build/haddock -> Haddock.

I can reproduce the problem as follows:

$ tar xjf /Volumes/tn18_HD_1/Users/thorkilnaur/tn/download/GHC/www.haskell.org/ghc/dist/6.10.1/witten/ghc-6.10.1-powerpc-apple-darwin.tar.bz2 
$ cd ghc-6.10.1/dist/
$ ./configure --prefix=/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B
checking build system type... powerpc-apple-darwin9.6.0
checking host system type... powerpc-apple-darwin9.6.0
checking target system type... powerpc-apple-darwin9.6.0
Which we'll further canonicalise into: powerpc-apple-darwin
checking for path to top of build tree... /Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist
checking for perl... /usr/bin/perl
checking if your perl works in shell scripts... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ar... /usr/bin/ar
checking whether /usr/bin/ar is GNU ar... no
checking for ar arguments... clqs
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether ranlib is needed... yes
checking for ranlib... ranlib
checking for sed... /usr/bin/sed
checking version of gcc... 4.0.1
checking how to run the C preprocessor... gcc -E
checking for extra options to pass gcc when compiling via C...  -fwrapv
configure: creating ./config.status
config.status: creating Makefile-vars
config.status: creating extra-gcc-opts
****************************************************
Configuration done, ready to 'make install'
(see README and INSTALL files for more info.)
****************************************************
$ make install
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/mkdirhier/mkdirhier /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin
mkdir /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B
mkdir /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin
make -C includes  install      DOING_BIN_DIST=YES
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/mkdirhier/mkdirhier /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/include
mkdir /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib
mkdir /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1
mkdir /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/include
for i in Block.h Bytecodes.h ClosureMacros.h ClosureTypes.h Closures.h Cmm.h Constants.h DNInvoke.h DerivedConstants.h Dotnet.h FileLock.h GHCConstants.h GranSim.h Hooks.h HsFFI.h InfoTables.h Linker.h Liveness.h MachDeps.h MachRegs.h OSThreads.h Parallel.h Regs.h Rts.h RtsAPI.h RtsConfig.h RtsExternal.h RtsFlags.h RtsMessages.h RtsTypeable.h RtsTypes.h SMP.h SMPClosureOps.h STM.h SchedAPI.h Signals.h SpinLock.h Stable.h Stg.h StgDLL.h StgFun.h StgLdvProf.h StgMiscClosures.h StgProf.h StgTypes.h Storage.h TSO.h TailCalls.h TickyCounters.h config.h ghcconfig.h ieee-flpt.h ghcautoconf.h ghcplatform.h; do \
                /usr/bin/install -c -m 644    $i /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/include; \
        done
make -C utils     install      DOING_BIN_DIST=YES
------------------------------------------------------------------------
== Recursively making `install' in mkdirhier hp2ps parallel unlit ...
PWD = /Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils
------------------------------------------------------------------------
------------------------------------------------------------------------
== make install ;
 in /Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/mkdirhier
------------------------------------------------------------------------
make[2]: Nothing to be done for `install'.
Finished making install in mkdirhier: 0
------------------------------------------------------------------------
== make install ;
 in /Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/hp2ps
------------------------------------------------------------------------
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/mkdirhier/mkdirhier /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin
for i in  hp2ps; do \
                    /usr/bin/install -c -m 755   -m 755   $i /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin ;  \
                    if test "" = "1"; then \
                      sh /mk/fix_install_names.sh /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1 /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin/$i ; \
                    fi ; \
        done
Finished making install in hp2ps: 0
------------------------------------------------------------------------
== make install ;
 in /Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/parallel
------------------------------------------------------------------------
make[2]: Nothing to be done for `install'.
Finished making install in parallel: 0
------------------------------------------------------------------------
== make install ;
 in /Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/unlit
------------------------------------------------------------------------
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/mkdirhier/mkdirhier /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1
for i in  unlit; do \
                /usr/bin/install -c -m 755   -m 755   $i /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1; \
                if test "" = "1"; then \
                        sh /mk/fix_install_names.sh /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1 /Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/`basename $i` ; \
                fi ; \
        done
Finished making install in unlit: 0
------------------------------------------------------------------------
== Finished making `install' in mkdirhier hp2ps parallel unlit ...
PWD = /Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils
------------------------------------------------------------------------
make -C ghc-pkg install
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/installPackage/install-inplace/bin/installPackage install                                        \
                           '/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg'                      \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/package.conf'            \
                           '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B'                       \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'            \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1' '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'    \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' ''       \
                           --distpref dist-install                        \
                           --enable-shell-wrappers
Installing executable(s) in
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin
make -C hasktags install
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/installPackage/install-inplace/bin/installPackage install                                        \
                           '/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg'                      \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/package.conf'            \
                           '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B'                       \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'            \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1' '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'    \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' ''       \
                           --distpref dist-install                        \
                           
Installing executable(s) in
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin
make -C runghc install
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/installPackage/install-inplace/bin/installPackage install                                        \
                           '/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg'                      \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/package.conf'            \
                           '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B'                       \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'            \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1' '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'    \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' ''       \
                           --distpref dist-install                        \
                           --enable-shell-wrappers
Installing executable(s) in
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin
make -C hpc install
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/installPackage/install-inplace/bin/installPackage install                                        \
                           '/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg'                      \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/package.conf'            \
                           '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B'                       \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'            \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1' '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'    \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' ''       \
                           --distpref dist-install                        \
                           
Installing executable(s) in
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin
make -C haddock install
/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/installPackage/install-inplace/bin/installPackage install                                        \
                           '/Users/thorkilnaur/tn/test/GHC/trac/2942/work/unpack/ghc-6.10.1/dist/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg'                      \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/package.conf'            \
                           '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B'                       \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'            \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1' '' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1'    \
                           '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' '/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/share/doc/ghc' ''       \
                           --distpref dist-install                        \
                           --enable-shell-wrappers
Installing library in
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/lib/ghc-6.10.1/haddock-2.3.0
Installing executable(s) in
/Volumes/tn18_HD_1/Users/thorkilnaur/tn/install/ghc-6.10.1_B/bin
installPackage: dist-install/build/haddock/haddock: copyFile: does not exist (No such file or directory)
make[2]: *** [install] Error 1
make[1]: *** [install.haddock] Error 2
make: *** [install] Error 2
$ 

I have left the ticket closed. As mentioned, I have a work-around for this problem and I have no need for further activities related to this ticket.

Thanks again and best regards Thorkil

Changed 4 years ago by igloo

Just to clarify: I can reproduce the problem with this tarball, but I can't work out how such a tarball can be created.

Note: See TracTickets for help on using tickets.