make build of aarch64 linux/linux-esx packages fail due to gcc 12.5.0 / binutils 2.46.1 requirements

Open Beginner friendly
#1,682 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
linux

Research direction

Start with config_aarch64 and config-esx_aarch64, then review the 5.0 aarch64 make build and the config-applicability check described in the issue. Confirm the RELR-related symbols are represented in both configs and rerun the aarch64 build; done means the package build succeeds without the workaround script.

Written by the indexing model from the issue text.

Description

bug
Describe the bug

Hi @vbrahmajosyula1, Hi @sshedi ,

Since 5fce7ef, Photon 5 builds with gcc 12.5.0 and binutils 2.46.1.

GNU ld 2.46 advertises RELR support, so olddefconfig adds CONFIG_TOOLS_SUPPORT_RELR=y and CONFIG_RELR=y. Those two entries must be in the aarch64 configs (config_aarch64, config-esx_aarch64);

CONFIG_ARCH_HAS_RELR and CONFIG_CC_HAS_ASM_INLINE are already set. With the new symbols present, %prep’s config-applicability diff is a no-op.

Reproduction steps

5.0 aarch64 make build

Expected behavior

successful 5.0 aarch64 make build

Additional context

The following workaround patches config-esx_aarch64and config_aarch64.
fix-photon-aarch64-relr-config.sh

Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

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.

More from vmware/photon

All issues in vmware/photon

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.