• issue building qemu latest on debian ppc

    From Christian Marillat@21:1/5 to luigi burdo on Mon Jul 19 11:50:03 2021
    On 19 juil. 2021 08:08, luigi burdo <intermediadc@hotmail.com> wrote:

    [...]

    /home/gigi/src/tags/ppc-for-6.1-20210713/tcg/ppc -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls
    -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers
    -Wempt
    y-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -fPIE -isystem../linux-headers
    -isystemlinux-headers -DNEED_CPU_H '-DCONFIG_TARGET="mipsel-softmmu-config-target.h"' '-DCONFIG_DEVICES="mipsel-softmmu-config-devices.h"' -MD -MQ
    libqemu-mipsel-softmmu.fa.p/target_mips_tcg_msa_helper.c.o -MF libqemu-mipsel-softmmu.fa.p/target_mips_tcg_msa_helper.c.o.d -o libqemu-mipsel-softmmu.fa.p/target_mips_tcg_msa_helper.c.o -c
    ../target/mips/tcg/msa_helper.c
    during RTL pass: sched1
    ../target/mips/tcg/msa_helper.c: In function ‘helper_msa_fmin_df’:
    ../target/mips/tcg/msa_helper.c:7536:1: internal compiler error: Errore di segmentazione

    Definitely a GCC bug.

    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anatoly Pugachev@21:1/5 to intermediadc@hotmail.com on Mon Jul 19 12:20:02 2021
    On Mon, Jul 19, 2021 at 11:43 AM luigi burdo <intermediadc@hotmail.com> wrote:

    Hi Adrian,
    i'm try to build last qemu on Debian PPC64 on my G5 Quad but im facing strange hard build errors.
    I m in contact with the qemu ppc ML and there Balaton Zoltan make me know this kind of issues are not because bad code in qemu.
    Zoltan write to me this kind of issues can come in two cases:
    a)Hardware failure b) a GCC Bug.
    I check my machine and look like there are not evident hardware issue, machine is stable like in past, all is up and working on Linux and MacOS leopard too.

    this is the qemu pull that im try to build https://gitlab.com/dgibson/qemu.git tags/ppc-for-6.1-20210713

    if some one in ML can try to buid on BE hardware is welcome.

    works for me (no errors, compiles)

    $ gcc --version | head -1
    gcc (Debian 10.2.1-6) 10.2.1 20210110

    $ dpkg --print-architecture
    ppc64

    $ uname -a
    Linux chubaka 5.10.0-8-powerpc64 #1 SMP Debian 5.10.46-1 (2021-06-24)
    ppc64 GNU/Linux

    $ cd qemu/
    qemu$ git br
    * (HEAD detached at ppc-for-6.1-20210713)

    $ mkdir build
    $ cd build
    $ make -j
    ...

    mator@chubaka:~/qemu/build$ ./qemu-ppc64 --version
    qemu-ppc64 version 6.0.50 (v5.1.0-9677-gc785a40179)
    Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

    mator@chubaka:~/qemu/build$ git desc
    ppc-for-6.1-20210713-0-gc785a40179

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anatoly Pugachev@21:1/5 to intermediadc@hotmail.com on Mon Jul 19 12:30:02 2021
    On Mon, Jul 19, 2021 at 1:16 PM luigi burdo <intermediadc@hotmail.com> wrote:

    Hi Anatoly,
    thanks for testing! What machine have you there?

    LPAR (read as 'virtual machine') running on IBM Power 750 Express (8233-E8B)

    $ lscpu
    Architecture: ppc64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Big Endian
    CPU(s): 16
    On-line CPU(s) list: 0-15

    16Gb ram

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to luigi burdo on Mon Jul 19 12:40:01 2021
    Hello!

    On 7/19/21 10:08 AM, luigi burdo wrote:
    I check my machine and look like there are not evident hardware issue, machine is stable like in past, all is up and working on Linux and MacOS leopard too.
    There can still be hardware problems which show under load only. I would check with memcheck or a similar tool whether the memory is okay.

    I don't think gcc is broken as QEMU 6.0 builds fine on the buildds on powerpc and ppc64 [1].

    Adrian

    [1] https://buildd.debian.org/status/package.php?p=qemu&suite=experimental

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Zigotzky@21:1/5 to luigi burdo on Mon Jul 19 13:40:02 2021
    I usually compile QEMU with the following commands:

    ./configure --enable-sdl --target-list=ppc-softmmu,ppc64-softmmu

    make

    - Christian

    On 19 July 2021 at 10:08 am, luigi burdo wrote:
    Hi Adrian,
    i'm try to build last qemu on Debian PPC64 on my G5 Quad but im facing strange hard build errors.
    I m in contact with the qemu ppc ML and there Balaton Zoltan make me
    know this kind of issues are not because bad code in qemu.
    Zoltan write to me this kind of issues can come in two cases:
    a)Hardware failure b) a GCC Bug.
    I check my machine and look like there are not evident hardware issue, machine is stable like in past, all is up and working on Linux and
    MacOS leopard too.

    this is the qemu pull that im try to build https://gitlab.com/dgibson/qemu.git tags/ppc-for-6.1-20210713

    if some one in ML can try to buid on BE hardware is welcome.


    this is the issue that i face during build.
    ____

    gigi@debian:~/src/tags/ppc-for-6.1-20210713/build$ ninja
    [3864/9215] Compiling C object
    libqemu-mipsel-softmmu.fa.p/target_mips_tcg_msa_helper.c.o
    FAILED: libqemu-mipsel-softmmu.fa.p/target_mips_tcg_msa_helper.c.o
    cc -Ilibqemu-mipsel-softmmu.fa.p -I. -I.. -Itarget/mips
    -I../target/mips -I../capstone/include/capstone -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/pixman-1 -I/usr/include/glib-2.0 -I/usr/lib/powerpc64-linux-gnu/glib-2.0/include
    -fdiagnostics-color=auto -pipe -Wall -Winvalid-pch -Werror -std=gnu11
    -O2 -g -isystem /home/gigi/src/tags/ppc-for-6.1-20210713/linux-headers -isystem linux-headers -iquote . -iquote /home/gigi/src/tags/ppc-for-6.1-20210713 -iquote /home/gigi/src/tags/ppc-for-6.1-20210713/include -iquote /home/gigi/src/tags/ppc-for-6.1-20210713/disas/libvixl -iquote /home/gigi/src/tags/ppc-for-6.1-20210713/tcg/ppc -pthread
    -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempt
    y-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs
    -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -fPIE -isystem../linux-headers -isystemlinux-headers -DNEED_CPU_H '-DCONFIG_TARGET="mipsel-softmmu-config-target.h"' '-DCONFIG_DEVICES="mipsel-softmmu-config-devices.h"' -MD -MQ libqemu-mipsel-softmmu.fa.p/target_mips_tcg_msa_helper.c.o -MF libqemu-mipsel-softmmu.fa.p/target_mips_tcg_msa_helper.c.o.d -o libqemu-mipsel-softmmu.fa.p/target_mips_tcg_msa_helper.c.o -c ../target/mips/tcg/msa_helper.c
    during RTL pass: sched1
    ../target/mips/tcg/msa_helper.c: In function helper_msa_fmin_df: ../target/mips/tcg/msa_helper.c:7536:1: internal compiler error:
    Errore di segmentazione
    7536 | }
    | ^
    0x3fffa7b8e1c3 generic_start_main
    ../csu/libc-start.c:308
    0x3fffa7b8e3d3 __libc_start_main ../sysdeps/unix/sysv/linux/powerpc/libc-start.c:98
    Please submit a full bug report,
    with preprocessed source if appropriate.
    Please include the complete backtrace with any bug report.
    See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions. [3869/9215] Compiling C object
    libqemu-mipsel-softmmu.fa.p/target_mips_tcg_translate.c.o
    ninja: build stopped: subcommand failed.


    Thank you
    Luigi

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)