简体   繁体   English

32 位构建于 64 位 Linux

[英]32-bit Build on 64-bit Linux

I want to build my recipe into 32bit binary on 64bit system, I have Multilib enabled:我想在 64 位系统上将我的食谱构建为 32 位二进制文件,我启用了 Multilib:

multilib configuration add in local.conf:

MACHINE = "ti-am335x"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

Infomation:

Build Configuration:
WRLINUX_VERSION      = "10.19.45.22"
WRLINUX_BRANCH       = "LTS"
BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
DISTRO               = "openwrt"
DISTRO_VERSION       = "1.0"
MACHINE              = "ti-am335x"
DEFAULTTUNE          = "cortexa8thf-neon"
TARGET_SYS           = "arm-wrs-linux-musleabi"
TUNE_FEATURES        = "arm vfp cortexa8 neon thumb callconvention-hard"
TARGET_FPU           = "hard"

The potential multilibs are listed in the AVAILTUNES declaration. For qemu86-64 BSP, that value equals the following.

bitbake -e mozjpegcjpeg | grep ^AVAILTUNES bitbake -e mozjpegcjpeg | grep ^AVAILTUNES AVAILTUNES=" x86 x86-64 " bitbake -e mozjpegcjpeg | grep ^AVAILTUNES AVAILTUNES=" x86 x86-64 "

I have followed the steps to enable multilib, but it shows this error : Document: https://docs.windriver.com/bundle/Wind_River_Linux_Platform_Developers_Guide_9_1/page/fau1551818735785.html我已按照步骤启用 multilib,但它显示此错误:文档: https://docs.windriver.com/bundle/Wind_River_Linux_Platform_Developers_Guide_9_1/page/fau1551818735785.html

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Toolchain tunings invalid:
Tuning 'x86' has no defined features, and cannot be used.

your你的

MACHINE=ti-am335x机器=ti-am335x

is not pointing to a x86 architectur不指向 x86 架构师

rebuild your toolchain when using something like使用类似的东西时重建你的工具链

MACHINE=qemux86机器=qemux86

there are also meta-layers for higher intel or amd cpus还有用于更高英特尔或 AMD CPU 的元层

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM