Skip to content

Documentation inconsistency: Windows cross-build instructions do not match current build process #612

@JiriDobrySkodagroup

Description

@JiriDobrySkodagroup

Summary
The Building from Source documentation describes how to cross-compile the toolchain for Windows, but the process no longer works as written in arm-toolchain/blob/arm-software/arm-software/embedded/docs/building-from-source.md
The released versions cannot be built following the documented steps without applying patch 2293b24 (credit to Volodymyr Turanskyy).

Interestingly, this patch is already present on HEAD, so the development branch is currently easier to build than the official release — which is a bit humorous, but confusing for users following the official guide.

To Reproduce

  1. Follow the “Windows cross-build” section in the documentation.
  2. Attempt to build the released version (e.g. 21.1.0 or 21.1.1) using the documented procedure.
  3. Observe that the build fails unless the above patch is applied.

Expected behavior
The released version should build successfully when following the documented steps for Windows cross-compilation.

Actual behavior
The documented cross-build path fails for Windows targets in released versions.
It appears that the nightly Windows builds are produced natively on Windows rather than through the cross-compilation process described in the documentation.

Environment
Arm Toolchain version: 21.1.0 / 21.1.1 (release)
Host: Debian 13 (attempting to cross-build for Windows)

[Additional context]
To prevent future mismatches between the documented process and official releases, it might help to either:

  • add instructions for building natively on Windows (as apparently used in nightly builds), or
  • enable the Windows cross-build path in nightly builds so it remains functional.

Ideally, supporting both approaches would ensure reproducibility and consistency between documentation and releases.

Minor note:

cmake . -DLLVM_TOOLCHAIN_CROSS_BUILD_MINGW=ON

should likely read

cmake .. -DLLVM_TOOLCHAIN_CROSS_BUILD_MINGW=ON

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions