NingyuShi
NingyuShi
Worked it around by setting rpath in the BUILD file, but this is annoying especially during bootstrapping. Hopefully bazel can provide a way to retain user env (PATH, LD_LIBRARY_PATH) or...
The problem is not the compilation stage which invokes gcc, that can be handled with CROSSTOOL. It's invoking some intermediate binary compiled by gcc, which need proper LD_LIBRARY_PATH to work...
@lberki It will be nice we can make this part of the official flow to support older version of linux. What do you think? I can help on this and...
Adding ${LDFLAG} is very helpful for first round compilation. There are several other things I did to compile - Add -fgnu89-inline to compile.sh and cc_binary(copts) to get over the behavior...
@ulfjack Yes, it's disabled during runtime, but you will not be able to compile it on old kernel during compilation stage due to all the new kernel flags like CLONE_NEWIPC,...
@casiciaco The build-runfiles has to be compiled statically with libstdc++.a, otherwise when it runs internally it will require properly set LD_LIBRARY_PATH which is not possible in bazel.
I'll try to test it and get back in a few days. Thanks Ningyu On Thu, Mar 3, 2016 at 8:55 AM Damien Martin-Guillerez < [email protected]> wrote: > Hi there,...
@philwo I tried the strategy option, it works very well! Thanks! Back to the issue, with sandboxing, if every action is using a unique working dir, and need to setup...
@damienmg My CROSSTOOL looks like ``` toolchain { toolchain_identifier: "local" abi_libc_version: "local" abi_version: "local" builtin_sysroot: "" compiler: "compiler" compiler_flag: "-Wall" compiler_flag: "-Werror" compiler_flag: "-pedantic" compiler_flag: "-Wl,-z,-relro,-z,now" compiler_flag: "-Bexternal/gcc_6_1/bin" compiler_flag: "-B/usr/bin"...
@damienmg I have several problems with this setup. One thing is gcc dependency tracking somehow leeks out of external/gcc_6_1, just two entry. Most of them looks like ``` external/gcc_6_1/include/c++/6.1.0/bits/stl_iterator.h \...