Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 734274

Summary: app-office/dia-0.97.3-r1 fails to compile: ld.lld: error: .libs/wmf.o: unable to find library from dependent library specifier: gdi32
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: CONFIRMED ---    
Severity: normal CC: felix.wischke
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004, 893356    
Attachments: build.log.bz2
other.tar.bz2
lld/clang-17 patch

Description Agostino Sarubbo gentoo-dev 2020-07-28 10:17:38 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-28 10:17:46 UTC
Created attachment 651214 [details]
build.log.bz2

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-28 10:17:48 UTC
Created attachment 651216 [details]
other.tar.bz2

other logs
Comment 3 Agostino Sarubbo gentoo-dev 2021-12-14 08:48:58 UTC
tinderbox has reproduced this issue with version 0.97.3-r1 - Updating summary.
Comment 4 Felix W. 2024-04-14 21:44:13 UTC
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