Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869893 - app-text/tree-2.0.2 fails to link on macOS 12.5.1 prefix
Summary: app-text/tree-2.0.2 fails to link on macOS 12.5.1 prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Jonas Stein
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 883931
Blocks:
  Show dependency tree
 
Reported: 2022-09-12 18:50 UTC by René Rhéaume
Modified: 2022-12-02 20:28 UTC (History)
2 users (show)

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


Attachments
emerge --info output (emerge-info.txt,5.25 KB, text/plain)
2022-09-12 18:50 UTC, René Rhéaume
Details
build log (build.log,4.00 KB, text/x-log)
2022-09-12 18:51 UTC, René Rhéaume
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2022-09-12 18:50:00 UTC
I get a duplicate symbol error from the linker, that is pretty much the final step of building this small utility. If I knew how to fix, I would have proposed a patch, but that's not the case (yet).

Reproducible: Always

Steps to Reproduce:
1. $EPREFIX/startprefix
2. emerge app-text/tree
Actual Results:  
x86_64-apple-darwin21-gcc -Wl,-dead_strip_dylibs -o tree tree.o list.o hash.o color.o file.o filter.o info.o unix.o xml.o json.o html.o strverscmp.o strverscmp.o
duplicate symbol _strverscmp in:
    strverscmp.o
ld: 1 duplicate symbol for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [Makefile:97: tree] Error 1

 * ERROR: app-text/tree-2.0.2::gentoo_prefix failed (compile phase):
 *   emake failed
 * 

Expected Results:  
app-text/tree merged into prefix

% emerge -pqv '=app-text/tree-2.0.2::gentoo_prefix'
[ebuild  N    ] app-text/tree-2.0.2
Comment 1 René Rhéaume 2022-09-12 18:50:32 UTC
Created attachment 804859 [details]
emerge --info output
Comment 2 René Rhéaume 2022-09-12 18:51:33 UTC
Created attachment 804862 [details]
build log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-12 18:57:03 UTC
Not at a PC to look properly but
Makefile:99: target 'strverscmp.o' given more than once in the same rule
is suspicious
Comment 4 Carlos 2022-10-24 23:23:14 UTC
The target being given twice also broke LTO when using Clang.

FWIW, 2.0.3 corrected that oversight and I no longer need to patch the Makefile.
Comment 5 Jonas Stein gentoo-dev 2022-11-01 00:32:21 UTC
after uploading a version bump, I saw there was a PR here already. 
Thank you anyway. 

I think the bug should be fixed in 2.0.4, please test and report.
I keep the ticket open, until 2.0.4 is stabilized.
Comment 6 Jonas Stein gentoo-dev 2022-12-02 20:28:52 UTC
tree-2.0.4 is now stable. 
The reported problem should be fixed now in the latest stable. 
Closing.