Skip to content

crash: Fix cross compilation for 32-bit arm - #411

Closed
Jose Quaresma (quaresmajose) wants to merge 1 commit into
qualcomm-linux:mainfrom
quaresmajose:crash
Closed

Jose Quaresma (quaresmajose) wants to merge 1 commit into
qualcomm-linux:mainfrom
quaresmajose:crash

Conversation

@quaresmajose

@quaresmajose Jose Quaresma (quaresmajose) commented Aug 4, 2026

Copy link
Copy Markdown
Member

The upstream crash Makefile CONF_TARGET_ARCH mapping (used when CROSS_COMPILE is set) enumerates most of OE supported arches but omits 32-bit arm. Building with CROSS_COMPILE=arm-* therefore aborts at Makefile parse time:

Makefile:75: *** The current Arch(arm) does not support cross compilation.  Stop.

ARM is already a valid crash target (defs.h/configure.c), so add a patch mapping the normalized "arm" arch to CONF_TARGET_ARCH=ARM like every other supported arch.

Verified by cross building crash for qemuarm (arm-yoe-linux-gnueabi-):

Backport from meta-oe 63a529202

The upstream crash Makefile CONF_TARGET_ARCH mapping (used when
CROSS_COMPILE is set) enumerates most of OE supported arches
but omits 32-bit arm. Building with CROSS_COMPILE=arm-*
therefore aborts at Makefile parse time:

    Makefile:75: *** The current Arch(arm) does not support cross compilation.  Stop.

ARM is already a valid crash target (defs.h/configure.c), so add a patch
mapping the normalized "arm" arch to CONF_TARGET_ARCH=ARM like every
other supported arch.

Verified by cross building crash for qemuarm (arm-yoe-linux-gnueabi-):

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Cc: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>

Backport from meta-oe 63a529202

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
@quaresmajose

Copy link
Copy Markdown
Member Author

Can we merge this?

The qcom-armv8a/qcom-distro-catchall fails is unreated to this change and it is due to qualcomm-linux/meta-qcom#2871

@ricardosalveti

Copy link
Copy Markdown
Contributor

How didn't we catch this issue before bumping meta-oe?

@quaresmajose

Jose Quaresma (quaresmajose) commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

How didn't we catch this issue before bumping meta-oe?

Good question, but I don't have the answer. This problem appeared to me when proposing the world build of meta-qcom-distro in qualcomm-linux/meta-qcom#2199.

@ricardosalveti

Copy link
Copy Markdown
Contributor

How didn't we catch this issue before bumping meta-oe?

Good question, but I don't have the answer. This problem appeared to me when proposing the world build of meta-qcom-distro in qualcomm-linux/meta-qcom#2199.

It is happening with other meta-qcom-distro PRs as well, so not really related to world build.

@ricardosalveti

Copy link
Copy Markdown
Contributor

How didn't we catch this issue before bumping meta-oe?

Good question, but I don't have the answer. This problem appeared to me when proposing the world build of meta-qcom-distro in qualcomm-linux/meta-qcom#2199.

qualcomm-linux/meta-qcom#2878

world for armv7 was removed in meta-qcom (by mistake, as catchall is not supported for it) but not from meta-qcom-distro, so that is why we are only seeing this failure here.

Moved your patch to meta-qcom since the recipe that is bringing the crash dependency is initramfs-test-full-image, available in meta-qcom (but only used when meta-oe is available).

@quaresmajose

Copy link
Copy Markdown
Member Author

How didn't we catch this issue before bumping meta-oe?

Good question, but I don't have the answer. This problem appeared to me when proposing the world build of meta-qcom-distro in qualcomm-linux/meta-qcom#2199.

qualcomm-linux/meta-qcom#2878

world for armv7 was removed in meta-qcom (by mistake, as catchall is not supported for it) but not from meta-qcom-distro, so that is why we are only seeing this failure here.

Moved your patch to meta-qcom since the recipe that is bringing the crash dependency is initramfs-test-full-image, available in meta-qcom (but only used when meta-oe is available).

I had forgotten about that change to reduce the number of world builds.
Good catch by the way.

Closed in favor of qualcomm-linux/meta-qcom#2878

Ricardo Salveti (ricardosalveti) added a commit to qualcomm-linux/meta-qcom that referenced this pull request Aug 5, 2026
Re-enable world build for qcom-armv7 (which got disabled by mistake as
part of
bf4b626),
and bring the crash related fix from
qualcomm-linux/meta-qcom-distro#411 as
initramfs-test-full-image depends on it (when meta-oe is available).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants