[Haskell-cafe] Compilling GHC on Vista

Monique Monteiro monique.louise at gmail.com
Mon Apr 23 07:17:24 EDT 2007


Tom,

On 4/23/07, Tom Schrijvers <Tom.Schrijvers at cs.kuleuven.be> wrote:
>
> What does the config.log say?


>
> Are you able to run the MingW's gcc compiler yourself on a simple C
> program?
>
> I had a similar error, cause by the fact that gcc.exe cannot find cc1.exe,
> which is in MingW/libexec/gcc/mingw32/3.4.2/. I had to add it to my PATH.

I did the same, but it still doesn't work...

Here is config.log:

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/c/MinGW/bin
PATH: /cygdrive/c/MinGW/libexec/gcc/mingw32/3.4.2
PATH: /cygdrive/c/ghc/ghc-6.2.2/bin
PATH: /usr/local/bin
PATH: /cygdrive/c/GreenCard
PATH: /usr/bin
PATH: /usr/bin
PATH: /cygdrive/c/Program Files/MiKTeX 2.5/miktex/bin
PATH: /cygdrive/c/Windows/system32
PATH: /cygdrive/c/Windows
PATH: /cygdrive/c/Windows/System32/Wbem
PATH: /cygdrive/c/Program Files/Common Files/GTK/2.0/bin
PATH: /cygdrive/c/Program Files/QuickTime/QTSystem/
PATH: /cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn/
PATH: /cygdrive/c/Program Files/Mondrian/bin
configure:1905: checking build system type
configure:1923: result: i686-pc-cygwin
configure:1945: checking host system type
configure:1960: result: i386-unknown-mingw32
configure:1982: checking target system type
configure:1997: result: i386-unknown-mingw32
configure:2415: checking for path to top of build tree
configure:2441: result: c:/ghc-6.2.2-src/ghc-6.2.2
configure:2455: checking for ghc
configure:2473: found /cygdrive/c/ghc/ghc-6.2.2/bin/ghc
configure:2485: result: /cygdrive/c/ghc/ghc-6.2.2/bin/ghc
configure:2513: checking version of ghc
The Glorious Glasgow Haskell Compilation System, version 6.2.2
configure:2542: result: 6.2.2
configure:2551: checking for nhc
configure:2584: result: no
configure:2551: checking for nhc98
configure:2584: result: no
configure:2594: checking for hbc
configure:2627: result: no
configure:2756: checking whether #! works in shell scripts
configure:2773: result: yes
configure:2782: checking for perl
configure:2798: found /bin/perl
configure:2809: result: /bin/perl
configure:2893: checking if your perl works in shell scripts
configure:2911: result: yes
configure:2916: checking for python
configure:2949: result: no
configure:2963: checking for i386-unknown-mingw32-gcc
configure:2990: result: c:/MinGW/bin/gcc
configure:3268: checking for C compiler version
configure:3275: c:/MinGW/bin/gcc --version >&5
gcc.exe (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 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:3278: $? = 0
configure:3285: c:/MinGW/bin/gcc -v >&5
Reading specs from c:/MinGW/lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld
--with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
--enable-threads --disable-nls
--enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry
--disable-shared --enable-sjlj-exceptions --enable-libgcj
--disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)
configure:3288: $? = 0
configure:3295: c:/MinGW/bin/gcc -V >&5
gcc.exe: `-V' option must have argument
configure:3298: $? = 1
configure:3321: checking for C compiler default output file name
configure:3348: c:/MinGW/bin/gcc    conftest.c  >&5
ld: /mingw/lib/crt2.o: No such file: No such file or directory
configure:3351: $? = 1
configure:3389: result:
configure: failed program was:
configure:3396: error: C compiler cannot create executables
See `config.log' for more details.


ac_cv_build=i686-pc-cygwin
ac_cv_env_CC_set=
ac_cv_env_CC_value=
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_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i386-unknown-mingw32
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i386-unknown-mingw32
ac_cv_path_GHC=/cygdrive/c/ghc/ghc-6.2.2/bin/ghc
ac_cv_prog_CC=c:/MinGW/bin/gcc
ac_cv_prog_PerlCmd=/bin/perl
ac_cv_sys_interpreter=yes
ac_cv_target=i386-unknown-mingw32
fptools_cv_shebang_perl=yes


ALLOCA=''
AlexCmd=''
AlexVersion=''
ArCmd=''
ArSupportsInput=''
BootingFromHc='NO'
BootingFromUnregisterisedHc='NO'
BuildArch_CPP='i386'
BuildOS_CPP='mingw32'
BuildPlatform='i386-unknown-mingw32'
BuildPlatform_CPP='i386_unknown_mingw32'
BuildVendor_CPP='unknown'
CC='c:/MinGW/bin/gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
Catalog=''
ContextDiffCmd=''
DEFS=''
DotnetSupport='NO'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FindCmd=''
GHC='/cygdrive/c/ghc/ghc-6.2.2/bin/ghc'
GLUT_LIBS=''
GL_CFLAGS=''
GL_LIBS=''
GREP=''
GTK_CONFIG=''
GhcHasReadline=''
GhcLibsWithGLUT='NO'
GhcLibsWithObjectIO='NO'
GhcLibsWithOpenGL='NO'
GhcLibsWithUnix='NO'
GhcMajVersion='6'
GhcMinVersion='2'
GhcPatchLevel='2'
GhcPkgCmd=''
GhcVersion='6.2.2'
GreenCardCmd=''
GreenCardVersion=''
HBC=''
HaddockCmd=''
HappyCmd=''
HappyVersion=''
HaveFrameworkHaskellSupport=''
HaveGcc=''
HaveLibDL=''
HaveLibGmp=''
HaveLibMingwEx=''
HavePosixRegex=''
HaveReadlineHeaders=''
HaveRtldGlobal=''
HaveRtldLocal=''
HaveRtldNext=''
HaveRtldNow=''
HostArch_CPP='i386'
HostOS_CPP='mingw32'
HostOS_Full='mingw32'
HostPlatform='i386-unknown-mingw32'
HostPlatform_CPP='i386_unknown_mingw32'
HostVendor_CPP='unknown'
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
JadeCmd=''
LDFLAGS=''
LIBM=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
LdCmd=''
LdCmdRaw=''
LdXFlag=''
LeadingUnderscore=''
LibGmp=''
LibsReadline=''
NHC=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PerlCmd='/bin/perl'
PythonCmd=''
RANLIB=''
SHELL='/bin/sh'
SRC_CC_OPTS=''
SedCmd=''
TarCmd=''
TargetArch_CPP='i386'
TargetOS_CPP='mingw32'
TargetPlatform='i386-unknown-mingw32'
TargetPlatform_CPP='i386_unknown_mingw32'
TargetVendor_CPP='unknown'
ThreadedRts='NO'
TimeCmd=''
WhatGccIsCalled='c:/MinGW/bin/gcc'
WithGhc='/cygdrive/c/ghc/ghc-6.2.2/bin/ghc'
WithHc='/cygdrive/c/ghc/ghc-6.2.2/bin/ghc'
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='i686-pc-cygwin'
build_alias=''
build_cpu='i686'
build_os='cygwin'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
exeext='.exe'
fp_prog_ar_raw=''
fp_prog_find=''
hardtop='c:/ghc-6.2.2-src/ghc-6.2.2'
hardtop_plat='c:\\ghc-6.2.2-src\\ghc-6.2.2'
host='i386-unknown-mingw32'
host_alias='i386-unknown-mingw32'
host_cpu='i386'
host_os='mingw32'
host_vendor='unknown'
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='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' ghc libraries'
sysconfdir='${prefix}/etc'
target='i386-unknown-mingw32'
target_alias=''
target_cpu='i386'
target_os='mingw32'
target_vendor='unknown'
unix_SRC_HSC2HS_OPTS=''

configure: exit 77

Cheers,

Monique

>
> Cheers,
>
> Tom
>
> --
> Tom Schrijvers
>
> Department of Computer Science
> K.U. Leuven
> Celestijnenlaan 200A
> B-3001 Heverlee
> Belgium
>
> tel: +32 16 327544
> e-mail: tom.schrijvers at cs.kuleuven.be
>


-- 
__________________________________________________________
Monique Monteiro, MSc
MCP .NET Framework 2.0 / SCJP / IBM OOAD
Project Manager
Recife Microsoft Innovation Center
+55 81 34198137
http://www.cin.ufpe.br/~mlbm
http://thespoke.net/blogs/moniquelouise/default.aspx
monique at qualiti.com.br
MSN: monique_louise at msn.com


More information about the Haskell-Cafe mailing list