Opened 8 years ago

Closed 8 years ago

#899 closed bug (fixed)

GHC 6.5 gives wrong searchpath to gcc on mingw

Reported by: josef Owned by: simonmar
Priority: high Milestone: 6.6
Component: Compiler Version: 6.5
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This happens with the latest unstable ghc for windows, binary package. When I compile a program using at least -O I get a huge list of error messages from gcc. The list starts with the following:
Stg.h: No such file or directory
HsBase?.h: No such file or directory

Then it goes on complaining about undefined stuff which I assume is a consequence of the above errors.
Stg.h and HsBase?.h are located in c:/ghc/ghc-6.5.20060914/lib/i386-unknown-mingw32/include/ on my machine. But this path is not passed to gcc (obviously). Here's how gcc is invoked:

c:/ghc/ghc-6.5.20060914/gcc-lib/cc1.exe -quiet -v -I . -I c:/ghc/ghc-6.5.20060914\include -I c:/ghc/ghc-6.5.20060914\include\mingw -iprefix c:\ghc\ghc-6.5.20060914\../lib/gcc/mingw32/3.4.5/ -isystem c:/ghc/ghc-6.5.20060914/gcc-lib/include -DDONT_WANT_WIN32_DLL_SUPPORT -DSTOLEN_X86_REGS=4 -DGLASGOW_HASKELL=605 c:\DOCUME~1\JOSEFS~1\LOKALA~1\Temp\ghc2080_0\ghc2080_0.hc -quiet -dumpbase ghc2080_0.hc -mno-omit-leaf-frame-pointer -auxbase-strip c:\DOCUME~1\JOSEFS~1\LOKALA~1\Temp\ghc2080_0\ghc2080_0.raw_s -O -Wimplicit -version -fno-defer-pop -fno-unit-at-a-time -fomit-frame-pointer -fno-builtin -ffloat-store -fno-strict-aliasing -o c:\DOCUME~1\JOSEFS~1\LOKALA~1\Temp\ghc2080_0\ghc2080_0.raw_s

I'm running cygwin btw. Let me know if there's anything more you want to know.

Attachments (1)

verbose_error (252.3 KB) - added by josef 8 years ago.
Output from ghc -v, including the errors from gcc

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by josef

Output from ghc -v, including the errors from gcc

comment:1 Changed 8 years ago by simonpj

  • Milestone set to 6.6
  • Owner set to simonmar
  • Priority changed from normal to high

comment:2 Changed 8 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Reproducible with ghc-6.5.20060914, not with ghc-6.5.20061001.
Fixed by

Fri Sep 29 23:57:51 BST 2006  sof@galois.com
  * rejig library include/ files
Note: See TracTickets for help on using tickets.