Summary: | sys-devel/clang-3.3: failed in QA check, invalid install_name | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | yegle <cnyegle> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | leho |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 474748 |
Description
yegle
2013-06-25 16:39:37 UTC
please try to fix the ebuild, it would be great to have a running build again I tried to fix this by adding extra calls to install_name_tool to the corresponding dylib file, and QA check doesn't complain anymore. But now clang crashes right after invoking it. --- /Users/yegle/.gentoo/usr/portage/sys-devel/clang/clang-3.3.ebuild 2013-06-18 15:20:08.000000000 -0700 +++ clang-3.3-r1.ebuild 2013-06-27 10:27:24.000000000 -0700 @@ -190,6 +190,10 @@ "${ED}"/usr/lib/llvm/${lib} eend $? done + ebegin "fixing install_name of $lib" + install_name_tool -id "${EPREFIX}"/usr/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib \ + "${ED}"/usr/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib + eend $? for f in usr/bin/{c-index-test,clang} usr/lib/llvm/libclang.dylib ; do ebegin "fixing references in ${f##*/}" install_name_tool \ $ clang clang(1965,0x7fff7cd6a310) malloc: *** error for object 0x10f967600: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug 0 libLLVM-3.3.dylib 0x000000010f00b9f8 llvm::sys::PrintStackTrace(__sFILE*) + 40 1 libLLVM-3.3.dylib 0x000000010f00bee4 SignalHandler(int) + 436 2 libsystem_platform.dylib 0x00007fff8f3b680a _sigtramp + 26 3 libsystem_platform.dylib 0x00007fff6ece6248 _sigtramp + 3750951512 4 libsystem_c.dylib 0x00007fff96564c22 abort + 125 5 libsystem_malloc.dylib 0x00007fff96bb17cb malloc_get_zone_name + 0 6 libstdc++.6.dylib 0x00007fff8ec25b18 std::string::reserve(unsigned long) + 112 7 libstdc++.6.dylib 0x00007fff8ec25e3b std::string::append(char const*, unsigned long) + 101 8 libLLVM-3.3.dylib 0x000000010f02b0bd llvm::raw_string_ostream::~raw_string_ostream() + 45 9 clang 0x000000010d605746 clang::driver::toolchains::Darwin::Darwin(clang::driver::Driver const&, llvm::Triple const&, clang::driver::ArgList const&) + 380 10 clang 0x000000010d60598b clang::driver::toolchains::DarwinClang::DarwinClang(clang::driver::Driver const&, llvm::Triple const&, clang::driver::ArgList const&) + 23 11 clang 0x000000010d5e53f6 clang::driver::Driver::getToolChain(clang::driver::ArgList const&, llvm::StringRef) const + 2248 12 clang 0x000000010d5eea39 clang::driver::Driver::BuildCompilation(llvm::ArrayRef<char const*>) + 1549 13 clang 0x000000010d536dba main + 2557 14 clang 0x000000010d530690 start + 52 Stack dump: 0. Program arguments: clang 1. Compilation construction Abort trap: 6 Seems like a false alarm. I tried with FEATURES="allow_broken_install_names" and installed =clang-3.3. It actually works well. Mass-closing of bugs pinned to old clang versions. Please reopen and update summary appropriately if the bug still applies to a newer version (and hasn't been reported separately for it). |