其他分享
首页 > 其他分享> > android – GCC认为我正在运行x86

android – GCC认为我正在运行x86

作者:互联网

我正在尝试在Linux Mint 15上编译Cyanogenmod.并收到以下错误.

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

我无法弄清楚造成这种情况的原因.我正在进行64位安装.请指教.

benji@ultranoid ~/Source $uname -p
x86_64

解决方法:

解决方法

评论prebuilts / tools / gcc-sdk / gcc的第23-38行

示例:http://pastebin.com/qH0BYcSF

标签:android,gcc,64bit,cyanogenmod
来源: https://codeday.me/bug/20190718/1492968.html