Bug #81507 [Fbk->Opn]: Fiber does not compile

From: Date: Mon, 11 Oct 2021 07:58:25 +0000
Subject: Bug #81507 [Fbk->Opn]: Fiber does not compile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237131@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81507&edit=1

 ID:                 81507
 User updated by:    etienne dot guesnet at atos dot net
 Reported by:        etienne dot guesnet at atos dot net
 Summary:            Fiber does not compile
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   AIX
 PHP Version:        8.1.0RC3
 Block user comment: N
 Private report:     N

 New Comment:

Build in 64 bits works with host as powerpc64-ibm-aix. However, it is not an official target:
powerpc-ibm-aix is both 32 and 64 bits. As an example, GCC is built on 32 and 64 bits on AIX with
the same host build.

I confirm build in 32 bits is broken due to "make_ppc32_sysv_xcoff_gas.S", but the reason
is more complex that I have expected. Our ASM expert will have a look.


Previous Comments:
------------------------------------------------------------------------
[2021-10-05 14:28:39] nikic@php.net

I'm not familiar with PowerPC or AIX, but this sounds like it's effectively doing a
cross-compile, in which case you need to specify a correct --build triple. Similar to how you need
to set --build=i686-linux-gnu when using -m32 on a 64-bit system. Does it work if you specify a
powerpc64-* triple?

------------------------------------------------------------------------
[2021-10-05 14:26:01] etienne dot guesnet at atos dot net

Is there a way to tag @NattyNarwhal?

------------------------------------------------------------------------
[2021-10-05 14:24:03] etienne dot guesnet at atos dot net

Description:
------------
I cannot build PHP 7.1.0RC3 on AIX 7.1 due to a bug in Fiber part.

On 64 bits (-maix64 and OBJECT_MODE=64 used), host remains "powerpc-ibm-aix7.1.5.0", so
"$fiber_os" is "ppc32", and 32 bits PPC asm is used
"make_ppc32_sysv_xcoff_gas.S" (configure.ac, line 1200). Attempted behavior: if -maix64
used, 64 bits PPC asm used.

On 32 bits, file "make_ppc32_sysv_xcoff_gas.S" does not compile, due to all
"(r1)", not supported by AIX assembly.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=81507&edit=1


Thread (7 messages)

« previous php.bugs (#237131) next »