Skip to content

Instantly share code, notes, and snippets.

@patrickallaert
Created November 24, 2021 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickallaert/a8f9c508030586b09833b909caffd684 to your computer and use it in GitHub Desktop.
Save patrickallaert/a8f9c508030586b09833b909caffd684 to your computer and use it in GitHub Desktop.
Compiling error of PHP 8.1.0 on 32 bit architecture
make_x86_64_sysv_elf_gas.S: Assembler messages:
make_x86_64_sysv_elf_gas.S:34: Error: bad register name `%rdi'
make_x86_64_sysv_elf_gas.S:37: Error: bad register name `%rax'
make_x86_64_sysv_elf_gas.S:41: Error: bad register name `%rax)'
make_x86_64_sysv_elf_gas.S:45: Error: bad register name `%rdx'
make_x86_64_sysv_elf_gas.S:48: Error: bad register name `%rax)'
make_x86_64_sysv_elf_gas.S:50: Error: bad register name `%rax)'
make_x86_64_sysv_elf_gas.S:53: Error: bad register name `%rip)'
make_x86_64_sysv_elf_gas.S:56: Error: bad register name `%rcx'
make_x86_64_sysv_elf_gas.S:59: Error: bad register name `%rip)'
make_x86_64_sysv_elf_gas.S:62: Error: bad register name `%rcx'
make_x86_64_sysv_elf_gas.S:69: Error: bad register name `%rbp'
make_x86_64_sysv_elf_gas.S:71: Error: bad register name `%rbx'
make_x86_64_sysv_elf_gas.S:75: Error: bad register name `%rdi'
make: *** [Zend/asm/make_x86_64_sysv_elf_gas.lo] Error 1
make: *** Waiting for unfinished jobs....
Makefile:1549: recipe for target 'Zend/asm/make_x86_64_sysv_elf_gas.lo' failed
jump_x86_64_sysv_elf_gas.S: Assembler messages:
jump_x86_64_sysv_elf_gas.S:33: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:36: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:37: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:40: Error: bad register name `%r12'
jump_x86_64_sysv_elf_gas.S:41: Error: bad register name `%r13'
jump_x86_64_sysv_elf_gas.S:42: Error: bad register name `%r14'
jump_x86_64_sysv_elf_gas.S:43: Error: bad register name `%r15'
jump_x86_64_sysv_elf_gas.S:44: Error: bad register name `%rbx'
jump_x86_64_sysv_elf_gas.S:45: Error: bad register name `%rbp'
jump_x86_64_sysv_elf_gas.S:48: Error: bad register name `%rsp'
jump_x86_64_sysv_elf_gas.S:51: Error: bad register name `%rdi'
jump_x86_64_sysv_elf_gas.S:53: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:56: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:57: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:60: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:61: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:62: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:63: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:64: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:65: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:67: Error: bad register name `%rsp)'
jump_x86_64_sysv_elf_gas.S:72: Error: bad register name `%rsi'
/usr/src/php/Zend/asm/jump_x86_64_sysv_elf_gas.S:84: Error: bad register name `%rax'
/usr/src/php/Zend/asm/jump_x86_64_sysv_elf_gas.S:87: Error: bad register name `%r8'
make: *** [Zend/asm/jump_x86_64_sysv_elf_gas.lo] Error 1
@arokettu
Copy link

arokettu commented Jul 5, 2023

Is there a solution to that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment