haskell / haskell/cabal

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

未关闭
#783 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Cabal: other old-milestone: ⊥ platform: mac type: bug
主要语言
Haskell
星标
1.7k
派生
750
平均合并
4 天 3 小时
30 天内合并 PR
28

描述

(Imported from [Trac #793](http://hackage.haskell.org/trac/hackage/ticket/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: johan.tibell@gmail.com
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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。