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

Bug 919121

Summary: dev-debug/gdb-13.2-r2[sim] - [clang] sem.c: error: incompatible function pointer types passing void (SIM_CPU , UINT, UDI) (aka void (struct _sim_cpu , unsigned int
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: normal CC: gabifalk
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=871543
https://github.com/gentoo/gentoo/pull/36726
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
sys-devel:gdb-13.2-r2:20231203-035730.log.xz
temp.tar.xz
var.tmp.clang.tar.xz

Description Toralf Förster gentoo-dev 2023-12-03 11:02:05 UTC
sem.c:24284:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
 24284 |     DI opval = MAKEDI (0xffffff80, 0);
       |                ^~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-devel/gdb-13.2-r2/work/gdb-13.2/sim/frv/../common/cgen-types.h:77:43: note: expanded from macro 'MAKEDI'
   77 | #define MAKEDI(hi, lo) ((((DI) (SI) (hi)) << 32) | ((UDI) (USI) (lo)))
      |                          ~~~~~~~~~~~~~~~~ ^
sem.c:24343:41: error: incompatible function pointer types passing 'void (SIM_CPU *, UINT, UDI)' (aka 'void (struct _sim_cpu *, unsigned int, unsigned long)') to parameter of type 'void (*)(SIM_CPU *, UINT, DI)' (aka 'void (*)(struct _sim_cpu *, unsigned int, long)') [-Wincompatible-function-pointer-types]
 24343 |     sim_queue_fn_di_write (current_cpu, frvbf_h_acc40U_set, FLD (f_ACC40Uk), opval);
       |                                         ^~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd_merged_usr-20231128-203237

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

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.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
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):
  [1]   php8.1 *
  [2]   php8.2
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit e0d8948ec06bf496b65a64b068f20591f20de768
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 3 03:46:59 2023 +0000

    2023-12-03 03:46:59 UTC

emerge -qpvO sys-devel/gdb
[ebuild  N    ] sys-devel/gdb-13.2-r2  USE="lzma multitarget nls server sim source-highlight xml (-cet) -debuginfod -guile -python -test -vanilla -xxhash -zstd" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-12-03 11:02:06 UTC
Created attachment 876571 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-03 11:02:07 UTC
Created attachment 876572 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-03 11:02:08 UTC
Created attachment 876573 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-03 11:02:09 UTC
Created attachment 876574 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-03 11:02:10 UTC
Created attachment 876575 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-03 11:02:11 UTC
Created attachment 876576 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-03 11:02:12 UTC
Created attachment 876577 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-03 11:02:14 UTC
Created attachment 876578 [details]
sys-devel:gdb-13.2-r2:20231203-035730.log.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-03 11:02:15 UTC
Created attachment 876579 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-03 11:02:16 UTC
Created attachment 876580 [details]
var.tmp.clang.tar.xz