Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799440 - sci-electronics/puff-20181104 calls ld directly
Summary: sci-electronics/puff-20181104 calls ld directly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2021-07-01 06:42 UTC by Agostino Sarubbo
Modified: 2021-07-03 15:47 UTC (History)
1 user (show)

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

build.log (build.log,36.23 KB, text/plain)
2021-07-01 06:42 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-07-01 06:42:12 UTC

Issue: sci-electronics/puff-20181104 calls ld directly.
Discovered on: amd64 (internal ref: ci)

This machine uses GCC-11:
As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different LD implementation (like llvm-link). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Comment 1 Agostino Sarubbo gentoo-dev 2021-07-01 06:42:15 UTC
Created attachment 720435 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-07-01 06:42:17 UTC
Possible context of error(s): line 10: ld: command not found
Comment 3 Thomas Beierlein gentoo-dev 2021-07-03 15:44:41 UTC
Not sure if policy is really relevant in this case as the Free Pascal Compiler which is used here does not even build with the GNU gold linker. Anyway....

Fixing was a little bit nasty as fpc generates a linker script during compile. So we have to patch the Makefile so that it later patches these linker script with the actual linker command. See the patches in FILESDIR for details.
Comment 4 Larry the Git Cow gentoo-dev 2021-07-03 15:47:51 UTC
The bug has been closed via the following commit(s):

commit 23e6cad3c576c32f97ad857da284e51a88ae9da1
Author:     Thomas Beierlein <>
AuthorDate: 2021-07-03 15:46:30 +0000
Commit:     Thomas Beierlein <>
CommitDate: 2021-07-03 15:47:36 +0000

    sci-electronics/puff: Do not call 'ld' directly
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Thomas Beierlein <>

 .../puff/files/puff-20100127-Makefile.patch         | 19 +++++++++++++++++++
 .../puff/files/puff-20181104-Makefile.patch         | 21 +++++++++++++++++++++
 sci-electronics/puff/puff-20100127-r1.ebuild        | 10 ++++------
 sci-electronics/puff/puff-20181104.ebuild           |  9 ++++-----
 4 files changed, 48 insertions(+), 11 deletions(-)