First, Zookeeper will encounter the following zookeeper make at the beginning: * ** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl] Error1/usr/bin/ld: skippingincompatible/usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc ++. sowhensearching
First, generally, Zookeeper will encounter the following zookeeper at the beginning.
Make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl]
Error 1/usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc ++. so when searching for-lstdc ++
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc ++. a when searching for-lstdc ++
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc ++. so when searching for-lstdc ++
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc ++. a when searching for-lstdc ++
/Usr/bin/ld: cannot find-lstdc ++ collect2: ld returned 1 exit status
It cannot find libstdc ++. The solution is to install the following package:
Apt-get install g ++-multilib
Next I encountered the same problem:
-O-out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt-lz-lrt
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.3.2/.../../libz. so when searching for-lz
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.3.2/.../libz. a when searching for-lz
/Usr/bin/ld: skipping incompatible/usr/lib/libz. so when searching for-lz/usr/bin/ld: skipping incompatible
/Usr/lib/libz. a when searching for-lz/usr/bin/ld: cannot find-lz collect2: ld returned 1 exit status
Make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] Error 1
It cannot find libz, and the solution is to install the following suite
Apt-get install lib32z1-dev
Next,
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.1/.../../libncurses. so when searching for-lncurses
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.1/.../../libncurses. a when searching for-lncurses
/Usr/bin/ld: skipping incompatible/usr/lib/libncurses. so when searching for-lncurses
/Usr/bin/ld: skipping incompatible/usr/lib/libncurses. a when searching for-lncurses
/Usr/bin/ld: cannot find-lncurses
Collect2: ld returned 1 exit status
Make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
Apt-get install lib32ncurses5-dev