Skip to content

Cannot cross compile for linux from windows #25346

@Razzile

Description

@Razzile

What version of Bun is running?

1.3.3

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

Repro steps:

  1. Install bun locally with npm
  2. create a basic js file call index.js in project root
  3. run npx bun build ./index.js --compile --target=bun-linux-x64 --outfile ./build/test --minify --sourcemap
  4. observe the below error
  [16ms]  minify
   [1ms]  bundle  1 modules
Failed to extract executable for 'bun-linux-x64-v1.3.3'. The download may be incomplete.

I couldn't find any info about this error online. Seems it doesn't occur often?

What is the expected behavior?

bun should cross compile for linux successfully

What do you see instead?

No response

Additional information

No response

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