pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54793: lang/php74 fails to compile on multiple architectures



>Number:         54793
>Category:       pkg
>Synopsis:       lang/php74 fails to compile on multiple architectures
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 22 00:05:00 +0000 2019
>Originator:     John Klos
>Release:        NetBSD 9.0_RC1
>Organization:
	
>Environment:
	
	
System: NetBSD athena.zia.io 9.0_RC1 NetBSD 9.0_RC1 (ATHENA-$Revision: 9.9l $) #0: Sun Dec 15 16:34:56 UTC 2019 john%athena.zia.io@localhost:/home/netbsd-9/obj-alpha/sys/arch/alpha/compile/ATHENA alpha
Architecture: alpha
Machine: alpha
>Description:
	
lang/php74 fails to compile on Alpha, m68k, sparc64 and likely others:

/home/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_compile.c:81:2: error: #error Unsupported architecture
 #error Unsupported architecture
  ^~~~~
In file included from /home/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_compile.c:14158:0:
/home/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_misc.c: In function 'php_pcre2_jit_free_unused_memory':
/home/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_misc.c:113:1: warning: implicit declaration of function 'sljit_free_unused_memory_exec'; did you mean 'pcre2_jit_free_unused_memory_32'? [-Wimplicit-function-declaration]
 sljit_free_unused_memory_exec();
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 pcre2_jit_free_unused_memory_32
In file included from /home/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/sljit/sljitLir.c:27:0,
                 from /home/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_compile.c:78:
/home/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_compile.c: At top level:
/home/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/sljit/sljitLir.h:1456:36: warning: 'sljit_get_float_register_index' declared 'static' but never defined [-Wunused-function]
 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_get_float_register_index(sljit_s32 reg);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:576: ext/pcre/pcre2lib/pcre2_jit_compile.lo] Error 1


On sparc64:

...
In file included from /usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/sljit/sljitLir.c:27:0,
                 from /usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_compile.c:78:
/usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/sljit/sljitLir.h:1408:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define SLJIT_FUNC_OFFSET(func_name) ((sljit_sw)func_name)
                                       ^
/usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_compile.c:13911:100: note: in expansion of macro 'SLJIT_FUNC_OFFSET'
 sljit_emit_icall(compiler, SLJIT_CALL, SLJIT_RET(SW) | SLJIT_ARG1(SW) | SLJIT_ARG2(SW), SLJIT_IMM, SLJIT_FUNC_OFFSET(sljit_stack_resize));
                                                                                                    ^~~~~~~~~~~~~~~~~
In file included from /usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_internal.h:132:0,
                 from /usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_compile.c:45:
/usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_match.c: In function 'php_pcre2_jit_match':
/usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2.h:464:31: warning: large integer implicitly truncated to unsigned type [-Woverflow]
 #define PCRE2_UNSET           (~(PCRE2_SIZE)0)
                               ^
/usr/pkgsrc/lang/php74/work/php-7.4.1/ext/pcre/pcre2lib/pcre2_jit_match.c:149:28: note: in expansion of macro 'PCRE2_UNSET'
   arguments.offset_limit = PCRE2_UNSET;
                            ^~~~~~~~~~~
gmake: *** [Makefile:576: ext/pcre/pcre2lib/pcre2_jit_compile.lo] Error 1




Unsetting PHP_PCRE_JIT or ac_cv_have_pcre2_jit allows for compilation to continue, but then it fails here:

Generating phar.php
PHP Fatal error:  Unable to start pcre module in Unknown on line 0
gmake: *** [Makefile:359: ext/phar/phar.php] Error 254
gmake: *** Waiting for unfinished jobs....
*** Error code 2



>How-To-Repeat:
	
>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index