Summary: | mail-client/claws-mail-4.1.1-r2[litehtml] - [...].libs/liblitehtml_la-background.o [...] In file included from /usr/include/c++/v1/cstddef:42: ../../../../version:1:1: error: unknown type name 'echo' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | Bernard Cafarelli <voyageur> |
Status: | IN_PROGRESS --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963, 430702 | ||
Attachments: |
build.log.xz
emerge --info build.log.xz (w. GCC 12) build.log.xz (amd64, 4.2.0) |
Created attachment 865596 [details]
emerge --info
Created attachment 865597 [details]
build.log.xz (w. GCC 12)
Sigh, this plugin is problematic (previous fix was for gcc 13) I wonder if I had managed to reproduce it? With llvm-17, this command passes: AR="llvm-ar" AS="clang -c" LD="ld.lld" CXX="clang++" CC=clang LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed " USE=litehtml ebuild claws-mail-4.1.1-r2.ebuild compile (In reply to Bernard Cafarelli from comment #4) > I wonder if I had managed to reproduce it? With llvm-17, this command passes: > AR="llvm-ar" AS="clang -c" LD="ld.lld" CXX="clang++" CC=clang > LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt > -unwindlib=libunwind -Wl,--as-needed " USE=litehtml ebuild > claws-mail-4.1.1-r2.ebuild compile This workaround unfortunately does not work for me. Tried on a musl-system though (with -unwindlib=llvm-libunwind) not on glibc. Same for claws-mail-4.2.0. Created attachment 880092 [details]
build.log.xz (amd64, 4.2.0)
Ok, checked on a glibc system. There it builds ok with clang. My findings so far: +litehtml glibc-gcc-system: gcc build ... works ok clang build ... works ok +litehtml musl-clang-system: gcc build ... works ok clang build ... FAILS So the issue seems a bit more musl-related than clang-related. |
Created attachment 865595 [details] build.log.xz Fails to build with clang-15 but builds ok with gcc-12. [...] /bin/sh ../../../../libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I. -I../../../.. -s td=c++11 -Os -march=bdver2 -mtune=bdver2 -pipe -c -o liblitehtml_la-background.lo `test -f 'background.c pp' || echo './'`background.cpp libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I../../../.. -std=c++11 -Os -march=bdver2 -mtune=bdver2 -pipe -c background.cpp -fPIC -DPIC -o .libs/liblitehtml_la-background.o In file included from background.cpp:1: In file included from ./html.h:5: In file included from /usr/include/c++/v1/string:519: In file included from /usr/include/c++/v1/__algorithm/max.h:13: In file included from /usr/include/c++/v1/__algorithm/comp_ref_type.h:13: In file included from /usr/include/c++/v1/__debug:15: In file included from /usr/include/c++/v1/cstddef:42: ../../../../version:1:1: error: unknown type name 'echo' echo 4.1.1 ^ ../../../../version:1:6: error: expected unqualified-id echo 4.1.1 ^