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
Created attachment 804859 [details] emerge --info output
Created attachment 804862 [details] build log
Not at a PC to look properly but Makefile:99: target 'strverscmp.o' given more than once in the same rule is suspicious
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.
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.
tree-2.0.4 is now stable. The reported problem should be fixed now in the latest stable. Closing.