brew install rust (error installing rust) #1848
Replies: 6 comments 13 replies
-
|
To avoid having to make wild-ass guesses, please post:
|
Beta Was this translation helpful? Give feedback.
-
|
It's impossible to know without seeing the error. |
Beta Was this translation helpful? Give feedback.
-
|
"The issue is likely that the cmath file is including the wrong version of math.h based on the search order of the header files" Still looking into which of the answers there might solve it for me, I think I need more info on what homebrew does to manage the search order of the header files. Also look at #969 (comment), two potential ways to work around a dependency on rust after installing rust using https://rustup.rs. |
Beta Was this translation helpful? Give feedback.
-
|
I ran into similar rust and dependency installation problems that stemmed from some cmath related issue. I just wanted to report that I was successfull in getting rust to upgrade from 1.47.0 -> 1.55.0 on High Sierra (MacOS 10.13.6). I had to manipulate the file:
a couple of times. Once to get past an earlier brew failure for a different module. The other change was to replace:
with
But that later caused rust compilation to fail mysteriously, so I changed it back to get it to work. While troubleshooting, I did the following in an attempt to compile it manually and insert environment variables to produce more verbose output. Go to directory: Untar the file xxxxx--rustc-1.55.0-src.tar.gz Then navigated to I probably missed out on the other post install instructions in the Result: $brew info rust
rust: stable 1.55.0, HEAD
Safe, concurrent, practical language
https://www.rust-lang.org/
/usr/local/Cellar/rust/1.47.0 (12,057 files, 580.6MB)
Poured from bottle on 2021-02-14 at 21:34:26
/usr/local/Cellar/rust/1.55.0 (29,361 files, 704.3MB) *
Built from source
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/rust.rb
License: Apache-2.0 or MIT
==> Dependencies
Build: cmake ✔, ninja ✔, python@3.9 ✔
Required: libssh2 ✔, openssl@1.1 ✔, pkg-config ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 38,863 (30 days), 91,061 (90 days), 270,176 (365 days)
install-on-request: 24,594 (30 days), 47,565 (90 days), 148,019 (365 days)
build-error: 0 (30 days)Now qt upgrade 5.15.2 -> 6.1.3 is failing but that's another story. |
Beta Was this translation helpful? Give feedback.
-
|
Linuxbrew, installed rust 1.62.0 x86_64. |
Beta Was this translation helpful? Give feedback.
-
|
I'v install rust@1.74 with llvm@15 on macos 10.13. "-o" "/private/tmp/rust-20260228-44768-s8aiyx/rustc-1.83.0-src/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_driver-f95b5e658c91b7ee.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-Wl,-install_name" "-Wl,@rpath/librustc_driver-f95b5e658c91b7ee.dylib" "-nodefaultlibs" "-Wl,-rpath,@loader_path/../lib"
= note: Undefined symbols for architecture x86_64:
"vtable for std::__1::basic_ostringstream, std::__1::allocator >", referenced from:
__ZNSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEC1B8ne180100Ev in librustc_codegen_llvm-ca4c576b704b5d25.rlib(7372e21ddc8be4fd-PassWrapper.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"std::__1::basic_stringbuf, std::__1::allocator >::str() const", referenced from:
_LLVMRustPrintTargetCPUs in librustc_codegen_llvm-ca4c576b704b5d25.rlib(7372e21ddc8be4fd-PassWrapper.o)
"VTT for std::__1::basic_ostringstream, std::__1::allocator >", referenced from:
_LLVMRustPrintTargetCPUs in librustc_codegen_llvm-ca4c576b704b5d25.rlib(7372e21ddc8be4fd-PassWrapper.o)
__ZNSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEC1B8ne180100Ev in librustc_codegen_llvm-ca4c576b704b5d25.rlib(7372e21ddc8be4fd-PassWrapper.o)
std::__1::basic_ostringstream, std::__1::allocator >::~basic_ostringstream() in librustc_codegen_llvm-ca4c576b704b5d25.rlib(7372e21ddc8be4fd-PassWrapper.o)
"vtable for std::__1::basic_stringbuf, std::__1::allocator >", referenced from:
_LLVMRustPrintTargetCPUs in librustc_codegen_llvm-ca4c576b704b5d25.rlib(7372e21ddc8be4fd-PassWrapper.o)
__ZNSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEC1B8ne180100Ev in librustc_codegen_llvm-ca4c576b704b5d25.rlib(7372e21ddc8be4fd-PassWrapper.o)
std::__1::basic_ostringstream, std::__1::allocator >::~basic_ostringstream() in librustc_codegen_llvm-ca4c576b704b5d25.rlib(7372e21ddc8be4fd-PassWrapper.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `rustc_driver` (lib) due to 1 previous error
Who can share the experiments of build recently new rust on this ancient macos :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I m trying to install EFL but when brew tries to install rust one of the dependencies of EFL , it throws an error.
Does anyone know why this might be happening?
A help will be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions