semarie / build-rust

Script helper for building rustc and cargo from source on OpenBSD (without rustup)
59 stars 15 forks source link

devel/ccache needs to be installed for a successful build. #5

Closed ltratt closed 7 years ago

ltratt commented 7 years ago

Without this, one gets errors like:

  = note: /home/ltratt/tmp/build-rust/build_dir/bin/cc[2]: ccache: not found

when building beta

semarie commented 7 years ago

no. it should be a different problem.

it already exists a ccache variable (in .build-rust.conf) which controls:

do you have a ccache entry in your ~/.build-rust.conf ? if yes, what is the content exactly ?

could you tell me at which step (configuring rust ? cargo ?) the error appears ?

ltratt commented 7 years ago

Aha, I needed to rerun ./build.sh init in order to have ccache installed (I guess it wasn't part of the list of things needed when I last ran it). So problem solved. I wonder if ./build.sh should check that the packages it needs are installed when one runs build? That way, if new packages are added in the future, users will be warned. Still, it might be impossible to catch all of these.