Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 921758

Summary: media-gfx/argyllcms-3.1.0 - [clang] icc/icc.c: error: no member named _printf_chk in struct _icmFile
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
media-gfx:argyllcms-3.1.0:20240111-015552.log
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-01-11 08:21:19 UTC
	clang -c -o plot/vrml.o -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DUNIX -D_THREAD_SAFE -m64 -DARGYLLCMS -DALLINSTS -Iplot -I/usr/local/include -Ih -Iicc -Icgats -Inumlib -Igamut plot/vrml.c


	clang -c -o icc/icc.o -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DUNIX -D_THREAD_SAFE -m64 -DARGYLLCMS -DALLINSTS -Iicc -I/usr/local/include icc/icc.c

icc/icc.c:4852:7: error: no member named '__printf_chk' in 'struct _icmFile'
 4852 |                 op->printf(op,PAD("  ASCII data, length %u chars:\n"),count);
      |                 ~~  ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-20231225-172010

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

CC=clang
CXX=clang++
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
Python 3.11.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.74.1
  [2]   rust-1.74.1 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
3)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
5)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-11 
  [4]   openjdk-bin-17 
  [5]   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 2b1202a4e261a3db8adfea760d3caae152157cff
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Jan 11 01:03:21 2024 +0000

    2024-01-11 01:03:21 UTC

emerge -qpvO media-gfx/argyllcms
[ebuild  N    ] media-gfx/argyllcms-3.1.0  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2024-01-11 08:21:20 UTC
Created attachment 881909 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-11 08:21:21 UTC
Created attachment 881910 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-01-11 08:21:22 UTC
Created attachment 881911 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-01-11 08:21:23 UTC
Created attachment 881912 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-01-11 08:21:24 UTC
Created attachment 881913 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-11 08:21:25 UTC
Created attachment 881914 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-11 08:21:27 UTC
Created attachment 881915 [details]
media-gfx:argyllcms-3.1.0:20240111-015552.log
Comment 8 Toralf Förster gentoo-dev 2024-01-11 08:21:28 UTC
Created attachment 881916 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-01-11 08:21:29 UTC
Created attachment 881917 [details]
temp.tar.xz
Comment 10 Bernard Cafarelli gentoo-dev 2024-01-11 22:08:12 UTC
This is actually a _FORTIFY_SOURCE + clang issue, similar to https://github.com/llvm/llvm-project/issues/63573

Adding -D_FORTIFY_SOURCE=1 to CFLAGS compilation passes. Now to track printf in this structure code