Skip to content

Repair linux64x64 compilation #688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: Cog
Choose a base branch
from

Conversation

tonyg
Copy link

@tonyg tonyg commented Jul 8, 2024

Hello Eliot et al.,

I produced these commits to get Cog building on Debian sid/trixie from current git Cog branch. The number of faults suggested to me that I was holding it wrong but I couldn't figure out what specifically I was doing; if I have been an idiot, and these commits are unnecessary, please let me know because I'll be happy not to have needed them :-)

The commits can be applied individually. I wrote them in a hurry; hopefully they're reasonable?

There's one, de1cb25 (the "workaround" one) that should probably not be applied, but that I include for completeness because otherwise I do not seem to be able to get the build to go through.

Cheers,
Tony

@cstes
Copy link
Contributor

cstes commented Aug 18, 2024

I wonder in the first place what the code cleanup was/or is in OpenSmalltalk that has happened over the last few weeks. Also see the report in #685 .

@eliotmiranda
Copy link
Contributor

eliotmiranda commented Aug 20, 2024 via email

@tonyg
Copy link
Author

tonyg commented Aug 21, 2024 via email

Copy link
Contributor

@eliotmiranda eliotmiranda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good except for the changes around the unix SoundPlugin.h. Please change sound_SetDevice/GetSwitch/SetSwitch to use sqInt instead of int.

The reasons are that
a) sqInt is guaranteed to be equal to the word size whereas typically int is only 32 bits and so too small on 64-bits to capture the full range of possible values
b) because sqInt is word size typically better/more natural code is generated on 64-bit platforms than for int

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.

3 participants