google / google/oss-fuzz

helper: build_image on ARM does not add the --platform=linux/amd64 flag by default

Open
#13,208 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
12.7k
Forks
2.9k
Avg merge
2d 2h
Merged PRs (30d)
62

Description

This will cause the build_image on ARM architecture (like Mac) to default to an arm64 image.
Will be fixed and tested next week.

Quick (temporary) fix:
Add this snippet on line 670 in helper.py
```python
if architecture == 'x86_64':
build_args += ['--platform', 'linux/amd64']
```

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

Review helper.py around line 670 and the build_image entry point. Verify the reported ARM behavior and confirm the change is tested as promised; done means ARM builds use the intended linux/amd64 platform by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.