Problem installing GHC 6.10.2 on Debian Etch

Daniel van den Eijkel dvde at gmx.net
Thu Apr 16 08:05:24 EDT 2009


Hi

I am trying to install GHC-6.10.2 on Debian Etch and I get the following 
error:

    /usr/bin/strip: /usr/local/lib/ghc-6.10.2/ghc-pkg: File format not 
recognized

Does anybody know this issue? I would be happy to get some help.
daniel

P.S.:
I downloaded the file ghc-6.10.2-x86_64-unknown-linux-libedit2.tar.bz2 
and run the following commands:

    CONFIGURE

$ ./configure --prefix=/usr/local
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Which we'll further canonicalise into: x86_64-unknown-linux
checking for path to top of build tree... /home/daniel/uploaded/ghc-6.10.2
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... yes
checking for ar arguments... q
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... no
checking for sed... /bin/sed
checking version of gcc... 4.1.2
checking how to run the C preprocessor... gcc -E
checking for extra options to pass gcc when compiling via C...  -fwrapv 
-mno-omit-leaf-frame-pointer -fno-unit-at-a-time
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:
  
$ make install
/home/daniel/uploaded/ghc-6.10.2/utils/mkdirhier/mkdirhier /usr/local/bin
/home/daniel/uploaded/ghc-6.10.2/utils/mkdirhier/mkdirhier 
/usr/local/lib/ghc-6.10.2
echo "[]" > /usr/local/lib/ghc-6.10.2/package.conf
make -C includes  install      DOING_BIN_DIST=YES
make[1]: Entering directory `/home/daniel/uploaded/ghc-6.10.2/includes'
/home/daniel/uploaded/ghc-6.10.2/utils/mkdirhier/mkdirhier 
/usr/local/lib/ghc-6.10.2/include
for i in Block.h Bytecodes.h ClosureMacros.h Closures.h ClosureTypes.h 
Cmm.h config.h Constants.h DerivedConstants.h DNInvoke.h Dotnet.h 
FileLock.h ghcconfig.h GHCConstants.h GranSim.h Hooks.h HsFFI.h 
ieee-flpt.h InfoTables.h Linker.h Liveness.h MachDeps.h MachRegs.h 
OSThreads.h Parallel.h Regs.h RtsAPI.h RtsConfig.h RtsExternal.h 
RtsFlags.h Rts.h RtsMessages.h RtsTypeable.h RtsTypes.h SchedAPI.h 
Signals.h SMPClosureOps.h SMP.h SpinLock.h Stable.h StgDLL.h StgFun.h 
Stg.h StgLdvProf.h StgMiscClosures.h StgProf.h StgTypes.h STM.h 
Storage.h TailCalls.h TickyCounters.h TSO.h ghcautoconf.h ghcplatform.h; 
do \
                /usr/bin/install -c -m 644    $i 
/usr/local/lib/ghc-6.10.2/include; \
        done
make[1]: Leaving directory `/home/daniel/uploaded/ghc-6.10.2/includes'
make -C utils     install      DOING_BIN_DIST=YES
make[1]: Entering directory `/home/daniel/uploaded/ghc-6.10.2/utils'
------------------------------------------------------------------------
== Recursively making `install' in mkdirhier hp2ps parallel unlit ...
PWD = /home/daniel/uploaded/ghc-6.10.2/utils
------------------------------------------------------------------------
------------------------------------------------------------------------
== make install -w;
 in /home/daniel/uploaded/ghc-6.10.2/utils/mkdirhier
------------------------------------------------------------------------
make[2]: Nothing to be done for `install'.
Finished making install in mkdirhier: 0
------------------------------------------------------------------------
== make install -w;
 in /home/daniel/uploaded/ghc-6.10.2/utils/hp2ps
------------------------------------------------------------------------
/home/daniel/uploaded/ghc-6.10.2/utils/mkdirhier/mkdirhier /usr/local/bin
for i in   hp2ps  ; do \
                    /usr/bin/install -c -m 755   -m 755   $i 
/usr/local/bin ;  \
                    if test "" = "1"; then \
                      sh /mk/fix_install_names.sh 
/usr/local/lib/ghc-6.10.2 /usr/local/bin/$i ; \
                    fi ; \
        done
Finished making install in hp2ps: 0
------------------------------------------------------------------------
== make install -w;
 in /home/daniel/uploaded/ghc-6.10.2/utils/parallel
------------------------------------------------------------------------
make[2]: Nothing to be done for `install'.
Finished making install in parallel: 0
------------------------------------------------------------------------
== make install -w;
 in /home/daniel/uploaded/ghc-6.10.2/utils/unlit
------------------------------------------------------------------------
/home/daniel/uploaded/ghc-6.10.2/utils/mkdirhier/mkdirhier 
/usr/local/lib/ghc-6.10.2
for i in  unlit; do \
                /usr/bin/install -c -m 755   -m 755   $i 
/usr/local/lib/ghc-6.10.2; \
                if test "" = "1"; then \
                        sh /mk/fix_install_names.sh 
/usr/local/lib/ghc-6.10.2 /usr/local/lib/ghc-6.10.2/`basename $i` ; \
                fi ; \
        done
Finished making install in unlit: 0
------------------------------------------------------------------------
== Finished making `install' in mkdirhier hp2ps parallel unlit ...
PWD = /home/daniel/uploaded/ghc-6.10.2/utils
------------------------------------------------------------------------
make -C ghc-pkg install
make[2]: Entering directory `/home/daniel/uploaded/ghc-6.10.2/utils/ghc-pkg'
/home/daniel/uploaded/ghc-6.10.2/utils/installPackage/install-inplace/bin/installPackage 
install                                        \
                           
'/home/daniel/uploaded/ghc-6.10.2/utils/ghc-pkg/dist-install/build/ghc-pkg/ghc-pkg'                      
\
                           
'/usr/local/lib/ghc-6.10.2/package.conf'            \
                           '' '/usr/local'                       \
                           '/usr/local' '/usr/local/bin' 
'/usr/local/lib/ghc-6.10.2'            \
                           '/usr/local/lib/ghc-6.10.2' '' 
'/usr/local/lib/ghc-6.10.2'    \
                           '/usr/local/share/doc/ghc' 
'/usr/local/share/doc/ghc' ''       \
                           --distpref dist-install                        \
                           --enable-shell-wrappers
Installing executable(s) in /usr/local/bin
/usr/bin/strip: /usr/local/lib/ghc-6.10.2/ghc-pkg: File format not 
recognized
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/daniel/uploaded/ghc-6.10.2/utils/ghc-pkg'
make[1]: *** [install.ghc-pkg] Error 2
make[1]: Leaving directory `/home/daniel/uploaded/ghc-6.10.2/utils'
make: *** [install] Error 2


    SOME CHECKS

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.6

$ ghc-pkg --version
GHC package manager version 6.6

$ uname -msr
Linux 2.6.18-6-amd64 x86_64






More information about the Glasgow-haskell-users mailing list