[Hackage] #580: -Wno-attributes rejected by gcc while testing for libraries during configure

Hackage trac at galois.com
Fri Sep 4 03:22:41 EDT 2009

#580: -Wno-attributes rejected by gcc while testing for libraries during
  Reporter:  brian0              |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:
  Severity:  normal              |     Keywords:         
Difficulty:  unknown             |   Ghcversion:         
  Platform:  Windows             |  
 GHC 6.10.4
 Cabal 0.6.2
 cabal-install 0.6.2

 During configure, I think cabal-install is testing for the existence of
 various libraries by compiling empty "main() {}" C sources. But the
 command it constructs to do the compile contains -Wno-attributes, which
 gcc 3.4.5 doesn't understand.

 > cabal configure -v3
 C:\brian\tools\ghc-6.10.4\gcc.exe returned ExitFailure 1 with error
 cc1.exe: error: unrecognized command line option "-Wno-attributes"
 cc1.exe: warning: command line option "-Wno-ctor-dtor-privacy" is valid
 C++/ObjC++ but not for C

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/580>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list