- 
                Notifications
    
You must be signed in to change notification settings  - Fork 198
 
Open
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane teambugSomething isn't workingSomething isn't working
Description
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 WindowsMetadata
Metadata
Assignees
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane teambugSomething isn't workingSomething isn't working