[MacPorts] #62655: rust @1.51.0_1 fails to build under macOS 11.2.3 :info:destroot = note: Undefined symbols for architecture arm64
MacPorts
noreply at macports.org
Sun Apr 11 12:58:31 UTC 2021
#62655: rust @1.51.0_1 fails to build under macOS 11.2.3 :info:destroot = note:
Undefined symbols for architecture arm64
---------------------+----------------------
Reporter: ehjmx | Owner: g5pw
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: big sur
Port: rust |
---------------------+----------------------
Comment (by herbygillot):
OK, so I just gained access temporarily to an M1 machine and was able to
install Rust 1.51.0 from scratch without issue:
{{{
---> No broken files found.
---> No broken ports found.
---> Some of the ports you installed have notes:
libpsl has the following notes:
libpsl API documentation is provided by the port 'libpsl-docs'.
python39 has the following notes:
To make this the default Python or Python 3 (i.e., the version run by
the 'python' or 'python3' commands), run one or both of:
sudo port select --set python python39
sudo port select --set python3 python39
% rustc --version
rustc 1.51.0
% file `which rustc`
/opt/local/bin/rustc: Mach-O 64-bit executable arm64
% otool -L `which rustc`
/opt/local/bin/rustc:
@rpath/librustc_driver-94d9528ffe19d5b1.dylib (compatibility
version 0.0.0, current version 0.0.0)
@rpath/libstd-fb33074c74598e54.dylib (compatibility version 0.0.0,
current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1292.60.1)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
version 904.4.0)
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current
version 1.0.0)
}}}
According to your log file, the problem you're having is in compiling
`rls`; Rust itself (`rustc`) and its standard library have built just
fine.
`rls` requires OpenSSL, but on your system for some reason, it's also
looking for symbols in `libssh2`.
I don't know why, but perhaps it may have to do with custom variants
you've set while installing ports on your system.
I would first try to rebuild `libssh2` from scratch.
{{{
sudo port uninstall libssh2
sudo port build libssh2
sudo port install libssh2
}}}
The ideal thing afterwards would be to rebuild `openssl` as well.
--
Ticket URL: <https://trac.macports.org/ticket/62655#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list