-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Build failure: cast.c: error: initialization of 'fpos_t (*)(void *, fpos_t, int)' {aka 'long long int (*)(void *, long long int, int)'} from incompatible pointer type
#15701
Comments
Is this perhaps related to Lines 30 to 38 in 5ca4d88
|
Why is
Oh. Really? Putting lipstick on the pig? In my opinion, WONTFIX. |
The standard does not require
I get your point, but at the same time if the code uses incorrect types, it is a bug, even if it shows up only on a non-standard and seldom used set-up. |
FYI: I'm seeing what looks to me the same error on Alpine 3.21 (with gcc 14.2) Docker builds (https://github.com/docker-library/php/actions/runs/12180571464/job/34004763272?pr=1552#step:5:1369):
On Alpine 3.20 (with gcc 13.2.1_git20240309-r0) this is only a warning; see https://github.com/docker-library/php/actions/runs/12180571464/job/34004764003?pr=1552#step:5:1343. Weirdly enough, it only errs on PHP 8.1 and is fine on >= 8.2; see e.g. https://github.com/docker-library/php/actions/runs/12180571464/job/34004753931?pr=1552#step:5:1481. |
There is no standard regarding Lines 30 to 51 in 3e2cfdf
Possibly the following condition is not met: Lines 25 to 28 in 3e2cfdf
Can you check that @barracuda156? It might even be sufficient to check
It's quite likely that there had been relevant changes between PHP 8.1 and 8.2. But anyway, PHP-8.1 won't receive regular bugfixes anymore, so this is moot. |
No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you. |
@cmb69 From the looks of the macro it should work as intended (gcc should not define Upd. In fact, it may need to be:
and not |
Oh, indeed, that is "unclean". In my opinion, it should be either Now I wonder whether macports defines the macro in some way. Maybe some additional configuration. cc @ryandesign |
Description
Attempt to build PHP with gcc-14 fails due to incompatible pointer types error.
Resulted in this output:
But I expected this output instead:
Build with the current GCC version should succeed.
@ryandesign FYI
PHP Version
PHP 8.4.0beta3
Operating System
macOS 10.6
The text was updated successfully, but these errors were encountered: