[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
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.
> 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
--
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