Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 5.6k
    • Issues 5.6k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 644
    • Merge requests 644
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #571

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking