build() {
cd "$srcdir/$_pkgname-$pkgver/build/phalcon"
make -s -j"$(getconf _NPROCESSORS_ONLN)"
}
**Expected behavior**
Expected behavior is a working build of cphalcon at v5.0.0beta3/
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Details**
- Phalcon version: v5.0.0beta3
- PHP Version: v8.1.5
- Operating System: ArchLinux
- Installation type: Compiling from source
- Zephir version (if any): N/a
- Server: Nginx
- Other related info (Database, table schema): N/a
**Additional context**
I have not tried installing the package in a clean CHROOT environment yet, but I suspect the same failures in compilation would arise.
Questions? Forum: https://phalcon.io/forum or Discord: https://phalcon.io/discord
Describe the bug
php-phalcon
is currently unable to be compiled on Archlinux using the steps shown to be the correct way to compile.I am on of the maintainers for the pkgbuild for the Archlinux installation.
To Reproduce See compilation output log: https://gist.github.com/quinnjr/e71ed0e9990e364a17ba48cfec824832
Steps to reproduce the behavior:
php-phalcon
to use the new build system for v5.pkgname=php-phalcon _pkgname=cphalcon pkgver=5.0.0beta3 pkgrel=1 pkgdesc="Web framework delivered as a C-extension for PHP" url="http://phalconphp.com" arch=('x86_64' 'i686') [[ $CARCH == 'i686' ]] && cd _arch=32bits || _arch=64bits license=('PHP') depends=('php' 'php-psr') makedepends=('gcc') backup=('etc/php/conf.d/phalcon.ini') source=("https://github.com/phalcon/cphalcon/archive/v$pkgver.zip") b2sums=('f0de151a5b71b7535ee869213d86fac232664567357ea6d07a3c064d96614dc44095fc580f17aa8095aac28c5413b15c6b4d234f6fac1cfeb6f0cdd336925923')
prepare() {
cd "$srcdir/$_pkgname-$pkgver/build" export CC="gcc" export CPPFLAGS="-DPHALCON_RELEASE"
PHPIZE_BIN=$(command -v phpize 2>/dev/null) PHPCONFIG_BIN=$(command -v php-config 2>/dev/null) PHP_FULL_VERSION=
${PHPCONFIG_BIN} --version
php gen-build.php
echo "int main() {}" > t.c gcc ${CFLAGS} t.c -o t 2> t.t if [ $? != 0 ]; then chmod +x gcccpuopt BFLAGS=
./gcccpuopt
export CFLAGS="-O2 -fomit-frame-pointer $BFLAGS" gcc ${CFLAGS} t.c -o t 2> t.t if [ $? != 0 ]; then export CFLAGS="-O2" fi fiif [ $(gcc -dumpversion | cut -f1 -d.) -ge 4 ]; then gcc ${CFLAGS}-fvisibility=hidden t.c -o t 2> t.t && export CFLAGS="$CFLAGS -fvisibility=hidden" fi
rm -f t.t t.c t
cd "phalcon/"
if [ -f Makefile ]; then make clean ${PHPIZE_BIN} --clean fi
${PHPIZE_BIN} export echo=echo
./configure --silent --with-php-config=${PHPCONFIG_BIN} --enable-phalcon }
build() { cd "$srcdir/$_pkgname-$pkgver/build/phalcon" make -s -j"$(getconf _NPROCESSORS_ONLN)" }