Skip to content

repair cross-compilation of ftype-scheme-object-pointer#1038

Merged
mflatt merged 1 commit into
cisco:mainfrom
mflatt:cross-obj-fptr
Apr 27, 2026
Merged

repair cross-compilation of ftype-scheme-object-pointer#1038
mflatt merged 1 commit into
cisco:mainfrom
mflatt:cross-obj-fptr

Conversation

@mflatt
Copy link
Copy Markdown
Contributor

@mflatt mflatt commented Apr 23, 2026

Checking whether a parent type represents a Scheme-object ftype pointer used an accessor technique that does not work for cross compilation.

Also, repair a documentation typo and a technically too-weak check for consistent record definition.

Unfortunately, there's not an added test here, because the problem is pretty far outside the current test harness. Detecting the bug requires cross-compilation on a 64-bit platform for a 32-bit platform, and then running in 32-bit mode and loading the cross-compiled program. That could be checked via CI using a Linux host that can run both 32-bit and 64-bit executables, for example, but it seems a lot to add to check this small corner.

There's also not a bug-fix note in "release_notes.stex", because it's a repair to functionality that's new since most recent release.

Checking whether a parent type represents a Scheme-object ftype
pointer used an accessor technique that does not work for cross
compilation.

Also, repair a documentation typo and a technically too-weak check for
consistent record definition.
Copy link
Copy Markdown
Contributor

@burgerrg burgerrg left a comment

Choose a reason for hiding this comment

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

Thank you for finding and fixing this!

@mflatt mflatt merged commit 4bde3b3 into cisco:main Apr 27, 2026
16 checks passed
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