php-ds / ext-ds

An extension providing efficient data structures for PHP 7
https://medium.com/p/9dda7af674cd
MIT License
2.11k stars 95 forks source link

Cannot compile - Makefile:191: recipe for target 'src/common.lo' failed #160

Closed simPod closed 4 years ago

simPod commented 4 years ago

My build server tries to compile ds v1.3.0 but fails

I'm running this:

curl -sS https://packages.sury.org/php/apt.gpg | apt-key add -
echo 'deb https://packages.sury.org/php/ stretch main' > /etc/apt/sources.list.d/deb.sury.org.list

apt-get update && \
    apt-get install -y --no-install-recommends \
        php-pear \
        php7.4-bcmath \
        php7.4-cli \
        php7.4-common \
        php7.4-curl \
        php7.4-dev \
        php7.4-gd \
        php7.4-json \
        php7.4-intl \
        php7.4-ldap \
        php7.4-mbstring \
        php7.4-pgsql \
        php7.4-snmp \
        php7.4-xml \
        php7.4-zip \
        && \
    pecl install ds && \
    echo "extension = ds.so" >> /etc/php/7.4/cli/conf.d/ds.ini \
        && \
    rm -rf /var/lib/apt/lists/*

Makefile:191: recipe for target 'src/common.lo' failed

Build log [16:14:42] downloading ds-1.3.0.tgz ... [16:14:42] Starting to download ds-1.3.0.tgz (52,494 bytes) [16:14:43] .............done: 52,494 bytes [16:14:43] 96 source files, building [16:14:43] running: phpize [16:14:43] Configuring for: [16:14:43] PHP Api Version: 20190902 [16:14:43] Zend Module Api No: 20190902 [16:14:43] Zend Extension Api No: 320190902 [16:14:43] building in /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0 [16:14:43] running: /tmp/pear/temp/ds/configure --with-php-config=/usr/bin/php-config [16:14:43] checking for grep that handles long lines and -e... /bin/grep [16:14:43] checking for egrep... /bin/grep -E [16:14:43] checking for a sed that does not truncate output... /bin/sed [16:14:43] checking for pkg-config... /usr/bin/pkg-config [16:14:43] checking pkg-config is at least version 0.9.0... yes [16:14:43] checking for cc... cc [16:14:43] checking whether the C compiler works... yes [16:14:43] checking for C compiler default output file name... a.out [16:14:43] checking for suffix of executables... [16:14:43] checking whether we are cross compiling... no [16:14:43] checking for suffix of object files... o [16:14:43] checking whether we are using the GNU C compiler... yes [16:14:43] checking whether cc accepts -g... yes [16:14:43] checking for cc option to accept ISO C89... none needed [16:14:43] checking how to run the C preprocessor... cc -E [16:14:43] checking for icc... no [16:14:43] checking for suncc... no [16:14:43] checking for system library directory... lib [16:14:43] checking if compiler supports -R... no [16:14:44] checking if compiler supports -Wl,-rpath,... yes [16:14:44] checking build system type... x86_64-pc-linux-gnu [16:14:44] checking host system type... x86_64-pc-linux-gnu [16:14:44] checking target system type... x86_64-pc-linux-gnu [16:14:44] checking for PHP prefix... /usr [16:14:44] checking for PHP includes... -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib [16:14:44] checking for PHP extension directory... /usr/lib/php/20190902 [16:14:44] checking for PHP installed headers prefix... /usr/include/php/20190902 [16:14:44] checking if debug is enabled... no [16:14:44] checking if zts is enabled... no [16:14:44] checking for gawk... no [16:14:44] checking for nawk... nawk [16:14:44] checking if nawk is broken... no [16:14:44] checking whether to enable ds support... yes, shared [16:14:44] checking how to print strings... printf [16:14:44] checking for a sed that does not truncate output... (cached) /bin/sed [16:14:44] checking for fgrep... /bin/grep -F [16:14:44] checking for ld used by cc... /usr/bin/ld [16:14:44] checking if the linker (/usr/bin/ld) is GNU ld... yes [16:14:44] checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B [16:14:44] checking the name lister (/usr/bin/nm -B) interface... BSD nm [16:14:44] checking whether ln -s works... yes [16:14:44] checking the maximum length of command line arguments... 1572864 [16:14:44] checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop [16:14:44] checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop [16:14:44] checking for /usr/bin/ld option to reload object files... -r [16:14:44] checking for objdump... objdump [16:14:44] checking how to recognize dependent libraries... pass_all [16:14:44] checking for dlltool... no [16:14:44] checking how to associate runtime and link libraries... printf %s\n [16:14:44] checking for ar... ar [16:14:44] checking for archiver @FILE support... @ [16:14:44] checking for strip... strip [16:14:44] checking for ranlib... ranlib [16:14:44] checking for gawk... (cached) nawk [16:14:44] checking command to parse /usr/bin/nm -B output from cc object... ok [16:14:44] checking for sysroot... no [16:14:44] checking for a working dd... /bin/dd [16:14:44] checking how to truncate binary pipes... /bin/dd bs=4096 count=1 [16:14:44] checking for mt... no [16:14:44] checking if : is a manifest tool... no [16:14:44] checking for ANSI C header files... yes [16:14:44] checking for sys/types.h... yes [16:14:44] checking for sys/stat.h... yes [16:14:44] checking for stdlib.h... yes [16:14:44] checking for string.h... yes [16:14:44] checking for memory.h... yes [16:14:44] checking for strings.h... yes [16:14:44] checking for inttypes.h... yes [16:14:44] checking for stdint.h... yes [16:14:44] checking for unistd.h... yes [16:14:44] checking for dlfcn.h... yes [16:14:44] checking for objdir... .libs [16:14:44] checking if cc supports -fno-rtti -fno-exceptions... no [16:14:44] checking for cc option to produce PIC... -fPIC -DPIC [16:14:45] checking if cc PIC flag -fPIC -DPIC works... yes [16:14:45] checking if cc static flag -static works... yes [16:14:45] checking if cc supports -c -o file.o... yes [16:14:45] checking if cc supports -c -o file.o... (cached) yes [16:14:45] checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes [16:14:45] checking whether -lc should be explicitly linked in... no [16:14:45] checking dynamic linker characteristics... GNU/Linux ld.so [16:14:45] checking how to hardcode library paths into programs... immediate [16:14:45] checking whether stripping libraries is possible... yes [16:14:45] checking if libtool supports shared libraries... yes [16:14:45] checking whether to build shared libraries... yes [16:14:45] checking whether to build static libraries... no [16:14:45] configure: patching config.h.in [16:14:45] configure: creating ./config.status [16:14:45] config.status: creating config.h [16:14:45] config.status: executing libtool commands [16:14:45] running: make [16:14:45] /bin/bash /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/ds -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/include -I/tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/main -I/tmp/pear/temp/ds -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/ds/src/common.c -o src/common.lo [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 933: X--mode=compile: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1100: *** Warning: inferring the mode of operation is deprecated.: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1101: *** Future versions of Libtool will require --mode=MODE be specified.: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: Xcc: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I.: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/tmp/pear/temp/ds: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-DPHP_ATOM_INC: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/include: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/main: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/tmp/pear/temp/ds: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/usr/include/php/20190902: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/usr/include/php/20190902/main: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/usr/include/php/20190902/TSRM: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/usr/include/php/20190902/Zend: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/usr/include/php/20190902/ext: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-I/usr/include/php/20190902/ext/date/lib: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-DHAVE_CONFIG_H: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-g: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-O2: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1244: X-c: command not found [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1297: Xsrc/common.lo: No such file or directory [16:14:45] /tmp/pear/temp/pear-build-defaultuser8FUJse/ds-1.3.0/libtool: line 1302: libtool: compile: cannot determine name of library object from `': command not found [16:14:45] Makefile:191: recipe for target 'src/common.lo' failed [16:14:45] make: *** [src/common.lo] Error 1 [16:14:45] ERROR: `make' failed
simPod commented 4 years ago

Ah, I have the same issue with 1.2.9 now

simPod commented 4 years ago

Don't know what is is though all pecl installs fail for me. Not issue of this ext.