[LLVMbugs] [Bug 2579] New: `./configure` check for Carbon.h fails with CC=clang
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Jul 22 01:06:03 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2579
Summary: `./configure` check for Carbon.h fails with CC=clang
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=1859)
--> (http://llvm.org/bugs/attachment.cgi?id=1859)
Short testcase
When running `./configure` in a project that checks for Carbon.h, configure
tries to compile a program that contains `#include <Carbon/Carbon.h>` and a few
other includes. That program cannot be compiled with clang. A reduced test case
is attached.
This is probably related to #2427.
nico$ cat bla.c
# include <stdlib.h>
#include <Carbon/Carbon.h>
nico$ clang -fsyntax-only bla.c
In file included from bla.c:2:
In file included from
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h:25:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:14:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:10:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGContext.h:13:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGColor.h:12:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h:12:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h:14:
/usr/include/unistd.h:582:7: error: conflicting types for 'valloc'
void *valloc(size_t);
^
In file included from bla.c:1:
/usr/include/stdlib.h:312:7: error: previous declaration is here
void *valloc(size_t);
^
2 diagnostics generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list