compilation failed. compiler says:
/data/makepkg/mlt-git/src/mlt/src/modules/avformat/factory.c:35:17: error: type of ‘link_swresample_init’ does not match original declaration [-Werror=lto-type-mismatch]
35 | extern mlt_link link_swresample_init(mlt_profile profile, char *arg);
| ^
/data/makepkg/mlt-git/src/mlt/src/modules/avformat/link_swresample.c:340:10: note: type mismatch in parameter 2
340 | mlt_link link_swresample_init(mlt_profile profile, mlt_service_type type, const char *id, char *arg)
| ^
/data/makepkg/mlt-git/src/mlt/src/modules/avformat/link_swresample.c:340:10: note: ‘link_swresample_init’ was previously declared here
/data/makepkg/mlt-git/src/mlt/src/modules/avformat/link_swresample.c:340:10: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
lto1: all warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/cc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [src/modules/avformat/CMakeFiles/mltavformat.dir/build.make:281: out/lib/mlt/libmltavformat.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:841: src/modules/avformat/CMakeFiles/mltavformat.dir/all] Error 2
/data/makepkg/mlt-git/src/mlt/src/modules/plus/factory.c:108:21: error: type of ‘producer_count_init’ does not match original declaration [-Werror=lto-type-mismatch]
108 | extern mlt_producer producer_count_init(const char *arg);
| ^
/data/makepkg/mlt-git/src/mlt/src/modules/plus/producer_count.c:632:14: note: type mismatch in parameter 2
632 | mlt_producer producer_count_init(mlt_profile profile,
| ^
/data/makepkg/mlt-git/src/mlt/src/modules/plus/producer_count.c:632:14: note: type ‘mlt_service_type’ should match type ‘void’
/data/makepkg/mlt-git/src/mlt/src/modules/plus/producer_count.c:632:14: note: ‘producer_count_init’ was previously declared here
lto1: all warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/cc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [src/modules/plus/CMakeFiles/mltplus.dir/build.make:516: out/lib/mlt/libmltplus.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:1390: src/modules/plus/CMakeFiles/mltplus.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
I left out everything that's not an error or warning for conciceness.
I have zero experience with C so I can't fix it myself, sorry.
Pinned Comments
nfnty commented on 2015-12-27 08:48 (UTC)