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

PHP 8.0 Build Problems on macOS #26

Closed
Justintime50 opened this issue Jul 1, 2021 · 6 comments
Closed

PHP 8.0 Build Problems on macOS #26

Justintime50 opened this issue Jul 1, 2021 · 6 comments

Comments

@Justintime50
Copy link
Owner

We are getting the following when trying to build on macOS and PHP 8.

#5 47.07 ./minilua /usr/src/php/ext/opcache/jit/dynasm/dynasm.lua  -D X64=1 -o jit/zend_jit_x86.c /usr/src/php/ext/opcache/jit/zend_jit_x86.dasc
#5 48.89 make: Circular jit/zend_jit.lo <- jit/zend_jit.lo dependency dropped.
#5 48.89 /bin/sh /usr/src/php/ext/opcache/libtool --mode=compile cc -I. -I/usr/src/php/ext/opcache -I/usr/src/php/ext/opcache/include -I/usr/src/php/ext/opcache/main -I/usr/src/php/ext/opcache -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H  -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/src/php/ext/opcache/jit/zend_jit.c -o jit/zend_jit.lo 
#5 48.93 mkdir jit/.libs
#5 48.93  cc -I. -I/usr/src/php/ext/opcache -I/usr/src/php/ext/opcache/include -I/usr/src/php/ext/opcache/main -I/usr/src/php/ext/opcache -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/src/php/ext/opcache/jit/zend_jit.c  -fPIC -DPIC -o jit/.libs/zend_jit.o
#5 139.2 cc: fatal error: Killed signal terminated program cc1
#5 139.2 compilation terminated.
#5 139.2 make: *** [Makefile:299: jit/zend_jit.lo] Error 1
@Justintime50 Justintime50 added the help wanted Extra attention is needed label Jul 1, 2021
@Justintime50
Copy link
Owner Author

This was actually magically fixed after waiting many days and rebuilding, maybe something with a newer version of PHP8 got fixed or some bad cache cleared out.

@tiefenb
Copy link

tiefenb commented Mar 25, 2022

This happens still sometimes on my side :-(

@Justintime50
Copy link
Owner Author

Thanks for bringing this up @tiefenb! Can you elaborate and give me some more details so I can try to reproduce? Things that may be helpful:

  1. macOS version/computer specs used
  2. What version of this image you're trying to build (v1-v9)
  3. Is it the PHP 8.0 image?
  4. What version of Docker are you using?
  5. Does this error still occur if you try building against the v9 version of the PHP8 image?

I'll reopen the issue for now and see if I can't reproduce it.

@Justintime50 Justintime50 reopened this Mar 25, 2022
@Justintime50 Justintime50 removed the help wanted Extra attention is needed label Mar 25, 2022
@tiefenb
Copy link

tiefenb commented Mar 29, 2022

Ah sorry, I'm using the official PHP Docker file.

  • 1 GB Memory / 1 AMD vCPU / 25 GB Disk + 5 GB / FRA1 - Ubuntu 20.04 (LTS) x64 (on Digital Ocean)
  • php:8.1.4-fpm-bullseye
  • Docker version 20.10.7, build 20.10.7-0ubuntu5~20.04.2

@tiefenb
Copy link

tiefenb commented Mar 29, 2022

I opend an isse at the offical php docker git repo: docker-library/php#1283

@Justintime50
Copy link
Owner Author

Ah, if you're using the official image, then the issues you're facing are probably with the base image and not this Docker image. I hope the maintainers of the official image can provide some additional help!

I'm going to close this since you've reported the problem upstream.

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

No branches or pull requests

2 participants