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

Bug 880429

Summary: dev-libs/libx86-1.1-r5 - thunk.c: error: incompatible function pointer types initializing
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-libs:libx86-1.1-r5:20221108-145830.log
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-11-08 15:44:01 UTC
      cannot be negative
        if (abs(div) > 0xffffffff) {
            ^~~
clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fno-delete-null-pointer-checks -DX86EMU -fPIC   -c -o thunk.o thunk.c
thunk.c:160:3: error: incompatible function pointer types initializing
      'x86emuu32 (*)(X86EMU_pioAddr)' (aka 'unsigned int (*)(unsigned short)')
      with an expression of type 'unsigned long (*)(unsigned short)'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4-20221108-023017

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.6
php cli (if any):
GNU Make 4.4

  HEAD of ::gentoo
commit 9c04c03548eb33ec7940ae3519122d834e82a55b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 8 14:16:57 2022 +0000

    2022-11-08 14:16:56 UTC

emerge -qpvO dev-libs/libx86
[ebuild  N    ] dev-libs/libx86-1.1-r5
Comment 1 Toralf Förster gentoo-dev 2022-11-08 15:44:02 UTC
Created attachment 829319 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-08 15:44:02 UTC
Created attachment 829321 [details]
dev-libs:libx86-1.1-r5:20221108-145830.log
Comment 3 Toralf Förster gentoo-dev 2022-11-08 15:44:04 UTC
Created attachment 829323 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-11-08 15:44:05 UTC
Created attachment 829325 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-08 15:44:06 UTC
Created attachment 829327 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-08 15:44:07 UTC
Created attachment 829329 [details]
temp.tar.bz2
Comment 7 Agostino Sarubbo gentoo-dev 2023-12-21 07:59:17 UTC
*** Bug 919886 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2024-03-13 04:46:40 UTC
The bug has been closed via the following commit(s):

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

commit 1cf69245665c7122c72e7f0402749fd959f653f2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-13 02:20:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-13 04:02:09 +0000

    dev-libs/libx86: fix modern C issue
    
    Closes: https://bugs.gentoo.org/880429
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libx86/files/libx86-1.1-c99.patch | 17 +++++++++++++
 dev-libs/libx86/libx86-1.1-r6.ebuild       | 40 ++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)