[LLVMbugs] [Bug 15903] New: dragonegg at r181010 fails to compile under clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 3 06:21:31 PDT 2013


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

            Bug ID: 15903
           Summary: dragonegg at r181010 fails to compile under clang
           Product: dragonegg
           Version: trunk
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
          Assignee: baldrick at free.fr
          Reporter: howarth at nitro.med.uc.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

At r181010, dragonegg fails to compile under clang with the errors of the
form...

Compiling Backend.cpp
clang++ -c -I/sw/src/fink.build/dragonegg-gcc47-3.3-0/dragonegg-3.3/include/x86
-I/sw/src/fink.build/dragonegg-gcc47-3.3-0/dragonegg-3.3/include/darwin -g 
-DENABLE_BUILD_WITH_CXX -DENABLE_LTO -I/sw/include -I/sw/opt/llvm-3.3/include  
 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-fno-rtti -MD -MP -DIN_GCC -DLLVM_VERSION=\"3.3svn\"
-DTARGET_TRIPLE=\"x86_64-apple-darwin12.3.0\" -DGCC_MAJOR=4 -DGCC_MINOR=7
-DGCC_MICRO=4 -I/sw/src/fink.build/dragonegg-gcc47-3.3-0/dragonegg-3.3/include
-isystem/sw/lib/gcc4.7/lib/gcc/x86_64-apple-darwin12.3.0/4.7.4/plugin/include
-Wall -Wextra -DENABLE_LLVM_PLUGINS -I/sw/opt/llvm-3.3/include  -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wmissing-field-initializers -pedantic -Wno-long-long  -Wnon-virtual-dtor -O3
-DNDEBUG  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
/sw/src/fink.build/dragonegg-gcc47-3.3-0/dragonegg-3.3/src/Backend.cpp
/sw/src/fink.build/dragonegg-gcc47-3.3-0/dragonegg-3.3/src/Backend.cpp:315:3:
error: call to 'LLVMInitializeX86TargetInfo' is ambiguous
  DoInit(LLVM_TARGET_NAME, TargetInfo);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The same build of dragonegg against FSF gcc 4.7.4svn using the FSF g++ 4.7.4svn
compiler succeeds without errors or warnings. The failing clang compiler is
Apple clang 4.2 from Xcode 4.6.2.

-- 
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/20130503/a91c660c/attachment.html>


More information about the llvm-bugs mailing list