1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Pi4, arm64, 7.3 build fails

Discussion in 'Help' started by Kerry Reynolds, May 11, 2020.

  1. Kerry Reynolds

    Kerry Reynolds Creeper

    Messages:
    4

    Attached Files:

  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    What is the output of start.sh?
     
  3. Kerry Reynolds

    Kerry Reynolds Creeper

    Messages:
    4
    Nothing. It clears the screen then terminates.
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Even when you launch it normally, without "screen"?
     
  5. Kerry Reynolds

    Kerry Reynolds Creeper

    Messages:
    4
    $ ./start.sh
    ./start.sh: line 60: /home/minecraft/bin/php7/bin/php: cannot execute binary file: Exec format error
    ./start.sh: line 60: /home/minecraft/bin/php7/bin/php: Success
     
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Can you tell me the output of these three commands?
    Code:
    uname -a
    file /home/minecraft/bin/php7/bin/php
    readelf -h /home/minecraft/bin/php7/bin/php
    
     
  7. Kerry Reynolds

    Kerry Reynolds Creeper

    Messages:
    4
    Sure...

    ubuntu@ubuntu:~$ uname -a
    Linux ubuntu 5.3.0-1023-raspi2 #25-Ubuntu SMP Tue Apr 14 11:35:19 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

    ubuntu@ubuntu:~$ file /home/minecraft/bin/php7/bin/php
    /home/minecraft/bin/php7/bin/php: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=d18a62e10177de696f781de4a944beaf6807eba4, with debug_info, not stripped

    ubuntu@ubuntu:~$ readelf -h /home/minecraft/bin/php7/bin/php
    ELF Header:
    Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
    Class: ELF64
    Data: 2's complement, little endian
    Version: 1 (current)
    OS/ABI: UNIX - GNU
    ABI Version: 0
    Type: EXEC (Executable file)
    Machine: Advanced Micro Devices X86-64
    Version: 0x1
    Entry point address: 0x494030
    Start of program headers: 64 (bytes into file)
    Start of section headers: 14319440 (bytes into file)
    Flags: 0x0
    Size of this header: 64 (bytes)
    Size of program headers: 56 (bytes)
    Number of program headers: 10
    Size of section headers: 64 (bytes)
    Number of section headers: 40
    Section header string table index: 37
    ubuntu@ubuntu:~$
     
  8. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    That's odd, even though it claimed to have compiled for the target architecture, the binary seems to be for x86 instead of ARM.
    Makee a new folder and try to compile the binary manually there with the following commands:
    Code:
    wget https://github.com/pmmp/php-build-scripts/raw/master/compile.sh
    chmod +x compile.sh
    ./compile.sh -j 4 -f -u -g -l
    
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.