rustup: error: 'sysinfo not supported on this platform' in FreeBSD

Problem

Hi there, there is some problems when installing and running Rust in FreeBSD. I’ve already tried that on my son’s laptop.

When installing rust via the command show in official website:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

It prints out many error: 'sysinfo not supported on this platform' in FreeBSD. When I add some components, it also show that error like below:

screenshot-2021-01-06_12:58:20


After installing, can compile and run rust code with no any problem. But I installed cargo-watch as well, and it delay a few seconds to detect the file change, no sure relate the above error or not 😃


uname -a output in his laptop:

FreeBSD mike-bsd 13.0-CURRENT FreeBSD 13.0-CURRENT #0 main-c255460-g282381aa53a: Thu Dec 31 06:08:47 UTC 2020     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

Notes

Output of rustup --version:

rustup 1.23.1 (3df2264a9 2020-11-30)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.49.0 (e1884a8e3 2020-12-29)`

Output of rustup show:

Default host: x86_64-unknown-freebsd
rustup home:  /home/mike/.rustup

stable-x86_64-unknown-freebsd (default)
rustc 1.49.0 (e1884a8e3 2020-12-29)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (9 by maintainers)

Commits related to this issue

Most upvoted comments

rustup 1.24.3 still has this error, please release a new version soon, thanks!

Hi. What’s the timeline on a new release (e.g., a 1.24.4) that includes this fix? It is the number one source of reported confusion we get from illumos users and I assume from users on other platforms like FreeBSD.

@jclulow I’ve had a pretty mad year, but I’m starting to work through the bits left before I can do a release. My hope is “pretty soon” for an unquantifiable value of that.

See also: #2774