infra icon indicating copy to clipboard operation
infra copied to clipboard

Add GCC 12.1.0 for cross targets

Open dkm opened this issue 2 years ago • 6 comments

Update with GCC 12.1.0 for:

  • mips + mips64 + mipsel + mips64el
  • powerpc + powerpc64 + powerpc64le
  • s390x
  • avr
  • msp430

refs compiler-explorer/compiler-explorer#3729 refs compiler-explorer/compiler-explorer#3761

Signed-off-by: Marc Poulhiès [email protected]

dkm avatar Jul 06 '22 13:07 dkm

Matching builder PR: https://github.com/compiler-explorer/gcc-cross-builder/pull/30 Should wait for all compilers to be built before merging, see https://github.com/compiler-explorer/compiler-explorer/issues/3729

dkm avatar Jul 06 '22 13:07 dkm

Is this ready for review or do I need to hold on?

mattgodbolt avatar Jul 18 '22 16:07 mattgodbolt

This is not ready sorry. Discovered an issue when testing all compilers.

dkm avatar Jul 18 '22 17:07 dkm

Tested locally:


## new compilers:
./bin/ce_install install compilers/c++/cross/gcc/s390x 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/avr 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/mips/mips 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/mips/mips64 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/mips/mips64el 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/mips/mipsel 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/powerpc/powerpc 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/powerpc/powerpc64 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/powerpc/powerpc64le 12.1.0

# updated (already installed, same path) compilers:
./bin/ce_install install compilers/c++/cross/gcc/riscv32 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/riscv64 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/arm 12.1.0
./bin/ce_install install compilers/c++/cross/gcc/arm64 12.1.0

dkm avatar Jul 21 '22 18:07 dkm

Extra care needed for the riscv and arm compiler that are already installed and need to be overwritten @mattgodbolt

dkm avatar Jul 21 '22 18:07 dkm

Thanks for the heads up! Let me know when this is ready to go and I'll do the necessary things :)

mattgodbolt avatar Aug 14 '22 18:08 mattgodbolt

should be ok, but I'll retest the install locally.

dkm avatar Aug 15 '22 10:08 dkm

/opt/compiler-explorer/
├── arm
│   └── gcc-12.1.0
│       └── arm-unknown-linux-gnueabihf
├── arm64
│   └── gcc-12.1.0
│       └── aarch64-unknown-linux-gnu
├── avr
│   └── gcc-12.1.0
│       └── avr
├── mips
│   └── gcc-12.1.0
│       └── mips-unknown-linux-gnu
├── mips64
│   └── gcc-12.1.0
│       └── mips64-unknown-linux-gnu
├── mips64el
│   └── gcc-12.1.0
│       └── mips64el-multilib-linux-uclibc
├── mipsel
│   └── gcc-12.1.0
│       └── mipsel-multilib-linux-gnu
├── powerpc
│   └── gcc-12.1.0
│       └── powerpc-unknown-linux-gnu
├── powerpc64
│   └── gcc-12.1.0
│       └── powerpc64-unknown-linux-gnu
├── powerpc64le
│   └── gcc-12.1.0
│       └── powerpc64le-unknown-linux-gnu
├── riscv32
│   └── gcc-12.1.0
│       └── riscv32-unknown-elf
├── riscv64
│   └── gcc-12.1.0
│       └── riscv64-unknown-linux-gnu
├── s390x
│   └── gcc-12.1.0
│       └── s390x-ibm-linux-gnu

Looks ok :)

dkm avatar Aug 15 '22 10:08 dkm

Awesome! will do the needful now

mattgodbolt avatar Aug 15 '22 23:08 mattgodbolt

Aug/15 23:05 admin-node~/infra (main|✔) $ sudo ce_install install compilers/c++/cross/gcc 12.1.0
2022-08-15 23:05:07,573 lib.installation INFO     Making uncached requests
Installing compilers/c++/cross/gcc/arm 12.1.0
2022-08-15 23:05:11,438 lib.installation INFO     compilers/c++/cross/gcc/arm 12.1.0 is already installed, skipping
Installing compilers/c++/cross/gcc/arm64 12.1.0
2022-08-15 23:05:11,567 lib.installation INFO     compilers/c++/cross/gcc/arm64 12.1.0 is already installed, skipping
Installing compilers/c++/cross/gcc/avr 12.1.0
2022-08-15 23:05:11,858 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/avr-gcc-12.1.0.tar.xz (51646508 bytes)
2022-08-15 23:05:12,969 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/avr-gcc-12.1.0.tar.xz
2022-08-15 23:05:12,970 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:06:15,817 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/avr/gcc-12.1.0)
2022-08-15 23:06:15,913 lib.installation INFO     compilers/c++/cross/gcc/avr 12.1.0 installed OK
Installing compilers/c++/cross/gcc/mips/mips 12.1.0
2022-08-15 23:06:16,111 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/mips-gcc-12.1.0.tar.xz (136442372 bytes)
2022-08-15 23:06:19,238 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/mips-gcc-12.1.0.tar.xz
2022-08-15 23:06:19,239 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:09:27,466 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/mips/gcc-12.1.0)
2022-08-15 23:09:27,571 lib.installation INFO     compilers/c++/cross/gcc/mips/mips 12.1.0 installed OK
Installing compilers/c++/cross/gcc/mips/mips64 12.1.0
2022-08-15 23:09:27,783 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/mips64-gcc-12.1.0.tar.xz (130821340 bytes)
2022-08-15 23:09:31,006 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/mips64-gcc-12.1.0.tar.xz
2022-08-15 23:09:31,007 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:12:32,294 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/mips64/gcc-12.1.0)
2022-08-15 23:12:32,392 lib.installation INFO     compilers/c++/cross/gcc/mips/mips64 12.1.0 installed OK
Installing compilers/c++/cross/gcc/mips/mips64el 12.1.0
2022-08-15 23:12:32,604 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/mips64el-gcc-12.1.0.tar.xz (92632600 bytes)
2022-08-15 23:12:35,183 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/mips64el-gcc-12.1.0.tar.xz
2022-08-15 23:12:35,185 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:15:24,291 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/mips64el/gcc-12.1.0)
2022-08-15 23:15:24,390 lib.installation INFO     compilers/c++/cross/gcc/mips/mips64el 12.1.0 installed OK
Installing compilers/c++/cross/gcc/mips/mipsel 12.1.0
2022-08-15 23:15:24,624 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/mipsel-gcc-12.1.0.tar.xz (182766208 bytes)
2022-08-15 23:15:29,490 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/mipsel-gcc-12.1.0.tar.xz
2022-08-15 23:15:29,491 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:18:12,507 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/mipsel/gcc-12.1.0)
2022-08-15 23:18:12,618 lib.installation INFO     compilers/c++/cross/gcc/mips/mipsel 12.1.0 installed OK
Installing compilers/c++/cross/gcc/powerpc/powerpc 12.1.0
2022-08-15 23:18:12,797 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/powerpc-gcc-12.1.0.tar.xz (132901436 bytes)
2022-08-15 23:18:16,116 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/powerpc-gcc-12.1.0.tar.xz
2022-08-15 23:18:16,117 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:21:26,928 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/powerpc/gcc-12.1.0)
2022-08-15 23:21:27,035 lib.installation INFO     compilers/c++/cross/gcc/powerpc/powerpc 12.1.0 installed OK
Installing compilers/c++/cross/gcc/powerpc/powerpc64 12.1.0
2022-08-15 23:21:27,240 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/powerpc64-gcc-12.1.0.tar.xz (133656788 bytes)
2022-08-15 23:21:30,320 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/powerpc64-gcc-12.1.0.tar.xz
2022-08-15 23:21:30,321 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:24:37,780 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/powerpc64/gcc-12.1.0)
2022-08-15 23:24:37,876 lib.installation INFO     compilers/c++/cross/gcc/powerpc/powerpc64 12.1.0 installed OK
Installing compilers/c++/cross/gcc/powerpc/powerpc64le 12.1.0
2022-08-15 23:24:38,095 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/powerpc64le-gcc-12.1.0.tar.xz (137654088 bytes)
2022-08-15 23:24:41,366 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/powerpc64le-gcc-12.1.0.tar.xz
2022-08-15 23:24:41,367 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:27:50,795 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/powerpc64le/gcc-12.1.0)
2022-08-15 23:27:50,901 lib.installation INFO     compilers/c++/cross/gcc/powerpc/powerpc64le 12.1.0 installed OK
Installing compilers/c++/cross/gcc/riscv32 12.1.0
2022-08-15 23:27:51,016 lib.installation INFO     compilers/c++/cross/gcc/riscv32 12.1.0 is already installed, skipping
Installing compilers/c++/cross/gcc/riscv64 12.1.0
2022-08-15 23:27:51,175 lib.installation INFO     compilers/c++/cross/gcc/riscv64 12.1.0 is already installed, skipping
Installing compilers/c++/cross/gcc/s390x 12.1.0
2022-08-15 23:27:51,380 lib.installation INFO     Fetching https://s3.amazonaws.com/compiler-explorer/opt/s390x-gcc-12.1.0.tar.xz (135469928 bytes)
2022-08-15 23:27:54,157 lib.installation INFO     100% of https://s3.amazonaws.com/compiler-explorer/opt/s390x-gcc-12.1.0.tar.xz
2022-08-15 23:27:54,160 lib.installation INFO     Piping to tar Jxf -
2022-08-15 23:31:02,511 lib.installation INFO     Moving from staging (/opt/compiler-explorer/staging/gcc-12.1.0) to final destination (/opt/compiler-explorer/s390x/gcc-12.1.0)
2022-08-15 23:31:02,609 lib.installation INFO     compilers/c++/cross/gcc/s390x 12.1.0 installed OK
9 packages installed OK, 4 skipped, and 0 failed installation

mattgodbolt avatar Aug 16 '22 11:08 mattgodbolt

Now force installing the others...

mattgodbolt avatar Aug 16 '22 11:08 mattgodbolt