Coder Social home page Coder Social logo

php-src-backports's Issues

Unable to compile PHP 5.6 on aarch64 in AlmaLinux 9.3

Describe the bug

Attempt to compile PHP 5.6 on AlmaLinux 9.3 on aarch64 results in this error:

/bin/sh /usr/src/php-5.6/libtool --silent --preserve-dup-deps --mode=compile cc  -IZend/ -I/usr/src/php-5.6/Zend/ -DPHP_ATOM_INC -I/usr/src/php-5.6/include -I/usr/src/php-5.6/main -I/usr/src/php-5.6 -I/usr/src/php-5.6/ext/date/lib -I/usr/src/php-5.6/ext/ereg/regex -I/usr/include/libxml2 -I/usr/src/php-5.6/ext/mbstring/oniguruma -I/usr/src/php-5.6/ext/mbstring/libmbfl -I/usr/src/php-5.6/ext/mbstring/libmbfl/mbfl -I/usr/src/php-5.6/ext/sqlite3/libsqlite -I/usr/src/php-5.6/TSRM -I/usr/src/php-5.6/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /usr/src/php-5.6/Zend/zend_operators.c -o Zend/zend_operators.lo 
/tmp/ccaqQeJY.s: Assembler messages:
/tmp/ccaqQeJY.s:6629: Error: operand 2 must be an integer register -- `mul x2,v0,v1'
/tmp/ccaqQeJY.s:6630: Error: operand 2 must be an integer register -- `smulh x0,v0,v1'
/tmp/ccaqQeJY.s:7341: Error: operand 2 must be an integer register -- `mul x2,v9,v0'
/tmp/ccaqQeJY.s:7342: Error: operand 2 must be an integer register -- `smulh x1,v9,v0'
/tmp/ccaqQeJY.s:7488: Error: operand 2 must be an integer register -- `mul x2,v0,v0'
/tmp/ccaqQeJY.s:7489: Error: operand 2 must be an integer register -- `smulh x1,v0,v0'
make: *** [Makefile:1633: Zend/zend_operators.lo] Error 1

Version

  • I have checked releases, and the bug exists in the latest version.

Operating systems

AlmaLinux 9.3 aarch64

To Reproduce

  1. checkout this repository
  2. go to the folder with a checkout
  3. run the git checkout 5.6.40 command
  4. run the CFLAGS="-Wno-implicit-function-declaration" command
  5. run the ./buildconf --force command
  6. install missing development packages (in my case I've used dnf install libxml2-devel bzip2-devel libcurl-devel libpng-devel libicu-devel libmcrypt-devel readline-devel command)
  7. run the ./configure --prefix=/usr/local/php-5.6 --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-openssl --with-zlib --with-bz2 --with-curl --enable-exif --with-gd --with-gettext --with-mhash --enable-mbstring --with-mcrypt --with-mysql --with-mysqli --enable-opcache --enable-pcntl --with-pdo-mysql --with-readline --enable-soap --enable-sockets --enable-shmop --enable-sysvmsg --with-pear command
  8. run make command

Expected behavior

The output should end with these lines:

Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc

Build complete.
Don't forget to run 'make test'.

Screenshots/Logs

Additional context

Are you willing to submit a PR?

The problem is already solved in PHP 7.2.0 in php/php-src@8c86792 commit, which needs to be backported. Originally reported in https://bugs.php.net/bug.php?id=70015 .

Alpine Linux

First of all, you are a hero for doing this voluntary work for us. I salut you, gentleman.

Describe the feature
The embedded Alpine Linux system is great and it would be awesome to have binaries compiled for it on the community branch.

Version

  • I have checked that the feature is missing in the latest version.

Additional context
I'm interested in php74 with all its mainstream extensions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.