-
Notifications
You must be signed in to change notification settings - Fork 127
ld in fake-toolchain must work properly #126
Comments
When we invoke
We currently stub out |
Yes, I am sure. The errors occurred in the first stage. mkdir /tmp/leveldb
cd /tmp/leveldb/
git clone https://github.com/google/leveldb.git
export PATH=~/.vim/plugged/YCM-Generator/fake-toolchain/Unix/:$PATH
export CC=clang
export CXX=clang++
export YCM_CONFIG_GEN_CC_PASSTHROUGH=/usr/local/bin/clang
export YCM_CONFIG_GEN_CXX_PASSTHROUGH=/usr/local/bin/clang++
/usr/local/bin/cmake /tmp/leveldb/leveldb/ output of cmake:
CMakeOutput.log
CMakeError.log
|
I am trying to use
YCM-Generator
forleveldb
. And mycmake
version is 3.12.4, myclang
version is 7.0, my operating system is ubuntu 16.04.When I executed
config_gen.py
, somecmake
errors occurred. So I checked the error log and found thatcmake
tried to link an executable by executing the following command:"${path_to_fake-toolchain}/Unix/ld" -z relro --hash-style=gnu --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_fe463 /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5.4.0/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5.4.0 -L/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../.. -L/usr/local/bin/../lib -L/lib -L/usr/lib CMakeFiles/cmTC_fe463.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5.4.0/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/crtn.o
Then, I tried to modify
ld
in fake-toolchain to make it work properly on my operating system.After that, I executed
config_gen.py
again and it works fine.The text was updated successfully, but these errors were encountered: