Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919779 - www-apps/cgit-1.2.3-r202 - [clang] ../filter.c: error: no member named _fprintf_chk in
Summary: www-apps/cgit-1.2.3-r202 - [clang] ../filter.c: error: no member named _fprin...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-12-12 16:56 UTC by Toralf Förster
Modified: 2025-03-19 19:36 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.28 KB, text/plain)
2023-12-12 16:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,175.76 KB, text/plain)
2023-12-12 16:57 UTC, Toralf Förster
Details
environment (environment,138.17 KB, text/plain)
2023-12-12 16:57 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-12 16:57 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,27.91 KB, application/x-xz)
2023-12-12 16:57 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,245.50 KB, text/plain)
2023-12-12 16:57 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,42.41 KB, application/x-xz)
2023-12-12 16:57 UTC, Toralf Förster
Details
www-apps:cgit-1.2.3-r202:20231212-070834.log (www-apps:cgit-1.2.3-r202:20231212-070834.log,162.26 KB, text/plain)
2023-12-12 16:57 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-12-12 16:56:58 UTC
too long lines were shrinked:

clang -o ../cmd.o -c -MF ../.depend/cmd.o.d -MQ ../cmd.o -MMD -MP   -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -I. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"x86_64\"" -DHAVE_ALLOCA_H -DNO_CURL -DSHA1_DC -DSHA1DC_NO_STANDARD_INCLUDES -DSHA1DC_INIT
clang -o ../configfile.o -c -MF ../.depend/configfile.o.d -MQ ../configfile.o -MMD -MP   -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -I. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"x86_64\"" -DHAVE_ALLOCA_H -DNO_CURL -DSHA1_DC -DSHA1DC_NO_STANDARD_I
clang -o ../filter.o -c -MF ../.depend/filter.o.d -MQ ../filter.o -MMD -MP   -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -I. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"x86_64\"" -DHAVE_ALLOCA_H -DNO_CURL -DSHA1_DC -DSHA1DC_NO_STANDARD_INCLUDES -DSH
clang -o ../html.o -c -MF ../.depend/html.o.d -MQ ../html.o -MMD -MP   -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -I. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"x86_64\"" -DHAVE_ALLOCA_H -DNO_CURL -DSHA1_DC -DSHA1DC_NO_STANDARD_INCLUDES -DSHA1DC_I
clang -o ../parsing.o -c -MF ../.depend/parsing.o.d -MQ ../parsing.o -MMD -MP   -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -I. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"x86_64\"" -DHAVE_ALLOCA_H -DNO_CURL -DSHA1_DC -DSHA1DC_NO_STANDARD_INCLUDES -
clang -o ../scan-tree.o -c -MF ../.depend/scan-tree.o.d -MQ ../scan-tree.o -MMD -MP   -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -I. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"x86_64\"" -DHAVE_ALLOCA_H -DNO_CURL -DSHA1_DC -DSHA1DC_NO_STANDARD_INCL
../filter.c:388:10: error: no member named '__fprintf_chk' in
      'struct cgit_filter'
  388 |         filter->fprintf(filter, f, prefix);

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang-20231210-041514

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6+libcxx
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 8f1bd65ba10d56451a4c038b8f6546b0dd1b9dba
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 12 06:18:52 2023 +0000

    2023-12-12 06:18:51 UTC

emerge -qpvO www-apps/cgit
[ebuild  N    ] www-apps/cgit-1.2.3-r202  USE="highlight lua vhosts -doc -test" LUA_SINGLE_TARGET="lua5-1 -luajit" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-12-12 16:56:59 UTC
Created attachment 878886 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-12 16:57:00 UTC
Created attachment 878887 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-12 16:57:02 UTC
Created attachment 878888 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-12 16:57:02 UTC
Created attachment 878889 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-12 16:57:03 UTC
Created attachment 878890 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-12 16:57:05 UTC
Created attachment 878891 [details]
qlist-info.txt
Comment 7 Toralf Förster gentoo-dev 2023-12-12 16:57:06 UTC
Created attachment 878892 [details]
temp.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-12 16:57:07 UTC
Created attachment 878893 [details]
www-apps:cgit-1.2.3-r202:20231212-070834.log
Comment 9 zurabid2016 2025-03-18 00:48:42 UTC
Fixed in fb87de795b9f1b1e21825243716ff1156097adf2 "fix building with clang"[1] on master.

[1]: https://git.zx2c4.com/cgit/commit/?id=fb87de795b9f1b1e21825243716ff1156097adf2
Comment 10 Larry the Git Cow gentoo-dev 2025-03-18 13:57:42 UTC
The bug has been closed via the following commit(s):

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

commit 6b89cd8e5d9d999510537488f41d676b6967d738
Author:     Zurab Kvachadze <zurabid2016@gmail.com>
AuthorDate: 2025-03-18 01:18:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-18 13:57:19 +0000

    www-apps/cgit: add 1.2.3_p20240802
    
    There has not been any release of cgit since 2020. This commit adds the
    newest version of cgit which contains fixes for two bugs.
    
    The bug 919779 is a compilation failure with GCC 15 in bundled Git. This
    bug is probably fixed, as the bundled Git's version is bumped from 2.25
    to 2.46.
    
    Bug: https://bugs.gentoo.org/919779
    Closes: https://bugs.gentoo.org/919779
    Closes: https://bugs.gentoo.org/861209
    Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 www-apps/cgit/Manifest                    |   2 +
 www-apps/cgit/cgit-1.2.3_p20240802.ebuild | 121 ++++++++++++++++++++++++++++++
 2 files changed, 123 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 6b89cd8e5d9d999510537488f41d676b6967d738
Author:     Zurab Kvachadze <zurabid2016@gmail.com>
AuthorDate: 2025-03-18 01:18:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-18 13:57:19 +0000

    www-apps/cgit: add 1.2.3_p20240802
    
    There has not been any release of cgit since 2020. This commit adds the
    newest version of cgit which contains fixes for two bugs.
    
    The bug 919779 is a compilation failure with GCC 15 in bundled Git. This
    bug is probably fixed, as the bundled Git's version is bumped from 2.25
    to 2.46.
    
    Bug: https://bugs.gentoo.org/919779
    Closes: https://bugs.gentoo.org/919779
    Closes: https://bugs.gentoo.org/861209
    Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 www-apps/cgit/Manifest                    |   2 +
 www-apps/cgit/cgit-1.2.3_p20240802.ebuild | 121 ++++++++++++++++++++++++++++++
 2 files changed, 123 insertions(+)
Comment 11 zurabid2016 2025-03-19 19:01:36 UTC
By GCC 15 compilation bug, I meant to mention https://bugs.gentoo.org/944227, not https://bugs.gentoo.org/919779.
Comment 12 zurabid2016 2025-03-19 19:36:09 UTC
I am sorry, I meant this one is definitely fixed. Let me clarify.

Based on the commit log, the following bugs are fixed in the snapshot (so should be RESOLVED FIXED):
    * 919779, 861209

This bug is with bundled Git submodule and is __probably__ fixed with the commit in question (I don't what its status should be):
    * 944227