Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631862 - dsymutil is missing on macOS
Summary: dsymutil is missing on macOS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2017-09-23 17:20 UTC by Fabian Groffen
Modified: 2020-12-19 19:51 UTC (History)
2 users (show)

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


Attachments
binutils-apple-11.3.1-llvm-shim.patch (binutils-apple-11.3.1-llvm-shim.patch,4.01 KB, patch)
2020-12-19 07:33 UTC, Jacob Floyd
Details | Diff
binutils-apple-11.3.1-llvm-prefix.patch (binutils-apple-11.3.1-llvm-prefix.patch,10.82 KB, patch)
2020-12-19 07:34 UTC, Jacob Floyd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2017-09-23 17:20:52 UTC
clang calls dsymutil at some point, which we don't provide.  We should provide it, probably via darwin-miscutils or binutils-apple.
Comment 1 Jacob Floyd 2020-12-19 07:32:23 UTC
This is provided by llvm in at least llvm-11.

EPREFIX/usr/lib/llvm/11/bin/dsymutil

binutils-apple-11.3.1 is currently symlinking dsymutil to llvm-shim, which tries to find llvm-dsymutil and dsymutil-classic, but fails. Since the llvm binary is not llvm-dsymutil, llvm-shim needs to look for progname in the llvm bin directory.

I modified binutils-apple-8.2.1-llvm-shim.patch to resolve this and named it binutils-apple-11.3.1-llvm-shim.patch.

I also noticed that llvm-shim is currently broken with binutils-apple-11.3.1 because it is not using ANY of the llvm binaries. 10 is the highest llvm version it is looking for, so it is falling back to the -classic variants. Since there is no dsymutil-classic, that is the only case that is fatal.

I'm attaching both patches, and then I'll push a fix for binutils-apple-11.3.1 in https://github.com/gentoo/gentoo/pull/18713
Comment 2 Jacob Floyd 2020-12-19 07:33:04 UTC
Created attachment 678772 [details, diff]
binutils-apple-11.3.1-llvm-shim.patch
Comment 3 Jacob Floyd 2020-12-19 07:34:02 UTC
Created attachment 678775 [details, diff]
binutils-apple-11.3.1-llvm-prefix.patch
Comment 4 Jacob Floyd 2020-12-19 07:42:29 UTC
Fabian, please add the attached patches and bump the patches archive in
https://dev.gentoo.org/~grobian/distfiles/

binutils-apple-patches-11.3.tar.bz2 => binutils-apple-patches-11.3-r1.tar.bz2
Comment 5 Jacob Floyd 2020-12-19 07:45:42 UTC
The fix in https://github.com/gentoo/gentoo/pull/18713 might also resolve https://bugs.gentoo.org/675794
Comment 6 Larry the Git Cow gentoo-dev 2020-12-19 19:51:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a608377e7001e3b578d1b9eff82ec15cebcfdf4

commit 9a608377e7001e3b578d1b9eff82ec15cebcfdf4
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2020-12-19 19:50:11 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2020-12-19 19:51:38 +0000

    sys-devel/binutils-apple-11.3.1-r1: update patchset, thanks  Jacob Floyd
    
    Closes: https://bugs.gentoo.org/631862
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 sys-devel/binutils-apple/Manifest                                 | 2 +-
 ...nutils-apple-11.3.1.ebuild => binutils-apple-11.3.1-r1.ebuild} | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)