Draft
Port to ghcr.io/ps2homebrew/ps2homebrew:main (new PS2SDK + GCC 15)#18
Conversation
Copilot
AI
changed the title
Fix compilation with ghcr.io/ps2homebrew/ps2homebrew:main Docker image
Port to ghcr.io/ps2homebrew/ps2homebrew:main (new PS2SDK + GCC 15)
Jun 13, 2026
Copilot created this pull request from a session on behalf of
AKuHAK
June 13, 2026 09:11
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The project failed to build with the current
ghcr.io/ps2homebrew/ps2homebrew:mainDocker image due to breaking changes in the new PS2SDK and stricter GCC 15 behavior.CI
ps2dev/ps2dev:v1.0→ghcr.io/ps2homebrew/ps2homebrew:main::set-output→$GITHUB_OUTPUTactions/checkoutandupload-artifactto v4New SDK header guards (
NEWLIB_PORT_AWARE)New SDK gates
fileio.h/fileXio_rpc.h/io_common.hbehind#ifndef NEWLIB_PORT_AWARE. Added#define NEWLIB_PORT_AWAREbefore those includes in all affected PS2 driver files.API renames & type changes
fio_dirent_t→io_dirent_t(browser.c)ee_thread_t→ee_thread_status_tforReferThreadStatus(cd/cd.c)libjpg.h→libjpg_ps2_addons.h;jpgOpenFILE+jpgReadImage→jpgFromFILEwhich returns ajpgData*withbufferalready populatedGCC 15 strictness fixes
FCEUD_NetworkClose,FCEUD_SendData,FCEUD_RecvData,FCEUD_NetplayText(fceu.c,netplay.c)void FDSSound()conflicted with definitionvoid FDSSound(int c)— GCC 15 treats()as(void)(fds.c)int true = 1; int false = 0;conflicts withstdbool.hnow pulled in transitively — removed (cnfsettings.c)asprintfgated behind__GNU_VISIBLE— added#define _GNU_SOURCE(general.c)libcdvd header conflicts
libcdvd-common.hdefines#define CdCallback sceCdCallbacketc., causing redefinition conflicts with local declarations incdvd_iop.h. Replaced all local struct definitions and function declarations with typedefs to SDK types:Kept only
CdFlushCacheandCdGetSizewhich are locally implemented.Makefile
-ljpeg_ps2_addonsforjpgFromFILE-Wl,--allow-multiple-definitionto resolve duplicate zlib symbols (bundledsrc/zlib/vs systemlibz.a)