Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913142 - sci-visualization/scidavis-2.9.0 - /.../minigzip.c: error: expected =, ,, ;, asm or _attribute_ before _Z_OF
Summary: sci-visualization/scidavis-2.9.0 - /.../minigzip.c: error: expected =, ,, ;, ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-28 08:07 UTC by Toralf Förster
Modified: 2023-10-25 20:38 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.88 KB, text/plain)
2023-08-28 08:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,185.19 KB, text/plain)
2023-08-28 08:07 UTC, Toralf Förster
Details
environment (environment,137.43 KB, text/plain)
2023-08-28 08:07 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,976 bytes, application/x-xz)
2023-08-28 08:07 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.57 KB, application/x-xz)
2023-08-28 08:07 UTC, Toralf Förster
Details
sci-visualization:scidavis-2.9.0:20230828-010501.log (sci-visualization:scidavis-2.9.0:20230828-010501.log,9.84 KB, text/plain)
2023-08-28 08:07 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.86 KB, application/x-xz)
2023-08-28 08:07 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 2023-08-28 08:07:51 UTC
too long lines were shrinked:

 * Build directory  (BUILD_DIR):     "/var/tmp/portage/sci-visualization/scidavis-2.9.0/work/scidavis-2.9.0_build"
ninja -v -j5 -l0
[0/2] /usr/bin/cmake -P /var/tmp/portage/sci-visualization/scidavis-2.9.0/work/scidavis-2.9.0_build/CMakeFiles/VerifyGlobs.cmake
[1/184] /usr/bin/x86_64-pc-linux-gnu-gcc    -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wextra -pedantic -std=c11 -fno-diagnostics-color -MD -MT 3rdparty/CMakeFiles/minigzip.dir/minigzip/minigzip.c.o -MF 3rdparty/CMakeFiles/minigzip.dir/minigzip/minigzip.c.o.d -o 3rdparty/CMakeFiles/minigz
FAILED: 3rdparty/CMakeFiles/minigzip.dir/minigzip/minigzip.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc    -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wextra -pedantic -std=c11 -fno-diagnostics-color -MD -MT 3rdparty/CMakeFiles/minigzip.dir/minigzip/minigzip.c.o -MF 3rdparty/CMakeFiles/minigzip.dir/minigzip/minigzip.c.o.d -o 3rdparty/CMakeFiles/minigzip.dir/m
/var/tmp/portage/sci-visualization/scidavis-2.9.0/work/scidavis-2.9.0/3rdparty/minigzip/minigzip.c:111:23: error: expected =, ,, ;, asm or __attribute__ before _Z_OF
  111 | void error            _Z_OF((const char *msg));
      |                       ^~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20230825-105048

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.71.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.19_p7 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.372_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.21.0 linux/amd64

  HEAD of ::gentoo
commit 2f141ea1261b2723c44c8ea244d427055ca69b79
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Aug 27 23:46:43 2023 +0000

    2023-08-27 23:46:42 UTC

emerge -qpvO sci-visualization/scidavis
[ebuild  N    ] sci-visualization/scidavis-2.9.0  USE="-doc -origin -python -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-08-28 08:07:52 UTC
Created attachment 868856 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-08-28 08:07:54 UTC
Created attachment 868857 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-08-28 08:07:55 UTC
Created attachment 868858 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-08-28 08:07:56 UTC
Created attachment 868859 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-08-28 08:07:57 UTC
Created attachment 868860 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-08-28 08:07:58 UTC
Created attachment 868861 [details]
sci-visualization:scidavis-2.9.0:20230828-010501.log
Comment 7 Toralf Förster gentoo-dev 2023-08-28 08:07:59 UTC
Created attachment 868862 [details]
temp.tar.xz
Comment 8 Michelangelo Scopelliti 2023-10-25 09:06:48 UTC
I hit the bug on my machine. As i can see, the issue is the sed line in the ebuild:

sed -i -r 's:\<(O[FN])\>:_Z_\1:g' 3rdparty/minigzip/minigzip.c || die

the sed was needed because of gentoo modification of zlib macros.

In august (commit https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=491bf8bd3ef621da49b168736a04f23aa4c7719c ) those modification were removed  (zlib-1.3-r1), causing the bug.

Maybe a conditional patch where the condition is the zlib version?
Comment 9 Larry the Git Cow gentoo-dev 2023-10-25 20:38:06 UTC
The bug has been closed via the following commit(s):

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

commit 3088bcd9e6f979dcfb124b2b5151ee26cc4d6727
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2023-10-25 20:36:35 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2023-10-25 20:37:59 +0000

    sci-visualization/scidavis: fix compat with zlib-1.3-r1
    
    See-also: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=491bf8bd3ef621da49b168736a04f23aa4c7719c
    Closes: https://bugs.gentoo.org/913142
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 .../scidavis/{scidavis-2.9.0.ebuild => scidavis-2.9.0-r1.ebuild} | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)