Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920450 - sys-devel/dev86-0.16.21-r3 fails to compile (GCC-14-SYSTEM): dbprintf.c:24:9: error: implicit declaration of function [-Wimplicit-function-declaration]
Summary: sys-devel/dev86-0.16.21-r3 fails to compile (GCC-14-SYSTEM): dbprintf.c:24:9:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2023-12-21 08:08 UTC by Agostino Sarubbo
Modified: 2025-02-07 23:52 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,48.92 KB, text/plain)
2023-12-21 08:08 UTC, Agostino Sarubbo
Details
sys-devel/dev86: GCC14 compatibility Patch (gcc14.patch,23.42 KB, patch)
2024-12-23 11:05 UTC, Max Steel
Details | Diff
My attempt at a gcc 14 patch (dev86-0.16.21-gcc14.patch,3.28 KB, patch)
2024-12-26 07:10 UTC, Norman Back
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-12-21 08:08:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-devel/dev86-0.16.21-r3 fails to compile (GCC-14-SYSTEM).
Discovered on: amd64 (internal ref: gcc14_tinderbox)

NOTE:
(GCC-14-SYSTEM) in the summary means that the bug was found on a machine that runs gcc-13 but this bug MAY or MAY NOT BE related to the new compiler
Comment 1 Agostino Sarubbo gentoo-dev 2023-12-21 08:08:55 UTC
Created attachment 880113 [details]
build.log

build log and emerge --info
Comment 2 Max Steel 2024-08-12 03:06:01 UTC
I have the same problem on my machine.

A downgrade to GCC-13 does the trick. But it seems the problem is upstream known, or at least acknowledged.


It looks like "lkundrak" on github is inactive on the project. There are several forks of it as of today with different levels of patches and fixes. I think it is worth to think about changing the current upstream version to one of the forks. But im not competent enough to do the neccessary evaluation.
Comment 3 Max Steel 2024-12-23 11:05:47 UTC
Created attachment 914791 [details, diff]
sys-devel/dev86: GCC14 compatibility Patch

Patch that works for me to get dev86 compiled by GCC-14.
Comment 4 Norman Back 2024-12-26 07:10:38 UTC
Created attachment 914871 [details, diff]
My attempt at a gcc 14 patch

My attempt at a gcc 14 patch, using 'ggc -fpermissive' for bootblocks and dis88 folders, where both gcc and bcc compile code.
Comment 5 Agostino Sarubbo gentoo-dev 2025-01-20 08:52:14 UTC
tinderbox-stable has reproduced this issue in a STABLE environment with version 0.16.21-r3
Comment 6 Larry the Git Cow gentoo-dev 2025-02-07 23:52:10 UTC
The bug has been closed via the following commit(s):

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

commit a4da4b4af030eac0ab3c1f1bcf1dc12483da42b1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-02-07 23:51:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-07 23:51:49 +0000

    sys-devel/dev86: build 0.16.21-r3 with -std=gnu89
    
    And we'll try do better in the newer version.
    
    Closes: https://bugs.gentoo.org/757675
    Closes: https://bugs.gentoo.org/891533
    Closes: https://bugs.gentoo.org/920450
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/dev86/dev86-0.16.21-r3.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=297c2d0cdc7628da67adb795f4c0f8fae5780f06

commit 297c2d0cdc7628da67adb795f4c0f8fae5780f06
Author:     Z. Liu <zhixu.liu@gmail.com>
AuthorDate: 2025-01-22 13:50:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-07 23:51:49 +0000

    sys-devel/dev86: bump to v1.0.1
    
    use "-std=c89" as workaround
    
    Bug: https://bugs.gentoo.org/757675
    Bug: https://bugs.gentoo.org/891533
    Bug: https://bugs.gentoo.org/920450
    Closes: https://bugs.gentoo.org/699812
    Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40267
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/dev86/Manifest                         |  1 +
 sys-devel/dev86/dev86-1.0.1.ebuild               | 69 ++++++++++++++++++++++++
 sys-devel/dev86/files/dev86-1.0.1-makefile.patch | 66 +++++++++++++++++++++++
 sys-devel/dev86/metadata.xml                     |  1 +
 4 files changed, 137 insertions(+)