Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734274 - 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
Summary: app-office/dia-0.97.3-r1 fails to compile: ld.lld: error: .libs/wmf.o: unable...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld missing-depend
  Show dependency tree
 
Reported: 2020-07-28 10:17 UTC by Agostino Sarubbo
Modified: 2024-04-14 21:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.bz2 (build.log.bz2,113.92 KB, application/x-bzip-compressed-tar)
2020-07-28 10:17 UTC, Agostino Sarubbo
Details
other.tar.bz2 (other.tar.bz2,420 bytes, application/x-bzip-compressed-tar)
2020-07-28 10:17 UTC, Agostino Sarubbo
Details
lld/clang-17 patch (clang-17.patch,2.52 KB, patch)
2024-04-14 21:44 UTC, Felix W.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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