If having '-flto' in compilation flags, gcc fails to compile protobuf-c: t/generated-code2/cxx-generate-packed-data fails to generate test-full-cxx-output.inc Compiling using '-fno-lto' or using clang is OK Reproducible: Always Steps to Reproduce: 1. Add '-flto' to compilation flags 2. Try to build dev-libs/protobuf-c using gcc 3. Actual Results: Build of test programs fails Expected Results: Build to succeed. Disabling lto when using gcc seems required
Created attachment 825773 [details] output from emerge --info =dev-libs/protobuf-c-1.4.1 Note that this is the merged version, with '-fno-lto' flags set.
Created attachment 825775 [details] Emerge failure using gcc and '-flto' flags build log