[LLVMbugs] [Bug 9957] New: cmake -DLLVM_TARGETS_TO_BUILD=PowerPC broken

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 19 17:29:05 PDT 2011


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

           Summary: cmake -DLLVM_TARGETS_TO_BUILD=PowerPC broken
           Product: Build scripts
           Version: 2.9
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: fang at csl.cornell.edu
                CC: llvmbugs at cs.uiuc.edu, ofv at wanadoo.es


With LLVM-2.9 (release) on powerpc-darwin8:
cmake dies on:

...
-- Performing Test HAVE_BI_ITERATOR
-- Performing Test HAVE_BI_ITERATOR - Failed
-- Performing Test HAVE_STD_ITERATOR
-- Performing Test HAVE_STD_ITERATOR - Success
-- Performing Test HAVE_FWD_ITERATOR
-- Performing Test HAVE_FWD_ITERATOR - Failed
-- Performing Test HAVE_INT64_T
-- Performing Test HAVE_INT64_T - Success
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Success
-- Performing Test HAVE_U_INT64_T
-- Performing Test HAVE_U_INT64_T - Success
-- Performing Test HAVE_ERROR_T
-- Performing Test HAVE_ERROR_T - Failed
-- Performing Test LLVM_MULTITHREADED
-- Performing Test LLVM_MULTITHREADED - Failed
-- Warning: LLVM will be built thread-unsafe because atomic builtins are
missing
-- Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG
-- Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG - Success
-- Target triple: powerpc-apple-darwin8.11.0
-- Native target architecture is PowerPC
-- Threads enabled.
-- Performing Test SUPPORTS_FPIC_FLAG
-- Performing Test SUPPORTS_FPIC_FLAG - Success
-- Building with -fPIC
-- Targeting PowerPC
-- Found Perl: /usr/bin/perl 
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - big endian
CMake Error at cmake/modules/LLVMConfig.cmake:127 (message):
  Library `X86' not found in list of llvm libraries.
Call Stack (most recent call first):
  cmake/modules/LLVMConfig.cmake:47 (explicit_map_components_to_libraries)
  cmake/modules/LLVMConfig.cmake:40 (explicit_llvm_config)
  cmake/modules/AddLLVM.cmake:77 (llvm_config)
  cmake/modules/AddLLVM.cmake:96 (add_llvm_executable)
  tools/opt/CMakeLists.txt:3 (add_llvm_tool)


-- Configuring incomplete, errors occurred!


I worked around this by removing the explicit LLVM_TARGETS_TO_BUILD, and
compilation succeeded (all target back-ends enabled).

-- 
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