[FFmpeg-devel] Build ffmpeg with clang lto
Adrian Tong
adriantong1024 at gmail.com
Sun Jun 2 21:26:49 EEST 2019
Hi Carl
This is the error message I get. It seems like libavdevice.a is llvm
bitcode.
Thanks
-Adrian
./configure --cc=clang --enable-lto && make -j28
AR libavcodec/libavcodec.a
LD ffmpeg_g
LD ffprobe_g
/usr/bin/ld: skipping incompatible libavdevice/libavdevice.a when searching
for -lavdevice
/usr/bin/ld: cannot find -lavdevice
/usr/bin/ld: skipping incompatible libavfilter/libavfilter.a when searching
for -lavfilter
/usr/bin/ld: cannot find -lavfilter
/usr/bin/ld: skipping incompatible libavformat/libavformat.a when searching
for /usr/bin/ld-lavformat
: skipping incompatible libavdevice/libavdevice.a when searching for
-lavdevice
/usr/bin/ld: cannot find -lavdevice
/usr/bin/ld: skipping incompatible libavfilter/libavfilter.a when searching
for -lavfilter
/usr/bin/ld: cannot find -lavfilter
/usr/bin/ld: skipping incompatible libavformat/libavformat.a when searching
for -lavformat
/usr/bin/ld: skipping incompatible libavcodec/libavcodec.a when searching
for -lavcodec
/usr/bin/ld: skipping incompatible libavcodec/libavcodec.a when searching
for -lavcodec
/usr/bin/ld: skipping incompatible libswresample/libswresample.a when
searching for -lswresample
/usr/bin/ld: skipping incompatible libswscale/libswscale.a when searching
for -lswscale
/usr/bin/ld: skipping incompatible libswresample/libswresample.a when
searching for -lswresample
/usr/bin/ld: skipping incompatible libavutil/libavutil.a when searching for
-lavutil
/usr/bin/ld: skipping incompatible libswscale/libswscale.a when searching
for -lswscale
/usr/bin/ld: skipping incompatible libavutil/libavutil.a when searching for
-lavutil
clang: *error: *linker command failed with exit code 1 (use -v to see
invocation)
clang: *error: *linker command failed with exit code 1 (use -v to see
invocation)
Makefile:111: recipe for target 'ffprobe_g' failed
On Sat, 1 Jun 2019 at 09:55, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> Am Sa., 1. Juni 2019 um 17:45 Uhr schrieb Adrian Tong
> <adriantong1024 at gmail.com>:
>
> > Anyone has experience compiling ffmpeg with clang LTO before ? I tried
> > ./configure --cc=clang --cxx=clang++ --enable-lto and it did not work.
>
> cxx should never be needed.
>
> "did not work" is not a useful problem description...
> (clang is definitely supported)
>
> Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list