build error (Mac OS X)
../../ghc/compiler/ghc-inplace -optc-O -optc-O2 -optc-fomit-frame-pointer -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-DCOMPILING_RTS -I../includes -I. -Iparallel -O2 -DCOMPILING_RTS -static -c Adjustor.c -o Adjustor.o
cc: cannot specify -o with -c or -S and multiple compilations
The above error message is given when the build system begins to use ghc-inplace to build the C sources in fptools/ghc/rts. (This occurs after the build of gmp, I believe).
I'm trying to build ghc 5.00.2 (using binaries of GHC 4.08.1 provided by Atze Dijkstra, linked from the GHC download page).
Out of curiosity, I ran the following command (eliminating the '-o' option that the error message referred to & various warnings):
../../ghc/compiler/ghc-inplace -optc-fomit-frame-pointer -optc-DCOMPILING_RTS -I../includes -I. -Iparallel -DCOMPILING_RTS -c Adjustor.c
cc: cannot specify -o with -c or -S and multiple compilations
As you can see, the exact same error resulted. It looks like ghc-inplace is passing cc a bad set of options internally, as the error message doesn't have to do with the options provided directly on the command line...
Trac metadata
| Trac field | Value |
|---|---|
| Version | 5.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedOutOfDate |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |