build android error : prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 88: read: Illegal option -d

26 views
Skip to first unread message

sunb...@gmail.com

unread,
Apr 25, 2016, 10:08:39 AM4/25/16
to Android Building
Hi guys,
     In the very beginning , I have build android basing on branch Android-6.0.1_r30 , and every thing is OK. 
     After modified some code, I can still build android by: make -j3.
     However , when I tried make -B -j3, this time, it just got wrong:
host C++: libutils <= system/core/libutils/BasicHashtable.cpp
prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 88: read: Illegal option -d
host C++: libutils <= system/core/libutils/CallStack.cpp
prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 88: read: Illegal option -d
host C++: libutils <= system/core/libutils/FileMap.cpp
prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 88: read: Illegal option -d
host C++: libutils <= system/core/libutils/JenkinsHash.cpp
prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 88: read: Illegal option -d
analyzer++analyzer++: : analyzer++error: unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'error: : unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'
error: analyzer++
unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'
analyzer++: analyzer++analyzer++: : error: error: : unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'error: 
error: unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'

analyzer++
: error: analyzer++analyzer++unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/': : analyzer++error: error: 
unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/': 
error: 
analyzer++unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'
: error: unsupported option '--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/'
prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 116: test: -ge: unexpected operator
make: *** [/home/sun/android_build/master//source_mashmallo/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/JenkinsHash.o] Error 1prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 116: test: -ge: unexpected operatorprebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 116: test: 
-ge: unexpected operator

make: *** Waiting for unfinished jobs....
make: *** [/home/sun/android_build/master//source_mashmallo/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/BasicHashtable.o] Error 1
prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax: 116: test: make: -ge: unexpected operator
*** [/home/sun/android_build/master//source_mashmallo/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/FileMap.o] Error 1
make: *** [/home/sun/android_build/master//source_mashmallo/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/CallStack.o] Error 1


And I have never modified prebuilts/misc/linux-x86/analyzer/bin/cxx-syntax or code under system/.

Any idea?

thanks
Reply all
Reply to author
Forward
0 new messages