On 04/15/2018 11:14 AM, baldu...@units.it wrote:
hi,
There remains to understand why Bruce has an error with libffi. There is no
mention of libffi in my rust build log.
I routinely build rustc vs system llvm
I had no problems building rustc-1.25.0 vs llvm-6.0
I saw the "undefined symbol: ffi_type_float" error quite a long ago with
1.17.0 and it was fixed by:
export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
Well that fixed it for me. Adding that to the book would be harmless if
it is not needed. The issue now is why some need it and others do not.
I wonder if others are returning something different for
llvm-config. I'm not sure what parameters are but a grep of the rustc
source gives:
llvm-config --cxxflags --ldflags --system-libs --libs core orc native
llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native
llvm-config --libs all
and others
My system for 'llvm-config --libs all' gives -lLLVM-6.0
I have:
$ ldd /usr/lib/libLLVM-6.0.so
linux-vdso.so.1 (0x00007ffe50da7000)
libffi.so.6 => /usr/lib/../lib/libffi.so.6 (0x00007f06085c0000)
...
so I would think that the system would pick up libffi from that.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page