Changes between Version 8 and Version 9 of Building/Troubleshooting


Ignore:
Timestamp:
Mar 16, 2009 10:36:25 AM (5 years ago)
Author:
simonmar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Troubleshooting

    v8 v9  
    220220 
    221221We added a workaround for install-detection in GHC 6.8.1 (see #1271), so if you're using that version or later you shouldn't encounter this issue. 
     222 
     223=== Cygwin: failure to use native path to `gcc` when configuring === 
     224 
     225It's ''very important'' that you specify a  
     226native Windows path for {{{gcc}}}, not a Cygwin path, because GHC (which 
     227uses this path to invoke {{{gcc}}}) is a Windows program and won't 
     228understand a Cygwin path.  For example, you want to say something like {{{--with-gcc=c:/mingw/bin/gcc.exe}}} and ''not'' {{{--with-gcc=/cygdrive/c/mingw/bin/gcc.exe}}} or {{{--with-gcc=/mingw/bin/gcc.exe}}}.  If you get this wrong, the failure might come with no error message whatsoever.  GHC simply fails silently when first invoked,  
     229typically leaving you with this: 
     230 
     231{{{ 
     232make[4]: Leaving directory `/cygdrive/e/ghc-stage1/ghc/rts/gmp' 
     233../../ghc/compiler/ghc-inplace -optc-mno-cygwin -optc-O  
     234-optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes  
     235-optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return  
     236-optc-Wbad-function-cast -optc-Wcast-align -optc-I../includes  
     237-optc-I. -optc-Iparallel -optc-DCOMPILING_RTS  
     238-optc-fomit-frame-pointer -O2 -static  
     239-package-name rts -O -dcore-lint -c Adjustor.c -o Adjustor.o 
     240make[2]: *** [Adjustor.o] Error 1 
     241make[1]: *** [all] Error 1 
     242make[1]: Leaving directory `/cygdrive/e/ghc-stage1/ghc' 
     243make: *** [all] Error 1 
     244}}}