Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880429 - dev-libs/libx86-1.1-r5 - thunk.c: error: incompatible function pointer types initializing
Summary: dev-libs/libx86-1.1-r5 - thunk.c: error: incompatible function pointer types ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 919886 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-08 15:44 UTC by Toralf Förster
Modified: 2024-03-13 04:46 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.52 KB, text/plain)
2022-11-08 15:44 UTC, Toralf Förster
Details
dev-libs:libx86-1.1-r5:20221108-145830.log (dev-libs:libx86-1.1-r5:20221108-145830.log,5.96 KB, text/plain)
2022-11-08 15:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,70.12 KB, text/plain)
2022-11-08 15:44 UTC, Toralf Förster
Details
environment (environment,79.41 KB, text/plain)
2022-11-08 15:44 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.66 KB, application/x-bzip)
2022-11-08 15:44 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,21.03 KB, application/x-bzip)
2022-11-08 15:44 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 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(+)