https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-office/dia fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses a clang/LLVM toolchain. If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Created attachment 651214 [details] build.log.bz2 build log and emerge --info
Created attachment 651216 [details] other.tar.bz2 other logs
tinderbox has reproduced this issue with version 0.97.3-r1 - Updating summary.
Created attachment 890851 [details, diff] lld/clang-17 patch The problem is related to clang now understanding "#pragma comment( lib, "gdi32" )", which is assumed to only work with MSVC. While I was at it, I also fixed all compiling problems with clang-17. Patch tested with gcc/ld.bfd an clang-17/ld.lld