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

Bug 919466

Summary: sci-calculators/tiemu-3.03-r2 - gencpu.c: error: type of needcycles defaults to int [-Wimplicit-int]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: CONFIRMED ---    
Severity: normal CC: gentoo, toralf
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
sci-calculators:tiemu-3.03-r2:20231208-135246.log
temp.tar.xz
tiemu-3.03-gcc-14.patch

Description Toralf Förster gentoo-dev 2023-12-08 13:54:35 UTC
make[3]: Entering directory '/var/tmp/portage/sci-calculators/tiemu-3.03-r2/work/tiemu-3.03/src/core/uae'
C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o build68k_host.o build68k.c
C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o gencpu_host.o gencpu.c
C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o readcpu_host.o readcpu.c
C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o missing_host.o missing.c
gencpu.c: In function fill_prefetch_next_1:
gencpu.c:307:13: error: type of needcycles defaults to int [-Wimplicit-int]
  307 | static void fill_prefetch_next_1 (needcycles)
      |             ^~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20231123-170505

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
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:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

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

  HEAD of ::gentoo
commit 2f2f8b1061a0f0c1b03783807db60e8e69f3abf9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 8 12:51:51 2023 +0000

    2023-12-08 12:51:50 UTC

emerge -qpvO sci-calculators/tiemu
[ebuild  N    ] sci-calculators/tiemu-3.03-r2  USE="dbus nls sdl -threads -xinerama"
Comment 1 Toralf Förster gentoo-dev 2023-12-08 13:54:36 UTC
Created attachment 878368 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-08 13:54:37 UTC
Created attachment 878369 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-08 13:54:38 UTC
Created attachment 878370 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-08 13:54:39 UTC
Created attachment 878371 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-08 13:54:41 UTC
Created attachment 878372 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-08 13:54:42 UTC
Created attachment 878373 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-08 13:54:43 UTC
Created attachment 878374 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-08 13:54:44 UTC
Created attachment 878375 [details]
sci-calculators:tiemu-3.03-r2:20231208-135246.log
Comment 9 Toralf Förster gentoo-dev 2023-12-08 13:54:45 UTC
Created attachment 878376 [details]
temp.tar.xz
Comment 10 Matt Whitlock 2024-05-12 00:25:39 UTC
This bug should block the GCC 14 tracker:

https://bugs.gentoo.org/show_bug.cgi?id=gcc-14
Comment 11 Matt Whitlock 2024-05-12 00:38:34 UTC
Created attachment 892749 [details, diff]
tiemu-3.03-gcc-14.patch

This patch is all that was needed to get TIEmu to compile with GCC 14.1.0 on amd64 for me.