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

Solved: Compile Error X--mode=compile: command not found

Compiling on Debian Squeeze with PHP 5.5.0 on Alix fails:

... -null-pointer-checks -finline-functions -fomit-frame-pointer -c /usr/src/cphalcon/build/32bits/phalcon.c -o phalcon.lo /usr/src/cphalcon/build/32bits/libtool: line 827: X--mode=compile: command not found /usr/src/cphalcon/build/32bits/libtool: line 994: Warning: inferring the mode of operation is deprecated.: command not found /usr/src/cphalcon/build/32bits/libtool: line 995: Future versions of Libtool will require --mode=MODE be specified.: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: Xgcc: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I.: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/src/cphalcon/build/32bits: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-DPHP_ATOM_INC: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/src/cphalcon/build/32bits/include: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/src/cphalcon/build/32bits/main: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/src/cphalcon/build/32bits: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/php-5.5.0/include/php: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/php-5.5.0/include/php/main: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/php-5.5.0/include/php/TSRM: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/php-5.5.0/include/php/Zend: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/php-5.5.0/include/php/ext: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-I/usr/php-5.5.0/include/php/ext/date/lib: No such file or directory /usr/src/cphalcon/build/32bits/libtool: line 1138: X-DHAVE_CONFIG_H: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-march=native: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-mtune=native: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-O2: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-fno-delete-null-pointer-checks: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-finline-functions: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-fomit-frame-pointer: command not found /usr/src/cphalcon/build/32bits/libtool: line 1138: X-c: command not found /usr/src/cphalcon/build/32bits/libtool: line 1191: Xphalcon.lo: command not found /usr/src/cphalcon/build/32bits/libtool: line 1196: libtool: compile: cannot determine name of library object from `': command not found make: *** [phalcon.lo] Fehler 1

Any hint will be appreciated.

Newest Beta Version compiles with PHP 5.5.0:



98.9k

Try the following:

cd cphalcon
cd build/32bits
export CC="gcc"
export CFLAGS="-O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer"
phpize
./configure --enable-phalcon
make && sudo make install


10

just a little thing, in Ubuntu 13.10 (64bit) phpize command is phpize5. Thanks fo help.