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

cabal configure -v3 ... ("C:\\brian\\tools\\ghc-6.10.4\\gcc.exe",["-BC:\\brian\\tools\\ghc-6.10.4 \\gcc-
#580: -Wno-attributes rejected by gcc while testing for libraries during configure ---------------------------------+------------------------------------------ Reporter: brian0 | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.6.0.2 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Windows | ---------------------------------+------------------------------------------ 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. lib","-IC:\\brian\\tools\\ghc-6.10.4\\include\\mingw","C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\388.c","-o","C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\388","-lwxmsw28","-LC:\\SourceCode\\Libraries\\wxWidgets2.8\\lib\\gcc_dll","-mthreads ","-Wno-attributes","-fmessage-length=0","-pipe","-Wno-ctor-dtor- privacy"]) C:\brian\tools\ghc-6.10.4\gcc.exe returned ExitFailure 1 with error message: cc1.exe: error: unrecognized command line option "-Wno-attributes" cc1.exe: warning: command line option "-Wno-ctor-dtor-privacy" is valid for 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

#580: -Wno-attributes rejected by gcc while testing for libraries during configure ---------------------------------+------------------------------------------ Reporter: brian0 | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.6.0.2 Severity: major | Resolution: Keywords: | Difficulty: unknown Ghcversion: | Platform: Windows ---------------------------------+------------------------------------------ Changes (by brian0): * severity: normal => major Old description:
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",["-BC:\\brian\\tools\\ghc-6.10.4 \\gcc- lib","-IC:\\brian\\tools\\ghc-6.10.4\\include\\mingw","C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\388.c","-o","C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\388","-lwxmsw28","-LC:\\SourceCode\\Libraries\\wxWidgets2.8\\lib\\gcc_dll","-mthreads ","-Wno-attributes","-fmessage-length=0","-pipe","-Wno-ctor-dtor- privacy"]) C:\brian\tools\ghc-6.10.4\gcc.exe returned ExitFailure 1 with error message: cc1.exe: error: unrecognized command line option "-Wno-attributes" cc1.exe: warning: command line option "-Wno-ctor-dtor-privacy" is valid for C++/ObjC++ but not for C
cabal configure -v3 ... ("C:\\brian\\tools\\ghc-6.10.4\\gcc.exe",["-BC:\\brian\\tools\\ghc-6.10.4 \\gcc-
New description: 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. {{{ lib","-IC:\\brian\\tools\\ghc-6.10.4\\include\\mingw","C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\388.c","-o","C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\388","-lwxmsw28","-LC:\\SourceCode\\Libraries\\wxWidgets2.8\\lib\\gcc_dll","-mthreads ","-Wno-attributes","-fmessage-length=0","-pipe","-Wno-ctor-dtor- privacy"]) C:\brian\tools\ghc-6.10.4\gcc.exe returned ExitFailure 1 with error message: cc1.exe: error: unrecognized command line option "-Wno-attributes" cc1.exe: warning: command line option "-Wno-ctor-dtor-privacy" is valid for C++/ObjC++ but not for C }}} Comment: Improving the formatting of this report and increasing the severity to major because it is, I believe, blocking the installation of software that would otherwise work. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/580#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#580: -Wno-attributes rejected by gcc while testing for libraries during configure ----------------------------+----------------------------------------------- Reporter: brian0 | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.2 Severity: major | Resolution: invalid Keywords: | Difficulty: unknown Ghcversion: | Platform: Windows ----------------------------+----------------------------------------------- Changes (by brian0): * status: new => closed * resolution: => invalid Comment: ghc-pkg dump showed that there were no cc-options. The weird flags were being provided by a helper program, the Windows version of wx-config. I'm invalidating this ticket. Sorry, and thank you. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/580#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage