[LLVMdev] Problem building libprofile.

Daniel Dunbar daniel at zuster.org
Wed Sep 2 19:55:18 PDT 2009


Hi Andreas,

Did you resolve this? If not please file a bug with the input .bc
files and the llvm-ld command line that crashes.

 - Daniel

On Tue, Sep 1, 2009 at 10:53 AM, Andreas Neustifter<astifter-llvm at gmx.at> wrote:
> Hi,
>
> when I try to build libprofile with r80670 (both llvm and llvm-gcc) I
> get this error:
>
> make[1]: Entering directory `.../llvm-svn-debug-obj/runtime/libprofile'
> llvm[1]: Building Debug Bytecode Archive libprofile_rt.bca (internalize)
> llvm[1]: Installing Debug Shared Library
> /nfs/a5/astifter/astifter/llvm/llvm-svn-debug-obj/../llvm-svn-debug-install/lib/libprofile_rt.so
> 0   llvm-ld         0x0000000000981568
> 1   llvm-ld         0x0000000000981ac7
> 2   libpthread.so.0 0x00002aaaaacd6a80
> 3   llvm-ld         0x00000000006c036c llvm::Value::getValueID() const + 12
> 4   llvm-ld         0x00000000006c038a bool
> llvm::isa_impl<llvm::Constant, llvm::Value>(llvm::Value const&) + 21
> 5   llvm-ld         0x00000000006c40a0
> llvm::isa_impl_wrap<llvm::Constant, llvm::Value const, llvm::Value
> const>::doit(llvm::Value const&) + 21
> 6   llvm-ld         0x00000000006c40b7 bool
> llvm::isa_impl_cl<llvm::Value>::isa<llvm::Constant>(llvm::Value const&) + 21
> 7   llvm-ld         0x00000000006c40ce bool
> llvm::isa_impl_cl<llvm::Value const>::isa<llvm::Constant>(llvm::Value
> const&) + 21
> 8   llvm-ld         0x00000000006c40e5 bool
> llvm::isa_impl_cl<llvm::Value const*>::isa<llvm::Constant>(llvm::Value
> const*) + 21
> 9   llvm-ld         0x00000000006c40ff bool llvm::isa<llvm::Constant,
> llvm::Value const*>(llvm::Value const* const&) + 24
> 10  llvm-ld         0x00000000006d4e27 llvm::cast_retty<llvm::Constant,
> llvm::Value const*>::ret_type llvm::dyn_cast<llvm::Constant, llvm::Value
> const*>(llvm::Value const* const&) + 21
> 11  llvm-ld         0x00000000006da102
> 12  llvm-ld         0x00000000006da65d
> 13  llvm-ld         0x00000000006da65d
> 14  llvm-ld         0x00000000006daade
> 15  llvm-ld         0x00000000006dac98
> 16  llvm-ld         0x00000000006de6d9
> llvm::Linker::LinkModules(llvm::Module*, llvm::Module*, std::string*) + 1897
> 17  llvm-ld         0x00000000006d8a7d
> llvm::Linker::LinkInModule(llvm::Module*, std::string*) + 41
> 18  llvm-ld         0x00000000006d7ff3
> llvm::Linker::LinkInFile(llvm::sys::Path const&, bool&) + 1431
> 19  llvm-ld         0x00000000006d867e
> llvm::Linker::LinkInItems(std::vector<std::pair<std::string, bool>,
> std::allocator<std::pair<std::string, bool> > > const&,
> std::vector<std::pair<std::string, bool>,
> std::allocator<std::pair<std::string, bool> > >&) + 258
> 20  llvm-ld         0x00000000006b3050 main + 1349
> 21  libc.so.6       0x00002aaaabaaf1a6 __libc_start_main + 230
> 22  llvm-ld         0x00000000006aa039 __gxx_personality_v0 + 689
> Stack dump:
> 0.      Program arguments: .../llvm-svn-debug-obj/Debug/bin/llvm-ld
> -L.../llvm-van-install/bin/../lib
> -internalize-public-api-file=.../llvm-svn/runtime/libprofile/exported_symbols.lst
> -o
> .../llvm-svn-debug-obj/runtime/libprofile/Debug/profile_rt.internalize
> .../llvm-svn-debug-obj/runtime/libprofile/Debug/BasicBlockTracing.bc
> .../llvm-svn-debug-obj/runtime/libprofile/Debug/BlockProfiling.bc
> .../llvm-svn-debug-obj/runtime/libprofile/Debug/CommonProfiling.bc
> .../llvm-svn-debug-obj/runtime/libprofile/Debug/EdgeProfiling.bc
> .../llvm-svn-debug-obj/runtime/libprofile/Debug/FunctionProfiling.bc
> .../llvm-svn-debug-obj/runtime/libprofile/Debug/OptimalEdgeProfiling.bc
> make[1]: *** [.../llvm-svn-debug-obj/Debug/lib/libprofile_rt.bca]
> Segmentation fault
> make[1]: Leaving directory `.../llvm-svn-debug-obj/runtime/libprofile'
> make: *** [libprofile/.makeinstall] Error 2
>
> Any toughts? (I attach the build log, so it does not get garbled.)
>
> Andi
>
> --
> ==========================================================================
> This email is signed, for more information see
> http://web.student.tuwien.ac.at/~e0325716/gpg.html
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>




More information about the llvm-dev mailing list