Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943785 - app-misc/broot-1.42.0-r1 - [libtool] [gcc-15] warning: onig_sys@69.8.1: .../regparse.c: error: initialization of int ( )(void) from incompatible pointer type int ( )(st_s
Summary: app-misc/broot-1.42.0-r1 - [libtool] [gcc-15] warning: onig_sys@69.8.1: .../r...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Karl-Johan Karlsson
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 18:48 UTC by Toralf Förster
Modified: 2024-12-01 08:34 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,21.62 KB, text/plain)
2024-11-18 18:49 UTC, Toralf Förster
Details
app-misc:broot-1.42.0-r1:20241118-051452.log.xz (app-misc:broot-1.42.0-r1:20241118-051452.log.xz,23.54 KB, application/x-xz)
2024-11-18 18:49 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,82.38 KB, application/x-xz)
2024-11-18 18:49 UTC, Toralf Förster
Details
environment (environment,165.00 KB, text/plain)
2024-11-18 18:49 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-11-18 18:49 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,30.63 KB, application/x-xz)
2024-11-18 18:49 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,412.97 KB, application/x-xz)
2024-11-18 18:49 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,85.38 KB, application/x-xz)
2024-11-18 18:49 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,30.61 KB, application/x-xz)
2024-11-18 18:49 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-11-18 18:48:59 UTC
too long lines were shrinked:

     Running `/usr/lib/rust/1.82.0/bin/rustc --crate-name usvg_text_layout --edition=2018 /var/tmp/portage/app-misc/broot-1.42.0-r1/work/cargo_home/gentoo/usvg-text-layout-0.36.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info
   Compiling time v0.3.36
     Running `/usr/lib/rust/1.82.0/bin/rustc --crate-name time --edition=2021 /var/tmp/portage/app-misc/broot-1.42.0-r1/work/cargo_home/gentoo/time-0.3.36/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-le
The following warnings were emitted during compilation:

warning: onig_sys@69.8.1: oniguruma/src/regparse.c: In function onig_st_init_strend_table_with_size:
warning: onig_sys@69.8.1: oniguruma/src/regparse.c:588:5: error: initialization of int (*)(void) from incompatible pointer type int (*)(st_str_end_key *, st_str_end_key *) [-Wincompatible-pointer-types]
warning: onig_sys@69.8.1:   588 |     str_end_cmp,
warning: onig_sys@69.8.1:       |     ^~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0-20241110-003003

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.3
llvm-config: 19.1.3
Python 3.12.7
go version go1.23.2 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.71.1
  [2]   rust-bin-1.77.1
  [3]   rust-bin-1.81.0
  [4]   rust-bin-1.82.0
  [5]   rust-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_p06 [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


  HEAD of ::gentoo
commit 8ed31d0957c2228d200e4fad60a04e6ccbff4989
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 18 04:33:40 2024 +0000

    2024-11-18 04:33:40 UTC

emerge -qpvO =app-misc/broot-1.42.0-r1
[ebuild  N    ] app-misc/broot-1.42.0-r1  USE="-X -debug"
Comment 1 Toralf Förster gentoo-dev 2024-11-18 18:49:00 UTC
Created attachment 909025 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-18 18:49:01 UTC
Created attachment 909026 [details]
app-misc:broot-1.42.0-r1:20241118-051452.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-11-18 18:49:02 UTC
Created attachment 909027 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-11-18 18:49:03 UTC
Created attachment 909028 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-11-18 18:49:04 UTC
Created attachment 909029 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-18 18:49:05 UTC
Created attachment 909030 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-18 18:49:07 UTC
Created attachment 909031 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-18 18:49:08 UTC
Created attachment 909032 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-11-18 18:49:09 UTC
Created attachment 909033 [details]
temp.tar.xz
Comment 10 Karl-Johan Karlsson 2024-11-21 21:07:30 UTC
The onig_sys crate includes a copy of the Oniguruma cource code, but the snapshot is more than two years old.

Oniguruma upstream recently had a patch merged to support GCC 15: https://github.com/kkos/oniguruma/issues/312

Updating the snapshot in onig_sys to current master (which includes that patch) makes it build successfully.

I have filed a bug (https://github.com/rust-onig/rust-onig/issues/191) with rust-onig (the project which ships onig_sys) asking for an updated snapshot. Hopefully, they'll respond, and I can then file a bug with broot asking to bump its version of onig_sys.
Comment 11 Karl-Johan Karlsson 2024-11-30 20:50:13 UTC
rust-onig upstream seems unresponsive, so I filed a pull request to use system dev-libs/oniguruma (which is compatible with GCC 15 since dev-libs/oniguruma-6.9.9-r1) instead.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-01 07:04:29 UTC
Thanks for being so on top of things!
Comment 13 Larry the Git Cow gentoo-dev 2024-12-01 08:34:53 UTC
The bug has been closed via the following commit(s):

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

commit 136de8e9a75719d99de188e4605fcc6073b27fc4
Author:     Karl-Johan Karlsson <creideiki@lysator.liu.se>
AuthorDate: 2024-11-30 20:39:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-01 08:33:13 +0000

    app-misc/broot: add 1.44.2 and drop old
    
    Use system dev-libs/oniguruma since the one vendored in onig_sys is
    not compatible with GCC 15.
    
    Closes: https://bugs.gentoo.org/943785
    Signed-off-by: Karl-Johan Karlsson <creideiki@lysator.liu.se>
    Closes: https://github.com/gentoo/gentoo/pull/39535
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/broot/Manifest                            |  95 +----
 app-misc/broot/broot-1.39.1-r1.ebuild              | 383 ---------------------
 app-misc/broot/broot-1.40.0-r1.ebuild              | 383 ---------------------
 ...{broot-1.41.1-r1.ebuild => broot-1.44.2.ebuild} | 183 +++++-----
 4 files changed, 115 insertions(+), 929 deletions(-)