[ ghc-Bugs-447757 ] build error (Mac OS X)

noreply@sourceforge.net noreply@sourceforge.net
Fri, 03 Aug 2001 16:46:12 -0700


Bugs item #447757, was opened at 2001-08-03 16:31
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=447757&group_id=8032

Category: Build System
Group: 5.00
Status: Open
Resolution: None
Priority: 5
Submitted By: Dale Vaillancourt (dalev321)
Assigned to: Nobody/Anonymous (nobody)
Summary: build error (Mac OS X)

Initial Comment:
../../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...

----------------------------------------------------------------------

Comment By: Ken Shan (ccshan)
Date: 2001-08-03 16:46

Message:
Logged In: YES 
user_id=275868

Could you please run ghc-inplace with the -v flag, so that
it displays what flags it used to invoke cc internally?


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=447757&group_id=8032