[Haskell-cafe] trying to install ghc-6.8.2 both binaries and sources
michael at schmong.org
michael at schmong.org
Thu Apr 3 14:40:25 EDT 2008
I am operating under the assumption that Idid have a broken gcc.
I installed a new one
This is what happened when I tried compiling ghc-6.8.2
make all
/usr/bin/ghc -H16m -O -w -I. -Iinclude -Rghc-timing -ignore-package
Cabal -ignore-package filepath -I../libraries -fglasgow-exts -no-recomp
-c System/FilePath/Posix.hs -o System/FilePath/Posix.o -ohi
System/FilePath/Posix.hi
cc1: error: unrecognized option `-fno-unit-at-a-time'
<<ghc: 129595404 bytes, 17 GCs, 2640525/5069484 avg/max bytes residency
(3 samples), 20M in use, 0.00 INIT (0.00 elapsed), 0.59 MUT (0.80
elapsed), 0.09 GC (0.14 elapsed) :ghc>>
make[2]: *** [System/FilePath/Posix.o] Error 1
make[1]: *** [boot] Error 2
make: *** [stage1] Error 1
this is exactly what happened prior to installing a new gcc. Here's
what config.log says
$ ./configure --prefix=/home/michael
## --------- ##
## Platform. ##
## --------- ##
hostname = schmong.org
uname -m = i686
uname -r = 2.6.16.33-vpsX
uname -s = Linux
uname -v = #2 SMP Tue Jan 23 22:53:20 EST 2007
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/games
PATH: /usr/lib
## ----------- ##
## Core tests. ##
## ----------- ##
running configure, to aid debugging if configure makes a mistake.
It was created by The Glorious Glasgow Haskell Compilation System
configure 6.8.
2, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/home/michael
## --------- ##
## Platform. ##
## --------- ##
hostname = schmong.org
uname -m = i686
uname -r = 2.6.16.33-vpsX
uname -s = Linux
uname -v = #2 SMP Tue Jan 23 22:53:20 EST 2007
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/games
PATH: /usr/lib
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1502: checking build system type
configure:1520: result: i686-pc-linux-gnu
configure:1528: checking host system type
configure:1542: result: i686-pc-linux-gnu
configure:1550: checking target system type
configure:1564: result: i686-pc-linux-gnu
configure:2121: checking for ghc
configure:2139: found /usr/bin/ghc
configure:2151: result: /usr/bin/ghc
configure:2175: checking version of ghc
The Glorious Glasgow Haskell Compilation System, version 6.6
configure:2204: result: 6.6
configure:2217: checking for ghc-pkg matching /usr/bin/ghc
configure:2229: result: /usr/bin/ghc-pkg
configure:2275: checking whether ghc has readline package
configure:2286: result: yes
configure:2296: checking for nhc
configure:2329: result: no
configure:2296: checking for nhc98
configure:2329: result: no
configure:2338: checking for hbc
configure:2371: result: no
configure:2508: checking for ld
configure:2526: found /usr/bin/ld
configure:2538: result: /usr/bin/ld
configure:2642: checking for path to top of build tree
configure:2667: result: /home/michael/src/ghcsrc/ghc-6.8.2
configure:2728: checking whether #! works in shell scripts
configure:2745: result: yes
configure:2796: checking for perl
configure:2814: found /usr/bin/perl
configure:2826: result: /usr/bin/perl
configure:2852: checking if your perl works in shell scripts
configure:2870: result: yes
configure:2875: checking for python
configure:2893: found /usr/bin/python
configure:2905: result: /usr/bin/python
configure:2959: checking for gcc
configure:2985: result: /home/michael/bin/gcc
configure:3229: checking for C compiler version
configure:3232: /home/michael/bin/gcc --version </dev/null >&5
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
configure:3235: $? = 0
configure:3237: /home/michael/bin/gcc -v </dev/null >&5
Reading specs from
/home/michael/lib/gcc/i686-pc-linux-gnu/3.4.6/specs
I have also tried to install the binaries, this may be more promising.
./configure --prefix=$HOME
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Which we'll further canonicalise into: i386-unknown-linux
checking for path to top of build tree... pwd: timer_create: Operation
not supported
configure: error: cannot determine current directory
this is exactly what happened when I tried to install the binaries with
the old gcc.
Here's the config.log
$ ./configure --prefix=/home/michael
## --------- ##
## Platform. ##
## --------- ##
hostname = schmong.org
uname -m = i686
uname -r = 2.6.16.33-vpsX
uname -s = Linux
uname -v = #2 SMP Tue Jan 23 22:53:20 EST 2007
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/games
PATH: /usr/lib
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1692: checking build system type
configure:1710: result: i686-pc-linux-gnu
configure:1732: checking host system type
configure:1747: result: i686-pc-linux-gnu
configure:1769: checking target system type
configure:1784: result: i686-pc-linux-gnu
configure:1907: checking for path to top of build tree
configure:1923: error: cannot determine current directory
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/home/michael/bin/gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_target=i686-pc-linux-gnu
## ----------------- ##
## Output variables. ##
## ----------------- ##
ArCmd=''
CC='/home/michael/bin/gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
GccExtraViaCOpts=''
GccVersion=''
HaveGcc=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PerlCmd=''
RANLIB=''
SHELL='/bin/sh'
SedCmd=''
TargetPlatform='i386-unknown-linux'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
exeext=''
fp_prog_ar_raw=''
hardtop=''
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/michael'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
configure: exit 1
whew. Okay can anyone give me ideas on how to proceed?
I have also verified I have the correct libreadline.so.5,
libncurses.so.5.
michael litchard
More information about the Haskell-Cafe
mailing list