Hi,

On 2015-07-21 23:57, Tomasz Paweł Gajc wrote:
With current mass rebuild i see quite a lot of packages failing with errors
like below:

make[2]: Leaving directory '/builddir/build/BUILD/libsvg-cairo-0.1.6/src'
/usr/bin/ld: error: .libs/svg_cairo.o:1:3: invalid character

This means that svg_cairo.o is an LLVM bitcode file but the linker hasn't loaded the plugin, so it can't parse them.

This is usually a broken Makefile that passes CFLAGS to the compiler correctly, but calls the linker without passing CFLAGS or LDFLAGS.

Ofcourse i may be wrong. Any ideas how to fix this ?

We likely need to fix the Makefiles manually to make sure the linker is invoked correctly.

I presume we could try to fix it for all packages at the same time by defaulting to -flto unless -fno-lto is specified, but that would cause rather unexpected behavior and it would cause trouble if anyone ever tries to link a gcc-built object file and a clang-built object file together.

ttyl
bero
_______________________________________________
OM-Cooker mailing list
[email protected]
http://ml.openmandriva.org/listinfo.cgi/om-cooker-openmandriva.org

Reply via email to