[LLVMbugs] Compile error on 64-bit x86 Solaris
Zeljko Vrba
zvrba at ifi.uio.no
Wed Oct 24 23:38:30 PDT 2007
On Wed, Oct 24, 2007 at 11:51:35AM -0700, Chris Lattner wrote:
>
> Please try to find a way to make sure these aren't defined :).
>
Preprocessing shows that the __EXTENSIONS__ macro is gcc's
builtin define (gcc 4.2.2):
# 1 "/home/zvrba/llvm-2.1/lib/VMCore/AsmWriter.cpp"
# 1 "<built-in>"
#define __cplusplus 1
-cut-
#define __EXTENSIONS__ 1
...
The following in Makefile.rules seems to work on x86 Solaris 10:
CPP.BaseFlags += -D_XPG6 -D_STDC_C99 -U__EXTENSIONS__ -D__STDC_LIMIT_MACROS
However, the final link fails.
====
Additional fixes: the ARM target needs to #include <strings.h> in
order to be able to use strncasecmp function.
====
BTW, another problem: make fails when running bison with:
/home/zvrba/llvm-2.1/lib/AsmParser/llvmAsmParser.y: conflicts: 4 shift/reduce
make[2]: *** [/home/zvrba/llvm-2.1/lib/AsmParser/llvmAsmParser.h] Broken Pipe
I have handled the problem by deleting .y files and taking .cpp.cvs files.
Manually running bison _works_, so something else is going on.
More information about the llvm-bugs
mailing list