Closed juanitotc closed 6 days ago
As far as I can tell, this is pthread_create
returning EAGAIN
, which the man page says:
EAGAIN A system-imposed limit on the number of threads was encountered. There are a number of limits that may trigger
this error: the RLIMIT_NPROC soft resource limit (set via setrlimit(2)), which limits the number of processes and
threads for a real user ID, was reached; the kernel's system-wide limit on the number of processes and threads,
/proc/sys/kernel/threads-max, was reached (see proc(5)); or the maximum number of PIDs, /proc/sys/kernel/pid_max,
was reached (see proc(5)).
What does ulimit -a
say on your pi?
Also, just to make sure, are you aware that we distribute binary artifacts that you can pull down and use instead of bootstrapping your own toolchain?
Thanks for the suggestions - ulimit is not available on this distro (provided by bash-completions?).
Anyway, I tried again without doing anything different and rust built without errors - I lost the ssh connection to the RPi4 part way through and had to restart the build, perhaps this helped?
Building rustc-1.81.1 natively on an RPi4 using llvm-19.1.0/clang-19.1.0 fails with the error below.
Note that I have tried the various sed commands suggested here also https://linuxfromscratch.org/blfs/view/svn/general/rust.html rustc-ice-2024-09-24T15_55_55-13515.txt
error log attached
Meta
rustc --version --verbose
:Backtrace
```
```