Opened 13 years ago
Closed 13 years ago
#32775 closed defect (fixed)
php5-redis fails to build with clang
Reported by: | intel352@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | clang | Cc: | |
Port: | php5-redis |
Description
$ sudo port > install php5-redis
---> Computing dependencies for php5-redis ---> Building php5-redis Error: Target org.macports.build returned: shell command failed (see log for details) Log for php5-redis is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/main.log Error: Status 1 encountered during processing.
Log output:
:debug:build build phase started at Thu Jan 5 09:33:45 EST 2012 :notice:build ---> Building php5-redis :debug:build Executing org.macports.build (php5-redis) :debug:build Building in nicolasff-phpredis-43bc590 :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590" && /usr/bin/make -j2 -w all' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590" && /usr/bin/make -j2 -w all :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590' :info:build /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/libtool --mode=compile /Developer/usr/bin/clang -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.o rg_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/include -I/opt/local/var/macports/build/_opt_local_v ar_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -I/opt/local/include/php - I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.mac ports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis.c -o redis.lo :info:build /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/libtool --mode=compile /Developer/usr/bin/clang -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.o rg_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/include -I/opt/local/var/macports/build/_opt_local_v ar_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -I/opt/local/include/php - I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.mac ports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis_session.c -o redis_session.lo :info:build /Developer/usr/bin/clang -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tar balls_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis.c -fno-common -DPIC -o .libs/redis.o :info:build /Developer/usr/bin/clang -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis_session.c -fno-common -DPIC -o .libs/redis_session.o :info:build /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/libtool --mode=compile /Developer/usr/bin/clang -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/igbinary/igbinary.c -o igbinary/igbinary.lo :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis.c:1933:9: error: non-void function 'generic_multiple_args_cmd' should return a value [-Wreturn-type] :info:build WRONG_PARAM_COUNT; :info:build ^ :info:build /opt/local/include/php/Zend/zend_API.h:331:31: note: instantiated from: :info:build #define WRONG_PARAM_COUNT ZEND_WRONG_PARAM_COUNT() :info:build ^ :info:build /opt/local/include/php/Zend/zend_API.h:335:74: note: instantiated from: :info:build #define ZEND_WRONG_PARAM_COUNT() { zend_wrong_param_count(TSRMLS_C); return; } :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis.c:1934:9: error: non-void function 'generic_multiple_args_cmd' should return a value [-Wreturn-type] :info:build RETURN_FALSE; :info:build ^ :info:build /opt/local/include/php/Zend/zend_API.h:600:44: note: instantiated from: :info:build #define RETURN_FALSE { RETVAL_FALSE; return; } :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis.c:1939:9: error: non-void function 'generic_multiple_args_cmd' should return a value [-Wreturn-type] :info:build RETURN_FALSE; :info:build ^ :info:build /opt/local/include/php/Zend/zend_API.h:600:44: note: instantiated from: :info:build #define RETURN_FALSE { RETVAL_FALSE; return; } :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis.c:2086:5: error: non-void function 'generic_multiple_args_cmd' should return a value [-Wreturn-type] :info:build REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len); :info:build ^ :info:build ./common.h:113:3: note: instantiated from: :info:build SOCKET_WRITE_COMMAND(redis_sock, cmd, cmd_len); \ :info:build ^ :info:build ./common.h:80:5: note: instantiated from: :info:build RETURN_FALSE; \ :info:build ^ :info:build /opt/local/include/php/Zend/zend_API.h:600:44: note: instantiated from: :info:build #define RETURN_FALSE { RETVAL_FALSE; return; } :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis.c:3030:53: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] :info:build int key_free = redis_key_prefix(redis_sock, &key, &key_len TSRMLS_CC); :info:build ^~~~~~~~ :info:build ./library.h:37:58: note: passing argument to parameter 'key_len' here :info:build redis_key_prefix(RedisSock *redis_sock, char **key, int *key_len TSRMLS_DC); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/redis.c:4038:2: error: non-void function 'generic_hash_command_1' should return a value [-Wreturn-type] :info:build REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len); :info:build ^ :info:build ./common.h:113:3: note: instantiated from: :info:build SOCKET_WRITE_COMMAND(redis_sock, cmd, cmd_len); \ :info:build ^ :info:build ./common.h:80:5: note: instantiated from: :info:build RETURN_FALSE; \ :info:build ^ :info:build /opt/local/include/php/Zend/zend_API.h:600:44: note: instantiated from: :info:build #define RETURN_FALSE { RETVAL_FALSE; return; } :info:build ^ :info:build 1 warning and 5 errors generated. :info:build make: *** [redis.lo] Error 1 :info:build make: *** Waiting for unfinished jobs.... :info:build mkdir igbinary/.libs :info:build /Developer/usr/bin/clang -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590 -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -pipe -O2 -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590/igbinary/igbinary.c -fno-common -DPIC -o igbinary/.libs/igbinary.o :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/work/nicolasff-phpredis-43bc590" && /usr/bin/make -j2 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "$procedure $targetname" :info:build Warning: the following items did not execute (for php5-redis): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for php5-redis is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php5-redis/php5-redis/main.log
Attachments (1)
Change History (6)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
Changed 13 years ago by intel352@…
php5-redis install failure (Mac OS X)
comment:3 follow-up: 4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | clang added |
---|---|
Summary: | php5-redis fails to install → php5-redis fails to build with clang |
I see you're using Clang. Can you try using a different compiler?
comment:4 Changed 13 years ago by intel352@…
Replying to ryandesign@…:
I see you're using Clang. Can you try using a different compiler?
Attempting with llvm worked, thanks! Need any other info from me, or will that issue simply remain regardless?
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for testing. I fixed the port in r88597 to use llvm-gcc-4.2 instead of clang, and reported the problem to the developers of phpredis.
Note: See
TracTickets for help on using
tickets.
Please "sudo port clean php5-redis" and try again; if it fails again, attach the entire main.log