Summary: | dev-libs/protobuf-c: gcc is unable to compile with -flto | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jocelyn Mayer <l_indien> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | eschwartz, l_indien |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: |
output from emerge --info =dev-libs/protobuf-c-1.4.1
Emerge failure using gcc and '-flto' flags build log |
Description
Jocelyn Mayer
2022-10-29 04:22:34 UTC
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
libtool: link: x86_64-pc-linux-gnu-g++ -std=c++17 -march=native -fstack-protector-all -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wformat -Werror=format-security -Wl,-O1 -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--defsym=__gentoo_check_ldflags__=0 -o t/generated-code2/cxx-generate-packed-data t/generated-code2/cxx_generate_packed_data-cxx-generate-packed-data.o t/generated_code2_cxx_generate_packed_data-test-full.pb.o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o -Wl,--as-needed -lprotobuf ./t/generated-code2/cxx-generate-packed-data > ./t/generated-code2/test-full-cxx-output.inc make all-am There is one change here to upgrade to newer protobuf and e.g. compile with a newer C++ std, which may or may not have made a difference? |