Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,335
    • Issues 4,335
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 369
    • Merge Requests 369
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #571

Closed
Open
Opened Aug 03, 2001 by dalev321@trac-dalev321

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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#571