Skip to content

PIE Installation fails: php_fastcsv.h:21:10: fatal error: lib/csv_config.h: No such file or directory #3

@Radiergummi

Description

@Radiergummi

Trying to add ext-fastcsv to a custom Docker PHP image using the following command:

pie install -j$(nproc) csvtoolkit/fastcsv --enable-fastcsv

I get the following build output:

48.71 + pie install -j12 csvtoolkit/fastcsv --enable-fastcsv
48.75 🥧 PHP Installer for Extensions (PIE) 1.2.1, from The PHP Foundation
48.82 You are running PHP 8.4.15
48.84 Target PHP installation: 8.4.15 ts, on Linux/OSX/etc x86_64 (from /usr/local/bin/php)
49.27 Found package: csvtoolkit/fastcsv:v0.0.2 which provides ext-fastcsv
50.34 Extracted csvtoolkit/fastcsv:v0.0.2 source to: /config/pie/php8.4_be4f2d7962608879901535527c1c32d7/vendor/csvtoolkit/fastcsv
50.63 phpize complete.
51.23 Configure complete with options: --enable-fastcsv --with-php-config=/usr/local/bin/php-config
51.50 
51.52 In Process.php line 269:
51.52                                                                                
51.52   The command "'make' '-j12'" failed.                                          
51.52                                                                                
51.52   Exit Code: 2(Misuse of shell builtins)                                       
51.52                                                                                
51.52   Working directory: /config/pie/php8.4_be4f2d7962608879901535527c1c32d7/vend  
51.52   or/csvtoolkit/fastcsv                                                        
51.52                                                                                
51.52   Output:                                                                      
51.52   ================                                                             
51.52   /bin/bash /config/pie/php8.4_be4f2d7962608879901535527c1c32d7/vendor/csvtoo  
51.52   lkit/fastcsv/libtool --tag=CC --mode=compile cc -I. -I/config/pie/php8.4_be  
51.52   4f2d7962608879901535527c1c32d7/vendor/csvtoolkit/fastcsv -I/usr/local/inclu  
51.52   de/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/l  
51.52   ocal/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php  
51.52   /ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_E  
51.52   XT=1 -c /config/pie/php8.4_be4f2d7962608879901535527c1c32d7/vendor/csvtoolk  
51.52   it/fastcsv/fastcsv.c -o fastcsv.lo  -MMD -MF fastcsv.dep -MT fastcsv.lo      
51.52   mkdir .libs                                                                  
51.52    cc -I. -I/config/pie/php8.4_be4f2d7962608879901535527c1c32d7/vendor/csvtoo  
51.52   lkit/fastcsv -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/  
51.52   local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/p  
51.52   hp/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -D_GNU_  
51.52   SOURCE -DZEND_COMPILE_DL_EXT=1 -c /config/pie/php8.4_be4f2d7962608879901535  
51.52   527c1c32d7/vendor/csvtoolkit/fastcsv/fastcsv.c -MMD -MF fastcsv.dep -MT fas  
51.52   tcsv.lo  -fPIC -DPIC -o .libs/fastcsv.o                                      
51.52                                                                                
51.52                                                                                
51.52   Error Output:                                                                
51.52   ================                                                             
51.52   make: *** No rule to make target '/config/pie/php8.4_be4f2d7962608879901535  
51.52   527c1c32d7/vendor/csvtoolkit/fastcsv/lib/arena.c', needed by 'lib/arena.lo'  
51.52   .  Stop.                                                                     
51.52   make: *** Waiting for unfinished jobs....                                    
51.52   In file included from /config/pie/php8.4_be4f2d7962608879901535527c1c32d7/v  
51.52   endor/csvtoolkit/fastcsv/fastcsv.c:9:                                        
51.52   /config/pie/php8.4_be4f2d7962608879901535527c1c32d7/vendor/csvtoolkit/fastc  
51.52   sv/php_fastcsv.h:21:10: fatal error: lib/csv_config.h: No such file or dire  
51.52   ctory                                                                        
51.52      21 | #include "lib/csv_config.h"                                          
51.52         |          ^~~~~~~~~~~~~~~~~~                                          
51.52   compilation terminated.                                                      
51.52   make: *** [Makefile:207: fastcsv.lo] Error 1                                 
51.52                                                                                
51.52 
51.52 install [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--skip-enable-extension] [--force] [-d|--working-dir WORKING-DIR] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--with-phpize-path WITH-PHPIZE-PATH] [--enable-fastcsv] [--] [<requested-package-and-version>]
51.52 
------

Did I miss an installation step?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions