Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943961 - dev-java/protobuf-java-4.28.3 - [meson] [libtool] [gcc-15] /.../copy.c: error: incompatible types when returning type _Bool but upb_Array was expected
Summary: dev-java/protobuf-java-4.28.3 - [meson] [libtool] [gcc-15] /.../copy.c: error...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 946928
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-19 08:53 UTC by Toralf Förster
Modified: 2025-01-05 14:34 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.85 KB, text/plain)
2024-11-19 08:53 UTC, Toralf Förster
Details
dev-java:protobuf-java-4.28.3:20241119-040702.log.xz (dev-java:protobuf-java-4.28.3:20241119-040702.log.xz,12.48 KB, application/x-xz)
2024-11-19 08:53 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,217.93 KB, text/plain)
2024-11-19 08:53 UTC, Toralf Förster
Details
environment (environment,168.10 KB, text/plain)
2024-11-19 08:53 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.21 KB, application/x-xz)
2024-11-19 08:53 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,18.80 KB, application/x-xz)
2024-11-19 08:53 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,30.72 KB, application/x-xz)
2024-11-19 08:53 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,58.37 KB, application/x-xz)
2024-11-19 08:53 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,35.76 KB, application/x-xz)
2024-11-19 08:53 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-19 08:53:44 UTC
too long lines were shrinked:

[218/322] /usr/bin/x86_64-pc-linux-gnu-gcc -DGOOGLE_PROTOBUF_CMAKE_BUILD -DHAVE_ZLIB -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3_build -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3 -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3_build
[219/322] /usr/bin/x86_64-pc-linux-gnu-gcc -DGOOGLE_PROTOBUF_CMAKE_BUILD -DHAVE_ZLIB -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3_build -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3 -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3_build
[220/322] /usr/bin/x86_64-pc-linux-gnu-gcc -DGOOGLE_PROTOBUF_CMAKE_BUILD -DHAVE_ZLIB -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3_build -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3 -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3_build
FAILED: CMakeFiles/libupb.dir/upb/message/copy.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DGOOGLE_PROTOBUF_CMAKE_BUILD -DHAVE_ZLIB -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3_build -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3 -I/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3_build/src -I/va
/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3/upb/message/copy.c: In function upb_Array_DeepClone:
/var/tmp/portage/dev-java/protobuf-java-4.28.3/work/protobuf-28.3/upb/message/copy.c:153:14: error: incompatible types when returning type _Bool but upb_Array * was expected
  153 |       return false;
      |              ^~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma-20241113-212003

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.
  <dev-build/meson-9999

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

GENTOO_VM=openjdk-bin-21  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.5_p11"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
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
  [1]   php8.2
  [2]   php8.3 *
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.77.1
  [2]   rust-bin-1.81.0
  [3]   rust-bin-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 8566b21081f24b8ff8c5a8ecadbce83f2bdad484
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 18 17:03:30 2024 +0000

    2024-11-18 17:03:29 UTC

emerge -qpvO =dev-java/protobuf-java-4.28.3
[ebuild  N    ] dev-java/protobuf-java-4.28.3  USE="source -doc (-system-protoc) -test"
Comment 1 Toralf Förster gentoo-dev 2024-11-19 08:53:45 UTC
Created attachment 910075 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-19 08:53:45 UTC
Created attachment 910076 [details]
dev-java:protobuf-java-4.28.3:20241119-040702.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-11-19 08:53:47 UTC
Created attachment 910077 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-11-19 08:53:48 UTC
Created attachment 910078 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-11-19 08:53:49 UTC
Created attachment 910079 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-19 08:53:50 UTC
Created attachment 910080 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-19 08:53:51 UTC
Created attachment 910081 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-19 08:53:52 UTC
Created attachment 910082 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-11-19 08:53:53 UTC
Created attachment 910083 [details]
temp.tar.xz
Comment 10 Volkmar W. Pogatzki 2024-11-19 16:19:46 UTC
What about stable version 4.28.1? Would it also fail?
Comment 11 Volkmar W. Pogatzki 2024-12-07 09:35:25 UTC
Users who are affected by this bug should use protobuf-java[system-protoc] instead of 4.28.3
Comment 12 Larry the Git Cow gentoo-dev 2025-01-05 14:34:47 UTC
The bug has been referenced in the following commit(s):

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

commit 31bdedb040b79aee2931dc4f03d6b9465d1e8e78
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2025-01-04 08:17:41 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2025-01-05 14:34:43 +0000

    profiles/base: update mask on USE=system-protoc dev-java/protobuf-java
    
    Bug: https://bugs.gentoo.org/943961
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/39971
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 profiles/base/package.use.mask | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)