[Hackage] #580: -Wno-attributes rejected by gcc while testing
for libraries during configure
Hackage
trac at galois.com
Mon Sep 14 13:00:26 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: 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
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.
{{{
> 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
}}}
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
More information about the cabal-devel
mailing list