Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941480 - dev-lang/nim-2.2.0 - [ncurses-6.5] [libtool] [gcc-15] /.../environment:line <snip>: ./koch: No such file or directory
Summary: dev-lang/nim-2.2.0 - [ncurses-6.5] [libtool] [gcc-15] /.../environment:line <...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-13 14:38 UTC by Toralf Förster
Modified: 2024-10-13 19:23 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.03 KB, text/plain)
2024-10-13 14:38 UTC, Toralf Förster
Details
dev-lang:nim-2.2.0:20241013-143527.log (dev-lang:nim-2.2.0:20241013-143527.log,66.92 KB, text/plain)
2024-10-13 14:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,222.43 KB, text/plain)
2024-10-13 14:38 UTC, Toralf Förster
Details
environment (environment,73.14 KB, text/plain)
2024-10-13 14:38 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-10-13 14:38 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,21.88 KB, application/x-xz)
2024-10-13 14:38 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,63.78 KB, application/x-xz)
2024-10-13 14:38 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-10-13 14:38:28 UTC
: SUCCESS
 * Waiting for unfinished parallel jobs ...
 [ ok ]
 * chmod +x ./bin/nim
 * ./bin/nim compile -d:release koch
 * ./koch boot -d:nimUseLinenoise -d:release --skipParentCfg:off
/var/tmp/portage/dev-lang/nim-2.2.0/temp/environment: line 701: ./koch: No such file or directory
 * ERROR: dev-lang/nim-2.2.0::gentoo failed (compile phase):
 *   Failed to run command: ./koch boot -d:nimUseLinenoise -d:release --skipParentCfg:off

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome-20241006-183956

  UNMASKED:
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15
    Requested by sam
    Issues involving opaque types / incomplete typedefs should block bug 930805
  /etc/portage/package.unmask/50unstable:>=sys-libs/ncurses-6.5

  Block bug #351559 if this looks like a parallel build issue.

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 19.1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/19/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/19
19.1.1
Python 3.12.7
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.3 *
go version go1.23.1 linux/amd64

  HEAD of ::gentoo
commit a469c3faac9a3f2e6da8bcb9e9309e9eedf426a6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 13 13:48:20 2024 +0000

    2024-10-13 13:48:19 UTC

emerge -qpvO =dev-lang/nim-2.2.0
[ebuild  N    ] dev-lang/nim-2.2.0  USE="test-js -test"
Comment 1 Toralf Förster gentoo-dev 2024-10-13 14:38:29 UTC
Created attachment 905672 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-13 14:38:30 UTC
Created attachment 905673 [details]
dev-lang:nim-2.2.0:20241013-143527.log
Comment 3 Toralf Förster gentoo-dev 2024-10-13 14:38:32 UTC
Created attachment 905674 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-10-13 14:38:33 UTC
Created attachment 905675 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-10-13 14:38:34 UTC
Created attachment 905676 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-13 14:38:34 UTC
Created attachment 905677 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-10-13 14:38:36 UTC
Created attachment 905678 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-10-13 14:38:36 UTC
The file size of ./files/temp.tar.xz is too big (1.4M) for an upload. For few weeks the link http://tinderbox.zwiebeltoralf.de:31560/23.0_desktop_gnome-20241006-183956/var/tmp/tb/issues/20241013-143638-dev-lang_nim-2.2.0/files/temp.tar.xz is valid.
Comment 9 Ștefan Talpalaru 2024-10-13 17:40:52 UTC
The nim-2.2.0-r100 ebuild from my repository does not have this problem. Maybe the maintainer can copy it fully, this time, instead of assuming he knows better: https://github.com/stefantalpalaru/gentoo-overlay
Comment 10 Maciej Barć gentoo-dev 2024-10-13 17:49:41 UTC
(In reply to Ștefan Talpalaru from comment #9)
> The nim-2.2.0-r100 ebuild from my repository does not have this problem.
> Maybe the maintainer can copy it fully, this time, instead of assuming he
> knows better: https://github.com/stefantalpalaru/gentoo-overlay

why so passive passive-aggressive?

1st of all this bug is impossible to reproduce for me. I have never encountered this issue.

Ștefan, have you been able to reproduce this?

> Maybe the maintainer can copy it fully

Differences between YOUR ebuild impl and the one in ::gentoo are big they need a careful review.

Since I can not repro this bug I will never know that MAGIC you did that it would have started to work on the Gentoo CI.
Comment 11 Ștefan Talpalaru 2024-10-13 18:00:10 UTC
> why so passive passive-aggressive?

"This ebuild is a slightly regreshed version written by Stefan Talpalaru." - https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c46ca63853a3da95a58f5488130294ee0f1c8a0

> Ștefan, have you been able to reproduce this?

No, since I only use my own Nim ebuilds.

> Differences between YOUR ebuild impl and the one in ::gentoo are big they need a careful review.

Or you can just do as I say and copy it fully, this time. I have intimate knowledge of Nim's build system, after working with it for years.
Comment 12 Maciej Barć gentoo-dev 2024-10-13 18:06:40 UTC
(In reply to Ștefan Talpalaru from comment #11)
> > why so passive passive-aggressive?
> 
> "This ebuild is a slightly regreshed version written by Stefan Talpalaru." -
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=8c46ca63853a3da95a58f5488130294ee0f1c8a0

Well, this is awkward, there has been a big misunderstanding. 

I have never seen this commit as the one who committed this was not me :). The history of Nim in Gentoo is such that it got abandoned (by the "committer") and then picked up by a (other) proxy-maint joined some time after by me (when I was interested with Nim). Later I was left alone with the Nim Project to take care of. 

So, please excuse me for not having had any knowledge of this commit.

> I have intimate knowledge of Nim's build system, after working with it for years.

So could you say what is happening here. This bug looks to me like a issue with GNU use of parallel.
Comment 13 Ștefan Talpalaru 2024-10-13 18:28:15 UTC
> This bug looks to me like a issue with GNU use of parallel.

Of course it's GNU Parallel. You're trusting a generated script to run "sem --wait" for you - a strategy which clearly fails, since you have "sleep" in your ebuild to wait for "unfinished parallel jobs" that should not exist in the first place. Don't do that!

Ideally, you should not execute "build.sh" at all (the makefile is more reliable), but if you insist on using it, drop "--parallel ...".
Comment 14 Maciej Barć gentoo-dev 2024-10-13 18:38:56 UTC
> Ideally, you should not execute "build.sh" at all (the makefile is more
> reliable), but if you insist on using it, drop "--parallel ...".

What about boot and tools below emake using --parallel?

Im currently experimenting with switching from ./build.sh to (e)make. Yes, this is "based" from your ebuild which indeed uses the "emake" but you set CC=gcc which is NOT a thing we can do in the ::gentoo repo unless absolutely necessary. Second: you use sed when using patch is less error-prone.

What im saying here is that this can be a joined cooperative work :).

As I said, incorporating YOUR changes needs a in-depth review (mostly to conform with configuration changes we require in Gentoo official repo).
Thus, i will NOT just copy your ebuild.

Please, You can either submit a PR on Github to the 
Gentoo repo with your changes (and ping me) and we can review it together or we can review current ::gentoo ebuild and yours on either public (Gentoo's) nim project mailing list or private. Whichever you prefer.

Lastly, thanks for letting me know about your repo and that you are into Nim ecosystem as you would have guessed I had no idea (since the commit you brought up I saw for the 1st time).
Comment 15 Larry the Git Cow gentoo-dev 2024-10-13 19:23:21 UTC
The bug has been closed via the following commit(s):

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

commit d08bff831f01ecab100ad13b25968915854db95f
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2024-10-13 18:38:11 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2024-10-13 19:23:14 +0000

    dev-lang/nim: use the makefile for initial compilation
    
    Closes: https://bugs.gentoo.org/941480
    Closes: https://bugs.gentoo.org/940306
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-lang/nim/files/nim-2.2.0-makefile.patch | 11 +++++++++++
 dev-lang/nim/nim-2.0.8.ebuild               | 27 +++++++++++++--------------
 dev-lang/nim/nim-2.2.0.ebuild               | 27 +++++++++++++--------------
 3 files changed, 37 insertions(+), 28 deletions(-)