Ticket #800 in GHC 6.6

Cyril Schmidt cschmidt at deds.nl
Fri Nov 3 08:55:37 EST 2006


It looks like bug #800
http://hackage.haskell.org/trac/ghc/ticket/800
has made it to GHC 6.6. Although Trac reports that it
was solved about a month ago in version 6.5, I still
see that GHC 6.6 on Windows fails to compile C++ files.

A little test and the output follow.

Is the bug, by any chance, fixed in any of the nightly
builds of the 6.6 branch?

Cheers,

Cyril
---
Test file: bug.cpp
---
class X {
    int i;
};

---
Session output:
---
bug#800>gcc --version
gcc (GCC) 3.4.5 (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.


bug#800>ghc -c bug.cpp -v
Glasgow Haskell Compiler, Version 6.6, for Haskell 98, compiled by GHC
version 6.6
Using package config file: c:\ghc\ghc-6.6\package.conf
wired-in package base mapped to base-2.0
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-2.0
Hsc static flags: -static
Created temporary directory: C:/DOCUME~1/nlscdc/LOCALS~1/Temp/ghc1508_0
*** C Compiler:
c:\ghc\ghc-6.6\gcc -Bc:\ghc\ghc-6.6\gcc-lib/ -x c bug.cpp -o
C:\DOCUME~1\nlscdc\LOCALS~1\Temp\ghc150
8_0\ghc1508_0.s -DDONT_WANT_WIN32_DLL_SUPPORT -v -S -Wimplicit -O
-D__GLASGOW_HASKELL__=606 -I c:/gh
c/ghc-6.6\include -I c:/ghc/ghc-6.6\include\mingw
Reading specs from c:/ghc/ghc-6.6/gcc-lib/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld
--with-gnu-as --host=mingw32 --targ
et=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-a
wt --without-x --enable-java-gc=boehm --disable-libgcj-debug
--enable-interpreter --enable-hash-sync
hronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
 c:/ghc/ghc-6.6/gcc-lib/cc1.exe -quiet -v -I c:/ghc/ghc-6.6\include -I
c:/ghc/ghc-6.6\include\mingw
-iprefix c:\ghc\ghc-6.6\../lib/gcc/mingw32/3.4.5/ -isystem
c:/ghc/ghc-6.6/gcc-lib/include -DDONT_WAN
T_WIN32_DLL_SUPPORT -D__GLASGOW_HASKELL__=606 bug.cpp -quiet -dumpbase
bug.cpp -auxbase-strip C:\DOC
UME~1\nlscdc\LOCALS~1\Temp\ghc1508_0\ghc1508_0.s -O -Wimplicit -version -o
C:\DOCUME~1\nlscdc\LOCALS
~1\Temp\ghc1508_0\ghc1508_0.s
ignoring nonexistent directory
"c:/ghc/ghc-6.6/../lib/gcc/mingw32/3.4.5/../../../../include"
ignoring nonexistent directory
"c:/ghc/ghc-6.6/../lib/gcc/mingw32/3.4.5/include"
ignoring nonexistent directory
"c:/ghc/ghc-6.6/../lib/gcc/mingw32/3.4.5/../../../../mingw32/include"

ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "/mingw/lib/gcc/mingw32/3.4.5/include"
ignoring nonexistent directory "/mingw/mingw32/include"
ignoring nonexistent directory "/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/ghc/ghc-6.6/include
 c:/ghc/ghc-6.6/include/mingw
 c:/ghc/ghc-6.6/gcc-lib/include
End of search list.
GNU C version 3.4.5 (mingw special) (mingw32)
        compiled by GNU C version 3.4.5 (mingw special).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=131008

bug.cpp:1:0:  error: syntax error before "X"

bug.cpp:1:0:  error: syntax error before '{' token
*** Deleting temp files:
Deleting: C:/DOCUME~1/nlscdc/LOCALS~1/Temp/ghc1508_0/ghc1508_0.s
Warning: deleting non-existent
C:/DOCUME~1/nlscdc/LOCALS~1/Temp/ghc1508_0/ghc1508_0.s
*** Deleting temp dirs:
Deleting: C:/DOCUME~1/nlscdc/LOCALS~1/Temp/ghc1508_0





More information about the Glasgow-haskell-bugs mailing list