I got this to build in the past, but now whenever I try to build master branch I get:
[ 0% 8/75932] host C++: libadb <= system/core/adb/sockets.cpp
FAILED: out/host/linux-x86/obj/STATIC_LIBRARIES/libadb_intermediates/sockets.o
/bin/bash -c “PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4393122/bin/clang++ -I system/core/adb -I out/host/linux-x86/obj/STATIC_LIBRARIES/libadb_intermediates -I out/host/linux-x86/gen/STATIC_LIBRARIES/libadb_intermediates -I libnativehelper/include_deprecated $(cat out/host/linux-x86/obj/STATIC_LIBRARIES/libadb_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -Wa,–noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wvla -DADB_VERSION=”\“27.0.0-$(cat out/build_number.txt)\”" -fvisibility=hidden -DADB_HOST=1 -fPIC -Wexit-time-destructors -Wthread-safety -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/STATIC_LIBRARIES/libadb_intermediates/sockets.d -o out/host/linux-x86/obj/STATIC_LIBRARIES/libadb_intermediates/sockets.o system/core/adb/sockets.cpp"
python: can’t open file ‘prebuilts/clang/host/linux-x86/clang-4393122/bin/clang++’: [Errno 2] No such file or directory
ninja: build stopped: subcommand failed.
16:08:00 ninja failed with: exit status 1
failed to build some targets (9 seconds)
This makes no sense. First off the file does exist:
mike@mike-Z87-D3HP:/mnt/AOSP-master$ ls -la prebuilts/clang/host/linux-x86/clang-4393122/bin/clang++
-rwxrwxr-x 1 mike mike 6398 Nov 16 13:10 prebuilts/clang/host/linux-x86/clang-4393122/bin/clang++
And secondly, why is python throwing the error? I don’t see python in that command line at all. (I could be blind…)
I try to manually run the full command by hand and get the same error, but if I run “prebuilts/clang/host/linux-x86/clang-4393122/bin/clang++” I get the expected no input files error.
What gives? Any ideas?
Thanks,
Mike