2014-11-11 16:49 GMT+08:00 Geek Till It Hertz <
sahaj...@gmail.com>:
> thnx
> i had deleted the source fearing it might have downloaded improperly
No need to delete it.
Just 'repo sync' until there is no error.
> will resync useing source forge ang get back
Sorry the sourceforge mirror is not updated.
Don't use it now.
To be honest, I have seen this error once before
releasing test. But it disappeared after I re-open
a clean build environment.
So I'm not sure what's wrong.
Basically speaking, you should use
. build/envsetup.sh; lunch android_x86-userdebug
to prepare your build environment.
After lunch command, the toolchain path should be
added to your PATH variable.
You can check if the toolchain gcc is runnable.
If not, there is something wrong in your build environment.
$ . build/envsetup.sh; lunch android_x86-userdebug
including device/generic/x86/vendorsetup.sh
including device/generic/x86_64/vendorsetup.sh
including sdk/bash_completion/adb.bash
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0
TARGET_PRODUCT=android_x86
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86
TARGET_ARCH_VARIANT=x86
TARGET_CPU_VARIANT=
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-32-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LRX21M
OUT_DIR=out
============================================
$ x86_64-linux-android-gcc -v
Using built-in specs.
COLLECT_GCC=x86_64-linux-android-gcc
COLLECT_LTO_WRAPPER=/home/cwhuang/git/lollipop-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/../libexec/gcc/x86_64-linux-android/4.9/lto-wrapper
Target: x86_64-linux-android
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.9/configure
--prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
--target=x86_64-linux-android --host=x86_64-linux-gnu
--build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld
--enable-languages=c,c++
--with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-mpc=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-cloog=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-isl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-ppl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--disable-ppl-version-check --disable-cloog-version-check
--disable-isl-version-check --enable-cloog-backend=isl
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic
-lm' --disable-libssp --enable-threads --disable-nls
--disable-libmudflap --disable-libgomp --disable-libstdc__-v3
--disable-sjlj-exceptions --disable-shared --disable-tls
--disable-libitm --with-arch=x86-64 --with-tune=intel
--with-fpmath=sse --with-multilib-list=m32,m64,mx32
--enable-initfini-array --disable-nls
--prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
--with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot
--with-binutils-version=2.24 --with-mpfr-version=3.1.1
--with-mpc-version=1.0.1 --with-gmp-version=5.0.5
--with-gcc-version=4.9 --with-gdb-version=7.6
--with-python=/usr/local/google/home/andrewhsieh/mydroid/ndk/prebuilt/linux-x86_64/bin/python-config.sh
--with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.9
--with-bugurl=
http://source.android.com/source/report-bugs.html
--disable-bootstrap --disable-libquadmath --enable-plugins
--enable-libgomp --disable-libcilkrts --disable-libsanitizer
--enable-gold --enable-graphite=yes --with-cloog-version=0.18.0
--with-isl-version=0.11.1 --enable-eh-frame-hdr-for-static
--program-transform-name='s&^&x86_64-linux-android-&'
--enable-gold=default
Thread model: posix
gcc version 4.9 20140514 (prerelease) (GCC)