Skip to content

Cabal shouldn't try to build split-objs when ghc reports it does not support it #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bos opened this issue May 24, 2012 · 4 comments
Open
Labels
Cabal: other old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: bug
Milestone

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #421, reported by @dcoutts on 2008-12-01)

It is possible to build ghc without support for object splitting. In such a case Cabal should refuse to work if the user enables split objs.

All one has to do is to parse the output of ghc --info (which is in a Read/Show format).

See also #24.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by guest on 2008-12-01)

Note that --info was added in 6.8. I'm not sure what to do with older versions.

Here's the commit in question:

Sun Aug 19 00:37:58 CEST 2007  Ian Lynagh <[email protected]>
  * Implement --info, and change how can_split is defined
  We now get the value of can_split from the SplitObjs setting in the
  build system, rather than working out whether it should be possible
  based on the platform.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2008-12-01)

With older versions there's nothing we can do, we just have to optimistically assume that it supports split-objs.

@BardurArantsson
Copy link
Collaborator

Last report 2008. Is split-obj a thing anymore and is this remotely relevant to current Cabal? Close?

@23Skidoo
Copy link
Member

Yes, split-objs is still a thing; the issue should be actually quite easy to fix.

@23Skidoo 23Skidoo self-assigned this Jun 26, 2015
@23Skidoo 23Skidoo removed their assignment Sep 13, 2016
@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cabal: other old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: bug
Projects
None yet
Development

No branches or pull requests

5 participants