Skip to content
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

FFI call of Variadiac Arguments Function is not working in Apple ARM #350

Closed
tesonep opened this issue Dec 2, 2021 · 0 comments · Fixed by pharo-project/pharo#11421
Closed

Comments

@tesonep
Copy link
Collaborator

tesonep commented Dec 2, 2021

The calling convention is not the same as that in regular ARM (SysV).
It looks like LibFFI handles it, but seems there is a bug. We need to debug it and propose a fix.

Once fixed we need to un-skip the following Pharo tests.

All Failed Tests

  • MacOSX64.ThreadedFFI.Tests.TFFunctionCallTest.testVariadicFunctionWithOneFixedAndTwoOptional(#runner->[ TFSameThreadRunner uniqueInstance ])
  • MacOSX64.UnifiedFFI.Tests.Tests.FFICalloutAPITest.testCallWithAllConstParameter
  • MacOSX64.UnifiedFFI.Tests.Tests.FFICalloutAPITest.testCallWithConstParameter
  • MacOSX64.UnifiedFFI.Tests.Tests.FFIExternalEnumerationTest.testCall
  • MacOSX64.UnifiedFFI.Tests.Tests.FFIExternalEnumerationTest.testReturn
hogoww added a commit to hogoww/opensmalltalk-vm that referenced this issue Dec 23, 2021
… true ] on method [ allocateOldSpaceChunkOfBytes: ]
hogoww added a commit to hogoww/opensmalltalk-vm that referenced this issue Dec 23, 2021
…true ] on method [ allocateOldSpaceChunkOfBytes: ] KILLED by 2/168 test cases.
hogoww added a commit to hogoww/opensmalltalk-vm that referenced this issue Dec 29, 2021
hogoww added a commit to hogoww/opensmalltalk-vm that referenced this issue Dec 29, 2021
…ue] ] on method [ classAtIndex: ] KILLED by 1/30 test cases.
hogoww added a commit to hogoww/opensmalltalk-vm that referenced this issue Feb 26, 2022
hogoww added a commit to hogoww/opensmalltalk-vm that referenced this issue Feb 26, 2022
…jField:ofObject: ] 3/3 Test Cases are NOT EQUIVALENT
MarcusDenker added a commit to MarcusDenker/pharo that referenced this issue Jun 29, 2022
There where some FFI tests skiped on the M1, but they are alerady working (all green here after removing the #skipOnAppleARM)
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 a pull request may close this issue.

1 participant