Skip to content

Conversation

@MastaG
Copy link
Contributor

@MastaG MastaG commented Jan 12, 2026

Now that KOS switched to m4-single by default, lets give it another go.

@DC-SWAT
Copy link
Owner

DC-SWAT commented Jan 24, 2026

I updated KOS, now everything should be compiled.

@MastaG MastaG force-pushed the feature/m4-single branch 2 times, most recently from 53b3d62 to e5fbba7 Compare January 25, 2026 20:17
@MastaG
Copy link
Contributor Author

MastaG commented Jan 25, 2026

Thanks @DC-SWAT everything builds fine now.
However I'm still hitting the issue where it completely freezes when selecting an ISO file.
See: #136

This also happens when building clean from master branch.

@DC-SWAT DC-SWAT force-pushed the master branch 2 times, most recently from 6a75998 to c0ee29a Compare January 26, 2026 03:00
@DC-SWAT
Copy link
Owner

DC-SWAT commented Jan 26, 2026

Sorry, you'll have to fix the conflict, I deleted this file. I wanted to merge :))

@MastaG MastaG force-pushed the feature/m4-single branch from e5fbba7 to 6297c34 Compare January 28, 2026 20:11
@MastaG
Copy link
Contributor Author

MastaG commented Jan 28, 2026

Yes it works now!
Thanks for fixing the mutex issue.

I've rebased on current master and did a complete fresh build, so from a clean /usr/loca/dc and /opt/toolchains/dc.

One other thing I did, was updating the included environ.sh based on the current one from KOS master.
I've added your changes, but one thing I noticed they added this:

# Position-Independent Code
#
# Comment this line out to enable position-independent code. Codegen is slightly
# slower, and you lose a register, but it's required when building dynamically
# linked libraries or code whose symbols aren't resolved until runtime.
#
export KOS_CFLAGS="${KOS_CFLAGS} -fno-PIC -fno-PIE"

So this is now enabled by default and Dreamshell has been built with -fno-PIC -fno-PIE.
I didn't find any problems with the ISO Loader, but if you think it can hurt other applications or modules, then I'll comment out this line.
Just let me know :)

Test build: https://mega.nz/file/a49lQa7J#s9zBr1KL4yrB794keNNcJLnO_eHrH7V_6iXej77r5uA

@DC-SWAT DC-SWAT merged commit b469a5a into DC-SWAT:master Jan 29, 2026
@DC-SWAT
Copy link
Owner

DC-SWAT commented Jan 29, 2026

Yes it works now! Thanks for fixing the mutex issue.

I've rebased on current master and did a complete fresh build, so from a clean /usr/loca/dc and /opt/toolchains/dc.

One other thing I did, was updating the included environ.sh based on the current one from KOS master. I've added your changes, but one thing I noticed they added this:

# Position-Independent Code
#
# Comment this line out to enable position-independent code. Codegen is slightly
# slower, and you lose a register, but it's required when building dynamically
# linked libraries or code whose symbols aren't resolved until runtime.
#
export KOS_CFLAGS="${KOS_CFLAGS} -fno-PIC -fno-PIE"

It's fine, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants