pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rust-bin fails to build on macOS 15 x86-64



I have a normal 2019ish mac running macOS 15, Darwin 24.6.0 (one behind,
still supported).  I'm doing pkg_rr for the branch and mostly things
build, as usual.

lang/rust-bin fails to build.  I'm unclear on if this rust judgement vs
pkgsrc judgement and it needs an override, or something else, not being
an expert on rust or mac.

It sems that it fails also on SunOS, and that there are no published builds on
Darwin x86_64.



=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for rust-bin-1.96.1/rust-1.96.1-x86_64-apple-darwin.tar.gz
=> Checksum SHA512 OK for rust-bin-1.96.1/rust-1.96.1-x86_64-apple-darwin.tar.gz
===> Installing dependencies for rust-bin-1.96.1
=> Tool dependency mktools-[0-9]*: found mktools-20250213
=> Tool dependency bash-[0-9]*: found bash-5.3.20
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
===> Checking for vulnerabilities in rust-bin-1.96.1
===> Overriding tools for rust-bin-1.96.1
===> Extracting for rust-bin-1.96.1
===> Patching for rust-bin-1.96.1
===> Creating toolchain wrappers for rust-bin-1.96.1
===> Configuring for rust-bin-1.96.1
=> Checking for portability problems in extracted files
===> Installing for rust-bin-1.96.1
=> Generating pre-install file lists
=> Creating installation directories
cd /opt/n0/pkgsrc/lang/rust-bin/files; pax -rw install.sh /opt/n0/pkgsrc/lang/rust-bin/work/rust-1.96.1-x86_64-apple-darwin
cd /opt/n0/pkgsrc/lang/rust-bin/work/rust-1.96.1-x86_64-apple-darwin && env PKGMANDIR=man bash ./install.sh  --destdir=/opt/n0/pkgsrc/lang/rust-bin/work/.destdir --prefix=/opt/pkg
install: installing component 'rustc'
install: installing component 'rust-std-x86_64-apple-darwin'
install: installing component 'cargo'
install: installing component 'rustfmt-preview'
install: installing component 'rust-analyzer-preview'
install: installing component 'llvm-tools-preview'
install: installing component 'clippy-preview'
install: installing component 'rust-analysis-x86_64-apple-darwin'
install: installing component 'llvm-bitcode-linker-preview'

    rust installed.

/bin/rm -f /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/rust-llvm-dwp
/bin/rm -f /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/install.log
/bin/rm -f /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/manifest-*
/bin/rm -f /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/uninstall.sh
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/cargo-clippy			 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/cargo-clippy;			 done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/clippy-driver			 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/clippy-driver;			 done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/miri			 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/miri;			 done
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/miri (No such file or directory)
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rls			 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rls;			 done
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rls (No such file or directory)
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rust-analyzer			 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rust-analyzer;			 done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rustc			 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rustc;			 done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rustdoc			 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rustdoc;			 done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rustfmt			 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/bin/rustfmt;			 done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/libexec/rust-analyzer-proc-macro-srv		 | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/libexec/rust-analyzer-proc-macro-srv;		 done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/lldb  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/lldb;  done
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/lldb (No such file or directory)
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/lldb-mi  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/lldb-mi;  done
error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/lldb-mi (No such file or directory)
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-nm  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-nm;  done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-objcopy  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-objcopy;  done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-objdump  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-objdump;  done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-profdata  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-profdata;  done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-readobj  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-readobj;  done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-size  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-size;  done
otool -XL /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-strip  | /usr/bin/grep '@rpath' | while read rpath rest; do		 install_name_tool -change $rpath			 `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib,g'`  /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/bin/llvm-strip;  done
for f in /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/lib*.dylib; do		 [ ! -f $f ] && continue;				 install_name_tool -id `echo $f | /opt/pkg/bin/nbsed -e 's,/opt/n0/pkgsrc/lang/rust-bin/work/.destdir,,g'` $f;  otool -XL $f | grep '@rpath' | while read rpath rest; do  install_name_tool -change $rpath  `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  $f;					 done;							 done
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.asan.dylib (for architecture x86_64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.asan.dylib (for architecture x86_64h)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.asan.dylib (for architecture arm64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.lsan.dylib (for architecture x86_64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.lsan.dylib (for architecture x86_64h)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.lsan.dylib (for architecture arm64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.rtsan.dylib (for architecture x86_64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.rtsan.dylib (for architecture x86_64h)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.rtsan.dylib (for architecture arm64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.tsan.dylib (for architecture x86_64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.tsan.dylib (for architecture x86_64h)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/librustc-stable_rt.tsan.dylib (for architecture arm64)
for f in /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/lib*.dylib; do		 [ ! -f $f ] && continue;				 install_name_tool -id `echo $f | /opt/pkg/bin/nbsed -e 's,/opt/n0/pkgsrc/lang/rust-bin/work/.destdir,,g'` $f;  otool -XL $f | grep '@rpath' | while read rpath rest; do  install_name_tool -change $rpath  `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  $f;					 done;							 done
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.asan.dylib (for architecture x86_64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.asan.dylib (for architecture x86_64h)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.asan.dylib (for architecture arm64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.lsan.dylib (for architecture x86_64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.lsan.dylib (for architecture x86_64h)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.lsan.dylib (for architecture arm64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.rtsan.dylib (for architecture x86_64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.rtsan.dylib (for architecture x86_64h)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.rtsan.dylib (for architecture arm64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.tsan.dylib (for architecture x86_64)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.tsan.dylib (for architecture x86_64h)
/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/librustc-stable_rt.tsan.dylib (for architecture arm64)
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: changing install names or rpaths can't be redone for: /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/lib/libstd-c230e80c85060539.dylib (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
for f in /opt/n0/pkgsrc/lang/rust-bin/work/.destdir/opt/pkg/lib/rustlib/x86_64-apple-darwin/codegen-backends/lib*.dylib; do		 [ ! -f $f ] && continue;				 install_name_tool -id `echo $f | /opt/pkg/bin/nbsed -e 's,/opt/n0/pkgsrc/lang/rust-bin/work/.destdir,,g'` $f;  otool -XL $f | grep '@rpath' | while read rpath rest; do  install_name_tool -change $rpath  `echo $rpath | /opt/pkg/bin/nbsed -e 's,@rpath,/opt/pkg/lib,g'`  $f;					 done;							 done
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for rust-bin-1.96.1
=> Checking for non-existent script interpreters in rust-bin-1.96.1
=> Checking file permissions in rust-bin-1.96.1
=> Checking for missing run-time search paths in rust-bin-1.96.1
ERROR: lib/rustlib/x86_64-apple-darwin/lib/libstd-c230e80c85060539.dylib: relative library path: @rpath/libstd-c230e80c85060539.dylib
ERROR: lib/rustlib/x86_64-apple-darwin/lib/libstd-c230e80c85060539.dylib: missing library: @rpath/libstd-c230e80c85060539.dylib
*** Error code 1

Stop.
make[1]: stopped making "package" in /opt/n0/pkgsrc/lang/rust-bin
*** Error code 1

Stop.
make: stopped making "package" in /opt/n0/pkgsrc/lang/rust-bin


Home | Main Index | Thread Index | Old Index