Skip to content

linux: Linker error for remote_server when using script/install-linux #24880

@mosenturm

Description

@mosenturm

Summary

linux: Linker error for remote_server when using script/install-linux

Steps to trigger the problem:
After fresh git pull

  1. run script/linux
  2. run script/install-linux
  3. linker error at the end of the script for remote_server
error: linking with `cc` failed: exit status: 1 ... 
= note: /usr/bin/ld: /tmp/rustcISMaod/libaws_lc_sys-79f08eb6d32e546e.rlib(f8e4fd781484bd36-bcm.o): in function `aws_lc_0_25_0_handle_cpu_env':
          /aws-lc/crypto/fipsmodule/cpucap/cpu_intel.c:(.text.aws_lc_0_25_0_handle_cpu_env+0x63): undefined reference to `__isoc23_sscanf'
          /usr/bin/ld: /tmp/rustcISMaod/libaws_lc_sys-79f08eb6d32e546e.rlib(f8e4fd781484bd36-bcm.o): in function `pkey_rsa_ctrl_str':
          /aws-lc/crypto/fipsmodule/evp/p_rsa.c:741:(.text.pkey_rsa_ctrl_str+0x20d): undefined reference to `__isoc23_strtol'
          /usr/bin/ld: /aws-lc/crypto/fipsmodule/evp/p_rsa.c:752:(.text.pkey_rsa_ctrl_str+0x258): undefined reference to `__isoc23_strtol'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

error: could not compile `remote_server` (bin "remote_server") due to 1 previous error

Actual Behavior:
Linker errors: look at https://discord.com/channels/869392257814519848/1204679850208657418/1339566403497365596

Expected Behavior:
no linker errors

Zed Version and System Specs

Ubuntu 24.04.01

$ apt list --installed | grep musl
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
musl-dev/noble,now 1.2.4-2 amd64  [installiert]
musl-tools/noble,now 1.2.4-2 amd64  [installiert]
musl/noble,now 1.2.4-2 amd64  [Installiert,automatisch]

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:linuxhappens only on linux, not other OS

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions