<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Error with missing LTO symbols for the right arch"
   href="http://llvm.org/bugs/show_bug.cgi?id=22261">22261</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error with missing LTO symbols for the right arch
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Core LLVM classes
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ehsan@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I get this when building trunk:

[1506/2176] Linking CXX shared library lib/libLTO.dylib
FAILED: : && /usr/bin/c++   -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wcovered-switch-default -std=c++11
-fcolor-diagnostics -std=c++11 -target i386-apple-darwin -O2 -g -DNDEBUG 
-dynamiclib -Wl,-headerpad_max_install_names -Wl,-dead_strip
-Wl,-exported_symbols_list,/Users/ehsan/src/llvm-objdir/tools/lto/LTO.exports
-o lib/libLTO.dylib -install_name @rpath/libLTO.dylib
tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o
tools/lto/CMakeFiles/LTO.dir/lto.cpp.o  lib/libLLVMX86CodeGen.a
lib/libLLVMX86AsmPrinter.a lib/libLLVMX86AsmParser.a lib/libLLVMX86Desc.a
lib/libLLVMX86Info.a lib/libLLVMX86Disassembler.a lib/libLLVMCore.a
lib/libLLVMLTO.a lib/libLLVMMC.a lib/libLLVMMCDisassembler.a
lib/libLLVMSupport.a lib/libLLVMX86CodeGen.a lib/libLLVMAsmPrinter.a
lib/libLLVMSelectionDAG.a lib/libLLVMX86Desc.a lib/libLLVMX86AsmPrinter.a
lib/libLLVMX86Utils.a lib/libLLVMX86Info.a lib/libLLVMMCDisassembler.a
lib/libLLVMCodeGen.a lib/libLLVMTarget.a lib/libLLVMBitWriter.a
lib/libLLVMLinker.a lib/libLLVMObjCARCOpts.a lib/libLLVMipo.a
lib/libLLVMScalarOpts.a lib/libLLVMInstCombine.a lib/libLLVMProfileData.a
lib/libLLVMObject.a lib/libLLVMMCParser.a lib/libLLVMMC.a
lib/libLLVMBitReader.a lib/libLLVMVectorize.a lib/libLLVMTransformUtils.a
lib/libLLVMipa.a lib/libLLVMAnalysis.a lib/libLLVMCore.a lib/libLLVMSupport.a
-lcurses -lpthread -lz -lm -Wl,-rpath,@executable_path/../lib && :
ld: warning: ignoring file tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o,
file was built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00
0x01 0x03 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture
being linked (i386): tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o
ld: warning: ignoring file tools/lto/CMakeFiles/LTO.dir/lto.cpp.o, file was
built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01
0x03 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being
linked (i386): tools/lto/CMakeFiles/LTO.dir/lto.cpp.o
ld: warning: ignoring file lib/libLLVMX86CodeGen.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMX86CodeGen.a
ld: warning: ignoring file lib/libLLVMX86AsmPrinter.a, file was built for
archive which is not the architecture being linked (i386):
lib/libLLVMX86AsmPrinter.a
ld: warning: ignoring file lib/libLLVMX86AsmParser.a, file was built for
archive which is not the architecture being linked (i386):
lib/libLLVMX86AsmParser.a
ld: warning: ignoring file lib/libLLVMX86Desc.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMX86Desc.a
ld: warning: ignoring file lib/libLLVMX86Info.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMX86Info.a
ld: warning: ignoring file lib/libLLVMX86Disassembler.a, file was built for
archive which is not the architecture being linked (i386):
lib/libLLVMX86Disassembler.a
ld: warning: ignoring file lib/libLLVMCore.a, file was built for archive which
is not the architecture being linked (i386): lib/libLLVMCore.a
ld: warning: ignoring file lib/libLLVMLTO.a, file was built for archive which
is not the architecture being linked (i386): lib/libLLVMLTO.a
ld: warning: ignoring file lib/libLLVMMC.a, file was built for archive which is
not the architecture being linked (i386): lib/libLLVMMC.a
ld: warning: ignoring file lib/libLLVMMCDisassembler.a, file was built for
archive which is not the architecture being linked (i386):
lib/libLLVMMCDisassembler.a
ld: warning: ignoring file lib/libLLVMSupport.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMSupport.a
ld: warning: ignoring file lib/libLLVMAsmPrinter.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMAsmPrinter.a
ld: warning: ignoring file lib/libLLVMSelectionDAG.a, file was built for
archive which is not the architecture being linked (i386):
lib/libLLVMSelectionDAG.a
ld: warning: ignoring file lib/libLLVMX86Utils.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMX86Utils.a
ld: warning: ignoring file lib/libLLVMCodeGen.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMCodeGen.a
ld: warning: ignoring file lib/libLLVMTarget.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMTarget.a
ld: warning: ignoring file lib/libLLVMBitWriter.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMBitWriter.a
ld: warning: ignoring file lib/libLLVMLinker.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMLinker.a
ld: warning: ignoring file lib/libLLVMObjCARCOpts.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMObjCARCOpts.a
ld: warning: ignoring file lib/libLLVMipo.a, file was built for archive which
is not the architecture being linked (i386): lib/libLLVMipo.a
ld: warning: ignoring file lib/libLLVMScalarOpts.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMScalarOpts.a
ld: warning: ignoring file lib/libLLVMProfileData.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMProfileData.a
ld: warning: ignoring file lib/libLLVMMCParser.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMMCParser.a
ld: warning: ignoring file lib/libLLVMInstCombine.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMInstCombine.a
ld: warning: ignoring file lib/libLLVMObject.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMObject.a
ld: warning: ignoring file lib/libLLVMBitReader.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMBitReader.a
ld: warning: ignoring file lib/libLLVMVectorize.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMVectorize.a
ld: warning: ignoring file lib/libLLVMipa.a, file was built for archive which
is not the architecture being linked (i386): lib/libLLVMipa.a
ld: warning: ignoring file lib/libLLVMTransformUtils.a, file was built for
archive which is not the architecture being linked (i386):
lib/libLLVMTransformUtils.a
ld: warning: ignoring file lib/libLLVMAnalysis.a, file was built for archive
which is not the architecture being linked (i386): lib/libLLVMAnalysis.a
Undefined symbols for architecture i386:
  "_lto_module_get_linkeropt", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_dispose", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_get_num_symbols", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_create_from_memory_with_path", referenced from:
     -exported_symbol[s_list] command line option
  "_LLVMDisasmDispose", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_get_version", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_get_target_triple", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_create_from_memory", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_create_in_local_context", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_initialize_disassembler", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_create_from_fd_at_offset", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_create_from_fd", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_create_in_local_context", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_create", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_create_in_codegen_context", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_compile", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_get_deplib", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_get_num_deplibs", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_set_debug_model", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_add_module", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_set_target_triple", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_is_object_file_for_target", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_set_pic_model", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_is_object_file", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_write_merged_modules", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_set_diagnostic_handler", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_add_must_preserve_symbol", referenced from:
     -exported_symbol[s_list] command line option
  "_LLVMCreateDisasmCPU", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_debug_options", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_set_assembler_path", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_set_assembler_args", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_create", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_is_object_file_in_memory", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_get_error_message", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_is_object_file_in_memory_for_target", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_get_symbol_attribute", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_dispose", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_get_symbol_name", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_module_get_num_linkeropts", referenced from:
     -exported_symbol[s_list] command line option
  "_LLVMSetDisasmOptions", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_set_cpu", referenced from:
     -exported_symbol[s_list] command line option
  "_lto_codegen_compile_to_file", referenced from:
     -exported_symbol[s_list] command line option
  "_LLVMDisasmInstruction", referenced from:
     -exported_symbol[s_list] command line option
  "_LLVMCreateDisasm", referenced from:
     -exported_symbol[s_list] command line option
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>