Ben Pope
2014-Jul-30 05:35 UTC
[LLVMdev] [3.5 Release] Release Candidate 1 Sources and Binaries Available
On Wednesday, July 30, 2014 01:31 PM, Ben Pope wrote:> ldd your_built_clang | grep libstdc++ > chrpath -l your_built_clangHmm, where "your_built_clang" should be the actual failing executable: /home/evansl/dwnlds/llvm/3.5rc1/build/Release+Asserts/bin/llvm-tblgen Ben
Larry Evans
2014-Jul-30 15:06 UTC
[LLVMdev] [3.5 Release] Release Candidate 1 Sources and Binaries Available
On 07/30/2014 12:35 AM, Ben Pope wrote:> On Wednesday, July 30, 2014 01:31 PM, Ben Pope wrote: > >> ldd your_built_clang | grep libstdc++ >> chrpath -l your_built_clang > > Hmm, where "your_built_clang" should be the actual failing executable: > /home/evansl/dwnlds/llvm/3.5rc1/build/Release+Asserts/bin/llvm-tblgen > > BenHere's the result: -*- mode: compilation; default-directory: "~/dwnlds/llvm/3.5rc1/build-variants/" -*- Compilation started at Wed Jul 30 10:03:38 make -f my.mk chrpath cat hello_world.cpp #include <iostream> int main() { std::cout<<"Hello World!\n"; return 0; } g++ --version g++ (GCC) 4.9.0 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. g++ hello_world.cpp ./a.out Hello World! ldd a.out | grep libstdc++ libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00002b30fdb04000) chrpath -l a.out a.out: no rpath or runpath tag found. make: [chrpath] Error 2 (ignored) ldd ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen | grep libstdc++ ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00002aee42a0f000) chrpath -l ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen: RPATH=$ORIGIN/../lib Compilation finished at Wed Jul 30 10:03:38
Larry Evans
2014-Jul-30 15:26 UTC
[LLVMdev] [3.5 Release] Release Candidate 1 Sources and Binaries Available
On 07/30/2014 10:06 AM, Larry Evans wrote:> On 07/30/2014 12:35 AM, Ben Pope wrote: >> On Wednesday, July 30, 2014 01:31 PM, Ben Pope wrote: >> >>> ldd your_built_clang | grep libstdc++ >>> chrpath -l your_built_clang >> >> Hmm, where "your_built_clang" should be the actual failing executable: >> /home/evansl/dwnlds/llvm/3.5rc1/build/Release+Asserts/bin/llvm-tblgen >> >> Ben > Here's the result: > > -*- mode: compilation; default-directory: > "~/dwnlds/llvm/3.5rc1/build-variants/" -*- > Compilation started at Wed Jul 30 10:03:38 > > make -f my.mk chrpath > cat hello_world.cpp > #include <iostream> > int main() > { > std::cout<<"Hello World!\n"; > return 0; > } > g++ --version > g++ (GCC) 4.9.0 > Copyright (C) 2014 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > g++ hello_world.cpp > ./a.out > Hello World! > ldd a.out | grep libstdc++ > libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > (0x00002b30fdb04000) > chrpath -l a.out > a.out: no rpath or runpath tag found. > make: [chrpath] Error 2 (ignored) > ldd ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen | grep libstdc++ > ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen: > /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not > found (required by ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen) > libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > (0x00002aee42a0f000) > chrpath -l ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen > ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen: RPATH=$ORIGIN/../lib > > Compilation finished at Wed Jul 30 10:03:38 >OTHO, when LD_LIBRARY_PATH is set to /usr/local/..., there's no "not found" error message: -*- mode: compilation; default-directory: "~/dwnlds/llvm/3.5rc1/build-variants/" -*- Compilation started at Wed Jul 30 10:22:38 make -f my.mk libpath.chrpath LD_LIBRARY_PATH=/usr/local/lib64 make -f my.mk chrpath make[1]: Entering directory `/home/evansl/dwnlds/llvm/3.5rc1/build-variants' cat hello_world.cpp #include <iostream> int main() { std::cout<<"Hello World!\n"; return 0; } g++ --version g++ (GCC) 4.9.0 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. g++ hello_world.cpp ./a.out Hello World! ldd a.out | grep libstdc++ libstdc++.so.6 => /usr/local/lib64/libstdc++.so.6 (0x00002ac7aded9000) chrpath -l a.out a.out: no rpath or runpath tag found. make[1]: [chrpath] Error 2 (ignored) ldd ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen | grep libstdc++ libstdc++.so.6 => /usr/local/lib64/libstdc++.so.6 (0x00002b0112130000) chrpath -l ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen ./with_LD_LIBRARY_PATH/Release+Asserts/bin/llvm-tblgen: RPATH=$ORIGIN/../lib make[1]: Leaving directory `/home/evansl/dwnlds/llvm/3.5rc1/build-variants' Compilation finished at Wed Jul 30 10:22:38
Reasonably Related Threads
- [LLVMdev] [3.5 Release] Release Candidate 1 Sources and Binaries Available
- [LLVMdev] [3.5 Release] Release Candidate 4 Now Available
- [LLVMdev] [cfe-dev] [3.3 Release] 3.3rc3 Now Available
- hivex: Bug: RPATH in Perl SO
- 32 bit error compiling R on sparc-sun-solaris (PR#1273)