[LLVMbugs] [Bug 21626] clang failed to compile Objective-C++ code with -fmodules

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 21 17:28:17 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21626

jh <191919 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from jh <191919 at gmail.com> ---
There is no module map in /usr/include (see below).

I can write one, but there are C and C++ linkages for different header files, I
can't assume they are all entern_c.

Xcode 6.1's clang (Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM
3.5svn)) compiles the code successfully with `-fmodules`.

------

$ cd /
$ find . -name \*modulemap\*

# System frameworks

./System/Library/PrivateFrameworks/ExchangeWebServices.framework/Versions/A/Modules/module.modulemap


# Below are the module maps in /Application/Xcode.app:

./Applications/Utilities/Tower.app/Contents/Frameworks/FNAppKit.framework/Versions/A/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTPlaygroundCommunication.framework/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Metal.framework/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/DVTPlaygroundCommunication.framework/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/PrivateFrameworks/ExchangeWebServices.framework/Versions/A/Modules/module.modulemap
./Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/Modules/module.modulemap

# Below are clang's installation directory

./opt/include/clang-c/module.modulemap
./opt/lib/clang/3.6.0/include/module.modulemap

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141122/f19cda12/attachment.html>


More information about the llvm-bugs mailing list