Skip to content

Link failed due to the unknown "default" #692

Description

@YellowRiver6

What happened

compile my repo "Funkin-Online-Server-Perry" using perry but link failed

What you expected

I want to know what these "default" are.

Minimal reproduction

In my repo

Command you ran:

perry compile src/index.ts -o main

Environment

  • Perry version: 0.5.585
  • Host OS: Ubuntu 26.04
  • Target: native
  • Rust toolchain (if building from source): stable 1.95.0
  • Installed via: from source

Diagnostic output

Using V8 JavaScript runtime for JS module support
/usr/bin/x86_64-linux-gnu-ld.bfd: network_database_ts.o: in function `perry_closure_network_database_ts__342':
perry_llvm_20081_1778514024088078839.ll:(.text+0x3af81): undefined reference to `default'
/usr/bin/x86_64-linux-gnu-ld.bfd: network_database_ts.o: in function `perry_closure_network_database_ts__480':
perry_llvm_20081_1778514024088078839.ll:(.text+0x5367c): undefined reference to `default'
collect2: error: ld returned 1 exit status
Error: Linking failed

Anything else

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed defect or regression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions