Summary
linux: Linker error for remote_server when using script/install-linux
Steps to trigger the problem:
After fresh git pull
- run script/linux
- run script/install-linux
- 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]
Summary
linux: Linker error for remote_server when using
script/install-linuxSteps to trigger the problem:
After fresh
git pullActual 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