[llvm-dev] ld.lld fails with "undefined symbol: _fopen" on macOS, while working as expected on Linux
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Fri Jun 7 14:07:11 PDT 2019
On Fri, 7 Jun 2019 at 13:44, Ivan Medoedov <ivan.medoedov at gmail.com> wrote:
> I have a silly question: where can I download the mentioned zip file with all bin, lib, and include files for x64 Linux target?
There's no official source really. Systems can vary so much that it's
probably best to take it from the system you're cross-compiling for.
> So far I've been copying files one by one (/lib64/ld-linux-x86-64.so.2 /usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o, etc) and it's been a painful process.
I'd probably tar up all of /usr/lib, /usr/include, and /lib rather
than copying them one at a time. For many use-cases that would be
enough, but if you've got a build-system that uses pkg-config or
something things rapidly get harder.
More information about the llvm-dev