Displaying 2 results from an estimated 2 matches for "jcstest".
2020 Apr 08
3
Building libjpeg-turbo with LTO
Hi,
I have tried to build libjpeg-turbo
<https://github.com/libjpeg-turbo/libjpeg-turbo> with LTO in LLVM, using
both clangbut get many errors in lld that look like the following:
ld: error: undefined symbol: jpeg_std_error
>>> referenced by jcstest.c:76
>>> lto.tmp:(main)
ld: error: undefined symbol: jpeg_CreateCompress
>>> referenced by jcstest.c:86
>>> lto.tmp:(main)
ld: error: undefined symbol: jpeg_set_defaults
>>> referenced by jcstest.c:88
>>> lto.t...
2020 Apr 09
3
Building libjpeg-turbo with LTO
Adding a couple of lld folks.
I helped Shishir debug this, the link line looked like:
/home/sjessu/build/bin/clang -O0 -flto -o jcstest jcstest.o
./.libs/libjpeg.a
and the issue was that libjpeg.a was created with the system ar instead of
llvm-ar. It worked when recreating libjpeg.a with llvm-ar.
I noticed that the lld code has some special handling for the case
when there is a missing symbol table, which often happens with syste...