We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Error compiling phalcon 1.3.2.

When I try to compile phalcon's latest version (1.3.2) I receive this error message:

/bin/bash /home/poplix/cphalcon/build/64bits/libtool --mode=compile gcc -I. -I/home/poplix/cphalcon/build/64bits -DPHP_ATOM_INC -I/home/poplix/cphalcon/build/64bits/include -I/home/poplix/cphalcon/build/64bits/main -I/home/poplix/cphalcon/build/64bits -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden -c /home/poplix/cphalcon/build/64bits/phalcon.c -o phalcon.lo libtool: compile: gcc -I. -I/home/poplix/cphalcon/build/64bits -DPHP_ATOM_INC -I/home/poplix/cphalcon/build/64bits/include -I/home/poplix/cphalcon/build/64bits/main -I/home/poplix/cphalcon/build/64bits -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden -c /home/poplix/cphalcon/build/64bits/phalcon.c -fPIC -DPIC -o .libs/phalcon.o /tmp/cc5rXNVg.s: Assembler messages: /tmp/cc5rXNVg.s:296193: Error: no such instruction: `vfmadd312sd .LC2042(%rip),%xmm0,%xmm1' make: *** [phalcon.lo] Error 1

What Can I do?

edited Jun '14

So what did you do? And what system/OS are you on?

When I istalled 1.3.2, I cloned it from github and just "install"ed

git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build/
sudo ./install

Hope this help.

edited Jun '14

Hi, I use ubuntu 12.04.4 Lts, php 5.5.13 and gcc 4.6.3.

I did the same things you wrote: clone from git and install.

I also tried to clone only the branch 1.3.2 but without success.

Gio

I had the same issue but i was able to compile it this way:

cd cphalcon/ext
export CFLAGS="-O2 -finline-functions -fvisibility=hidden"
phpize
./configure --enable-phalcon
make
make install
[email protected]:~/kit/cphalcon/ext# uname -a
Linux dev 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[email protected]:~/kit/cphalcon/ext# php -v
PHP 5.5.15-1+deb.sury.org~precise+1 (cli) (built: Jul 24 2014 15:44:50)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
[email protected]:~/kit/cphalcon/ext# php -r "echo phpversion('phalcon');"
1.3.2