androidgcc64-bitcyanogenmod

GCC thinks I'm running x86


I am trying to compile Cyanogenmod on Linux Mint 15. And receive the following error.

host StaticLib: libmincrypt (/home/benji/Source/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
ERROR: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-ar only run on 64-bit linux
make: *** [/home/benji/Source/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a] Error 1
make: *** Waiting for unfinished jobs....
# In case value of PACKAGES is empty.

-

benji@ultranoid ~/Source/prebuilts/tools/gcc-sdk $ ./gcc
ERROR: ./../../gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-gcc only run on 64-bit linux

I can't figure out what is causing this. I am on a 64 bit install. Please advise.

benji@ultranoid ~/Source $ uname -p
x86_64

Solution

  • Workaround

    Comment out lines 23-38 of prebuilts/tools/gcc-sdk/gcc

    Example: http://pastebin.com/qH0BYcSF