Skip to content

archive-proxy is compiled for the host architecture and not the target architecture #10965

@cmacknz

Description

@cmacknz

The binary at https://github.com/elastic/elastic-agent/tree/main/wrapper/windows/archive-proxy is compiled for the wrong architecture and ends up not being executable when trying to install Elastic Agent on a Windows X86 machine when cross compiling from an ARM Mac.

# On an M4 Mac
EXTERNAL=true SNAPSHOT=true PACKAGES=zip PLATFORMS=windows/amd64 mage package
~/Downloads/rdp_share/elastic-agent-9.2.1-SNAPSHOT-windows-x86_64 ······································ 03:49:40 PM
❯ file elastic-agent.exe
elastic-agent.exe: PE32+ executable (console) Aarch64, for MS Windows
~/Downloads/rdp_share/elastic-agent-9.2.1-SNAPSHOT-windows-x86_64 ······································ 03:49:45 PM
❯ file data/elastic-agent-c2c359/elastic-agent.exe
data/elastic-agent-c2c359/elastic-agent.exe: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions