void-linux / void-linux/void-packages

GCC cannot be cross-compiled to armv5tel

Open
#58,294 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-testing
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Is this a new report?

Yes

System Info

Void 6.12.63_1 x86_64 GenuineIntel uptodate r

Package(s) Affected

gcc-14.2.1+20250405_4

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

Proper build without issues. GCC cross-compiles to armv5tel-musl without issue, but musl1.1 not optimal for me.

Actual behaviour

After completing the pre-build hooks, the gcc build fails during the do_build stage, noting

configure: error: in '/builddir/gcc-14.2.1+20250405/build/fixincludes':
configure: error: C preprocessor "arm-linux-gnueabi-cpp" fails sanity check
Steps to reproduce
  1. clone this repo
  2. run ./xbps-src binary-bootstrap
  3. run ./xbps-src -a armv5tel pkg gcc
  4. fails during configure stage

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with ./xbps-src binary-bootstrap followed by ./xbps-src -a armv5tel pkg gcc, and inspect the gcc build's do_build/configure output around the fixincludes directory. Done means the gcc package builds successfully for armv5tel without the arm-linux-gnueabi-cpp sanity-check failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, shell
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.