Skip to content
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

On OS X, warn about filenames that only differ in case #783

Open
bos opened this issue May 24, 2012 · 0 comments
Open

On OS X, warn about filenames that only differ in case #783

bos opened this issue May 24, 2012 · 0 comments
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 #793, reported by @tibbe on 2011-01-18)

I managed to make Cabal fail to build a project by having

Name:                hamt
Version:             0.1
License:             BSD3
License-file:        LICENSE
Author:              Johan Tibell
Maintainer:          [email protected]
Category:            Data
Build-type:          Simple
Cabal-version:       >=1.2
Library
  Exposed-modules: HAMT
  Other-modules: PopCount
  Build-depends: base, vector
  C-sources: popcount.c
The result was:
Building hamt-0.1...
[1 of 2] Compiling PopCount         ( PopCount.hs, dist/build/PopCount.o )
ld: duplicate symbol _popcount in dist/build/popcount.o and dist/build/PopCount.o for inferred architecture i386
_popcount is only defined in popcount.c. Looking in dist/ showed that there was only a popcount.o there (from the C file). Renaming popcount.c to popc.c solved the problem.

Cabal ought to warn in this case.

@ttuegel ttuegel added this to the _|_ milestone Apr 23, 2015
@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

3 participants