Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739376 - games-simulation/lincity-ng-2.9_beta fails to compile
Summary: games-simulation/lincity-ng-2.9_beta fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-28 05:40 UTC by Agostino Sarubbo
Modified: 2021-08-04 02:11 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,442.78 KB, text/plain)
2020-08-28 05:40 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-08-28 05:40:10 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-simulation/lincity-ng-2.9_beta 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 is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-28 05:40:13 UTC
Created attachment 657240 [details]
build.log

build log and emerge --info
Comment 2 Ionen Wolkens gentoo-dev 2021-08-04 02:07:01 UTC
What's happening here is that ftjam thinks it needs to rebuild internal static libraries during src_install and then uses AR without the previously passed -sAR="ar ru" option.

ftjam seem to have issues reading archives from llvm-ar, or ar+llvm-ranlib

Using `jam -d3 -n install` (for some debug output):

ar/ranlib:
>bind	--	     liblincity_gui.a(Style.o): ./build/x86_64-pc-linux-gnu/optimize/src/gui/liblincity_gui.a(Style.o)
>time	--	     liblincity_gui.a(Style.o): Tue Aug  3 20:42:19 2021
llvm-ar/llvm-ranlib:
>bind	--	     liblincity_gui.a(Style.o): ./build/x86_64-pc-linux-gnu/optimize/src/gui/liblincity_gui.a(Style.o)
>time	--	     liblincity_gui.a(Style.o): missing
Looking at the archive, Style.o is there in both cases.

I don't expect this to be fixed in ftjam (and it's scarcely used), so will apply a subpar workaround by exporting AR.
Comment 3 Larry the Git Cow gentoo-dev 2021-08-04 02:11:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ccf326f3ecdad47e8d3f5ac73e555a8fe5e97a6

commit 7ccf326f3ecdad47e8d3f5ac73e555a8fe5e97a6
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-08-03 22:14:37 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-08-04 02:11:13 +0000

    games-simulation/lincity-ng: EAPI 7->8, various fixes
    
    * Migrate to eautoreconf, autogen.sh jam stuff can be reduced only
      to a autoconf --trace call allowing eautoreconf to do its thing
    * Remove autotools_run_tool for InternalEclassUsage
    * Generate the previously skipped CREDITS file
    * Simplify install, PACKAGE_VERSION handles docdir (fine on prefix)
    * Add libxslt/gettext bdeps
    * Strip -O3
    * tc-export CC, some calls disregard configure's carried value
    * export AR rather than use -sAR to handle bug #739376
    
    Closes: https://bugs.gentoo.org/739376
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../files/lincity-ng-2.9_beta-flags.patch          | 10 ++++
 .../lincity-ng/lincity-ng-2.9_beta.ebuild          | 54 ++++++++++++----------
 2 files changed, 39 insertions(+), 25 deletions(-)