Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943857 - app-text/ghostscript-gpl-10.04.0 - [ncurses-6.5] [meson] [libtool] [gcc-15] ./.../stdpre.h: error: two or more data types in declaration specifiers
Summary: app-text/ghostscript-gpl-10.04.0 - [ncurses-6.5] [meson] [libtool] [gcc-15] ....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Codec Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 21:14 UTC by Toralf Förster
Modified: 2024-12-01 18:02 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.73 KB, text/plain)
2024-11-18 21:14 UTC, Toralf Förster
Details
app-text:ghostscript-gpl-10.04.0:20241118-205312.log (app-text:ghostscript-gpl-10.04.0:20241118-205312.log,25.46 KB, text/plain)
2024-11-18 21:14 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,21.63 KB, text/plain)
2024-11-18 21:14 UTC, Toralf Förster
Details
environment (environment,97.72 KB, text/plain)
2024-11-18 21:14 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-11-18 21:14 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,16.62 KB, application/x-xz)
2024-11-18 21:14 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,92.50 KB, application/x-xz)
2024-11-18 21:14 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,71.16 KB, text/plain)
2024-11-18 21:14 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,25.36 KB, application/x-xz)
2024-11-18 21:14 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 21:14:03 UTC
too long lines were shrinked:

>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-text/ghostscript-gpl-10.04.0/work/ghostscript-10.04.0 ...
make -O -j4 so all 
make -f Makefile so-subtarget BUILDDIRPREFIX=so
x86_64-pc-linux-gnu-gcc   -O2 -DNDEBUG -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -Wno-unused-local-typedefs -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -D
In file included from ./base/genarch.c:22:
./base/stdpre.h:348:13: error: two or more data types in declaration specifiers
  348 | typedef int bool;
      |             ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_systemd-20241117-232508

  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
    Issues involving opaque types / incomplete typedefs should block bug 930805
  >=sys-libs/ncurses-6.5

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 18.1.8
llvm-config: 19.1.3
Python 3.12.7
Available Rust versions:
  [1]   rust-bin-1.82.0 *

  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 =app-text/ghostscript-gpl-10.04.0
[ebuild  N    ] app-text/ghostscript-gpl-10.04.0  USE="X (unicode) -cups -dbus -gtk -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW"
Comment 1 Toralf Förster gentoo-dev 2024-11-18 21:14:04 UTC
Created attachment 909617 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-18 21:14:05 UTC
Created attachment 909618 [details]
app-text:ghostscript-gpl-10.04.0:20241118-205312.log
Comment 3 Toralf Förster gentoo-dev 2024-11-18 21:14:06 UTC
Created attachment 909619 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-11-18 21:14:07 UTC
Created attachment 909620 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-11-18 21:14:08 UTC
Created attachment 909621 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-18 21:14:09 UTC
Created attachment 909622 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-18 21:14:10 UTC
Created attachment 909623 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-18 21:14:11 UTC
Created attachment 909624 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-11-18 21:14:13 UTC
Created attachment 909625 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-11-26 06:49:40 UTC
The bug has been closed via the following commit(s):

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

commit de829b7a5819e93bb69eb0894e519b3bfebfd676
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-26 06:48:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-26 06:48:15 +0000

    app-text/ghostscript-gpl: build w/ -std=gnu17
    
    Indeed, this and a few others really do need to be reported upstream,
    but I'd like to unblock tinderbox testing given these and the other
    packages I've touched today or so have so many reverse dependencies and
    it blocks further builds.
    
    Closes: https://bugs.gentoo.org/943857
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/ghostscript-gpl/ghostscript-gpl-10.04.0.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 11 cyrillic 2024-12-01 18:02:22 UTC
FYI

This fix causes a build failure with clang-19 :

mkdir ./soobj/tesseract
./soobj/aux/echogs -w ./soobj/tesseract/version.h -x 23 define TESSERACT_VERSION_STR -x 2022 5.0.0-beta-gs -x 22
clang++ -Itesseract/include -Itesseract/src/api -Itesseract/src/arch -Itesseract/src/ccmain -Itesseract/src/ccstruct -Itesseract/src/ccutil -Itesseract/src/classify -Itesseract/src/cutil -Itesseract/src/dict -Itesseract/src/lstm -Itesseract/src/opencl -Itesseract/src/textord -Itesseract/src/training -Itesseract/src/viewer -Itesseract/src/wordrec -Ileptonica/src -I./base -I./soobj -march=nocona -mtune=native -O2 -pipe  -std=c++17 -DHAVE_SSE4_1 -DHAVE_AVX -DHAVE_AVX2 -DHAVE_FMA  -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_ISINF  -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -DNDEBUG -fPIC  -fvisibility=hidden -DGSDLLEXPORT="__attribute__((visibility(\"default\")))" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -Wno-unused-local-typedefs -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -DHAVE_SNPRINTF  -DBUILD_PDF=1 -I./pdf -march=nocona -mtune=native -O2 -pipe -std=gnu17 -DHAVE_RESTRICT=1  -DUSE_LIBPAPER -I/usr/include/webp -fno-strict-aliasing -DHAVE_POPEN_PROTO=1   -DTESSERACT_IMAGEDATA_AS_PIX -DTESSERACT_DISABLE_DEBUG_FONTS -DGRAPHICS_DISABLED -UCLUSTER -DOCR_SHARED=0 -DLEPTONICA_INTERCEPT_ALLOC=1 -I./soobj/ -o ./soobj/tessocr.o -c -DTESSDATA="/usr/share/tessdata" ./base/tessocr.cpp
error: invalid argument '-std=gnu17' not allowed with 'C++'