Created attachment 516356 [details] media-libs:mlt-6.4.1-r5:20180124-155227.log =media-libs/mlt-6.4.1-r5 failes to build with LTO unless CFLAGS="${CFLAGS} -flto-partition=1to1" CXXFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -flto-partition=1to1" is used in package.env for example. composite_line_yuv_sse2_simple.c: Assembler messages: composite_line_yuv_sse2_simple.c:178: Error: symbol `loop_start1' is already defined LTRANS statistics [LTRANS] read 3056 SCCs of average size 1.116165 [LTRANS] 3411 tree bodies read in total [LTRANS] # of input files: 1 [LTRANS] # of input cgraph nodes: 228 [LTRANS] # of function bodies: 229 [LTRANS] Size of mmap'd section decls: 164286 bytes [LTRANS] Size of mmap'd section function_body: 423315 bytes [LTRANS] Size of mmap'd section statics: 0 bytes [LTRANS] Size of mmap'd section symtab: 0 bytes [LTRANS] Size of mmap'd section refs: 1562 bytes [LTRANS] Size of mmap'd section asm: 0 bytes [LTRANS] Size of mmap'd section jmpfuncs: 0 bytes [LTRANS] Size of mmap'd section pureconst: 0 bytes [LTRANS] Size of mmap'd section reference: 79 bytes [LTRANS] Size of mmap'd section profile: 0 bytes [LTRANS] Size of mmap'd section symbol_nodes: 33208 bytes [LTRANS] Size of mmap'd section opts: 0 bytes [LTRANS] Size of mmap'd section cgraphopt: 17 bytes [LTRANS] Size of mmap'd section inline: 0 bytes [LTRANS] Size of mmap'd section ipcp_trans: 1981 bytes [LTRANS] Size of mmap'd section icf: 0 bytes [LTRANS] Size of mmap'd section offload_table: 0 bytes [LTRANS] Size of mmap'd section mode_table: 0 bytes [LTRANS] Size of mmap'd section hsa: 0 bytes make[3]: *** [/tmp/portage/media-libs/mlt-6.4.1-r5/temp/cccDI7TH.mk:2: /tmp/portage/media-libs/mlt-6.4.1-r5/temp/ccfU1shw.ltrans0.ltrans.o] Error 1 lto-wrapper: fatal error: make returned 2 exit status compilation terminated. /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status
Created attachment 516358 [details] emerge --info
What about 6.10.0-r1 and 6.12.0?
(In reply to Andreas Sturmlechner from comment #2) > What about 6.10.0-r1 and 6.12.0? This will take a while for me to test. Have patience.
I completely forgot about this. media-libs/mlt-6.16.0-r2 is built fine without any LTO workaround like those in my previous comment.
Thanks for the feedback!