-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ld: symbol(s) not found for architecture i386 #1020
Comments
Possibly LLVM isn't compiled for 32-bit, or maybe configure is picking up the wrong LLVM install.
The getting started page on the wiki has some specific flags for configuring LLVM. You may want to confirm that LLVM is built correctly. |
Thanks, that doc helps a lot. Homebrew can build a universal LLVM, but it will be LLVM v2.8.
If Rust could compile with LLVM v2.8, everything would be peachy. |
Use '-arch i386 -arch x86_64' in place of '-m32' when configuring llvm and it should build universally for you. |
I tried |
@mcandre Use them in place of '-m32' in the CFLAGS etc. for the configure command from the wiki page:
|
|
We are building our own LLVM libs now, this should be obsolete (I think). Closing. |
Update RLS and Rustfmt RLS * Allow project model to download crates ([#1020](rust-lang/rls#1020)) * Support simple external builds ([#988](rust-lang/rls#988)) * Support using external Rustfmt ([#990](rust-lang/rls#990)) Rustfmt (0.99.4) * Format chains with comment ([#2899](https://github.com/rust-lang-nursery/rls/pull/2899)) * Do not show wildcard pattern in slice pattern ([#2912](https://github.com/rust-lang-nursery/rls/pull/2912)) * Impl only use ([#2951](https://github.com/rust-lang-nursery/rls/pull/2951)) * ... and [more](rust-lang/rustfmt@5c9a2b6...1c40881) Bumped in tandem to pull a single version of `rustc-ap-*` libs. r? @nrc
Currently it's not possible to dump llvm-ir in release build. With this patch we allow it with `--emit llvm-ir`. In debug build we dump clif always as before. Fixes rust-lang#1020
Specs:
LLVM 3.0 SVN
Mac OS X 10.7.1 Lion
$ ./configure
...
$ make
...
"_LLVMWriteBitcodeToFile", referenced from:
-exported_symbol[s_list] command line option
"_LLVMWriteBitcodeToFileHandle", referenced from:
-exported_symbol[s_list] command line option
"_LLVMX86FP80Type", referenced from:
-exported_symbol[s_list] command line option
"_LLVMX86FP80TypeInContext", referenced from:
-exported_symbol[s_list] command line option
"_LLVMX86MMXType", referenced from:
-exported_symbol[s_list] command line option
"_LLVMX86MMXTypeInContext", referenced from:
-exported_symbol[s_list] command line option
"_LLVMConstNamedStruct", referenced from:
-exported_symbol[s_list] command line option
"_LLVMStructCreateNamed", referenced from:
-exported_symbol[s_list] command line option
"_LLVMStructSetBody", referenced from:
-exported_symbol[s_list] command line option
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make: *** [rustllvm/librustllvm.dylib] Error 1
The text was updated successfully, but these errors were encountered: