Skip to content

Attempt to fix build #9087 on macOs intel. #9170

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

Closed
wants to merge 1 commit into from

Conversation

devnexen
Copy link
Member

Disable long 64 bits support and disable zend_string_equal_val assembly
implementation then as instructions are not longer understood.

Disable long 64 bits support and disable zend_string_equal_val assembly
implementation then as instructions are not longer understood.
@TimWolla
Copy link
Member

FYI: macOS 10 CI should work again in ~2 hours: https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/

@@ -23,7 +23,7 @@
#include <stdint.h>

/* This is the heart of the whole int64 enablement in zval. */
#if defined(__x86_64__) || defined(__LP64__) || defined(_LP64) || defined(_WIN64)
#if !defined(__APPLE__) && (defined(__x86_64__) || defined(__LP64__) || defined(_LP64) || defined(_WIN64))
Copy link
Member

Choose a reason for hiding this comment

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

Ugh, it would be pretty sad, if we couldn't have 64bit integers on macOS.

Copy link
Member Author

@devnexen devnexen Jul 28, 2022

Choose a reason for hiding this comment

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

Yes I know, not too "proud" about it :-) ... but either we "ignore" the failed test if we re sure it works well in fact in real hardware, mac Intel is a dying trend but will take a certain time to actually die.

Copy link
Member

Choose a reason for hiding this comment

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

I'd assume the vast majority of people use a 64-bit build of PHP and might thus implicitly be depending on 64-bit integers. @devnexen Just disabling zend_string_equal_val for macOS doesn't do it?

Copy link
Member Author

@devnexen devnexen Jul 28, 2022

Choose a reason for hiding this comment

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

oh for sure it builds if I do what you say but ... the main "issue" still remain then

image

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, what is the diff? In #9087 it is:

     sscanf 64-bit signed int '9223372036854775807'  (2^63)-1 = 9223372036854775807
     sscanf 64-bit unsign int '18446744073709551615' (2^64)-1 = 18446744073709551615
     printf 64-bit signed int '9223372036854775807'  (2^63)-1 = 9223372036854775807
007+ printf 64-bit signed int '18446744073709551615' (2^64)-1 = 9223372036854775808
007- printf 64-bit signed int '18446744073709551615' (2^64)-1 = 0
     Done

That doesn't look like a general 64bit integer issue; and frankly, that part of the test looks fishy anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

anyhow

but either we "ignore" the failed test

@zeriyoshi said the test pass w/o issue in his intel mac.

Copy link
Member

@iluuu1994 iluuu1994 Jul 28, 2022

Choose a reason for hiding this comment

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

Do we support ARM for mac? Does it work without Rosetta?
It's not listed in https://wiki.php.net/platforms at least.

Copy link
Member

Choose a reason for hiding this comment

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

The point is that I would like to understand why this test fails on some platforms, and also, why it passes on (most) others. It doesn't appear to be related to the size of integers, since 18446744073709551615 is supposed to be parsed as float anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

Do we support ARM for mac? Does it work without Rosetta? It's not listed in https://wiki.php.net/platforms at least.

It does pass w/o issue on pure arm mode then my fix is not appropriate indeed.

@devnexen devnexen closed this Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants