fluent / fluent-package-builder

td-agent (Fluentd) Building and Packaging System
Apache License 2.0
22 stars 25 forks source link

fluent-package centos 7 aarch64 build failure #543

Closed kenhys closed 1 year ago

kenhys commented 1 year ago

rake yum:build YUM_TARGETS=centos-7-aarch64 may fail.

#7 150.6 --> Processing Dependency: devtoolset-11-gdb for package: devtoolset-11-toolchain-11.1-2.el7.aarch64
#7 150.6 ---> Package elfutils-libelf-devel.aarch64 0:0.176-5.el7 will be installed
#7 150.6 ---> Package xz-devel.aarch64 0:5.2.2-2.el7_9 will be installed
#7 150.8 --> Finished Dependency Resolution
#7 150.8 Error: Package: devtoolset-11-toolchain-11.1-2.el7.aarch64 (centos-sclo-rh)
#7 150.8            Requires: devtoolset-11-gcc-c++
#7 150.8 Error: Package: devtoolset-11-toolchain-11.1-2.el7.aarch64 (centos-sclo-rh)
#7 150.8            Requires: devtoolset-11-gcc
#7 150.8 Error: Package: devtoolset-11-toolchain-11.1-2.el7.aarch64 (centos-sclo-rh)
#7 150.8            Requires: devtoolset-11-gcc-gfortran
#7 150.8 Error: Package: devtoolset-11-toolchain-11.1-2.el7.aarch64 (centos-sclo-rh)
#7 150.8            Requires: devtoolset-11-gdb
#7 150.8  You could try using --skip-broken to work around the problem
#7 150.9  You could try running: rpm -Va --nofiles --nodigest
#7 ERROR: executor failed running [/bin/sh -c quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") &&   yum update -y ${quiet} &&   yum install
 -y ${quiet} centos-release-scl &&   yum install -y ${quiet} epel-release &&   yum groupinstall -y ${quiet} "Development Tools" &&   yum ins
tall -y ${quiet}     devtoolset-11     rh-ruby26-ruby-devel     rh-ruby26-rubygems     rh-ruby26-rubygem-rake     rh-ruby26-rubygem-bundler 
    libedit-devel     ncurses-devel     libyaml-devel     libffi-devel     git     cyrus-sasl-devel     nss-softokn-freebl-devel     pkg-con
fig     rpm-build     rpmdevtools     redhat-rpm-config     openssl-devel     tar     zlib-devel     rpmlint     cmake3 &&   echo "precedenc
e ::ffff:0:0/96 100" > /etc/gai.conf &&   source /opt/rh/rh-ruby26/enable && gem install --no-document --install-dir /opt/rh/rh-ruby26/root/
usr/share/gems bundler builder &&   scl enable devtoolset-11 bash &&   yum clean ${quiet} all &&   curl --proto '=https' --tlsv1.2 -sSf http
s://sh.rustup.rs | sh -s -- -y]: exit code: 1
------
 > [3/3] RUN   quiet=$([ "yes" = "yes" ] || echo "--quiet") &&   yum update -y ${quiet} &&   yum install -y ${quiet} centos-release-scl &&  
 yum install -y ${quiet} epel-release &&   yum groupinstall -y ${quiet} "Development Tools" &&   yum install -y ${quiet}     devtoolset-11  
   rh-ruby26-ruby-devel     rh-ruby26-rubygems     rh-ruby26-rubygem-rake     rh-ruby26-rubygem-bundler     libedit-devel     ncurses-devel 
    libyaml-devel     libffi-devel     git     cyrus-sasl-devel     nss-softokn-freebl-devel     pkg-config     rpm-build     rpmdevtools   
  redhat-rpm-config     openssl-devel     tar     zlib-devel     rpmlint     cmake3 &&   echo "precedence ::ffff:0:0/96 100" > /etc/gai.conf
 &&   source /opt/rh/rh-ruby26/enable && gem install --no-document --install-dir /opt/rh/rh-ruby26/root/usr/share/gems bundler builder &&   
scl enable devtoolset-11 bash &&   yum clean ${quiet} all &&   curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y:
------
kenhys commented 1 year ago

It is reproducible via:

  1. docker run --rm -it arm64v8/centos:7
  2. yum install -y devtoolset-11
kenhys commented 1 year ago

It lacks some packages.

# yum search devtoolset-11
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp.yz.yamagata-u.ac.jp
 * centos-sclo-rh: ftp.yz.yamagata-u.ac.jp
 * centos-sclo-sclo: ftp.yz.yamagata-u.ac.jp
 * epel: ftp.iij.ad.jp
 * extras: ftp.yz.yamagata-u.ac.jp
 * updates: ftp.yz.yamagata-u.ac.jp
======================================================== N/S matched: devtoolset-11 ========================================================
devtoolset-11.aarch64 : Package that installs devtoolset-11
devtoolset-11-runtime.aarch64 : Package that handles devtoolset-11 Software Collection.
devtoolset-11-annobin-docs.noarch : Documentation and shell scripts for use with annobin
devtoolset-11-binutils.aarch64 : A GNU collection of binary utilities
devtoolset-11-binutils-devel.aarch64 : BFD and opcodes static and dynamic libraries and header files
devtoolset-11-build.aarch64 : Package shipping basic build configuration
devtoolset-11-dwz.aarch64 : DWARF optimization and duplicate removal tool
devtoolset-11-elfutils.aarch64 : A collection of utilities and DSOs to handle ELF files and DWARF data
devtoolset-11-elfutils-debuginfod.aarch64 : HTTP ELF/DWARF file server addressed by build-id
devtoolset-11-elfutils-debuginfod-client.aarch64 : Library and command line client for build-id HTTP ELF/DWARF server
devtoolset-11-elfutils-debuginfod-client-devel.aarch64 : Libraries and headers to build debuginfod client applications
devtoolset-11-elfutils-devel.aarch64 : Development libraries to handle compiled objects
devtoolset-11-elfutils-libelf.aarch64 : Library to read and write ELF files
devtoolset-11-elfutils-libelf-devel.aarch64 : Development support for libelf
devtoolset-11-elfutils-libs.aarch64 : Libraries to handle compiled objects
devtoolset-11-gdb-doc.noarch : Documentation for GDB (the GNU source-level debugger)
devtoolset-11-ltrace.aarch64 : Tracks runtime library calls from dynamically linked executables
devtoolset-11-make.aarch64 : A GNU tool which simplifies the build process for users
devtoolset-11-make-devel.aarch64 : Header file for externally visible definitions
devtoolset-11-memstomp.aarch64 : Warns of memory argument overlaps to various functions
devtoolset-11-oprofile.aarch64 : System wide profiler
devtoolset-11-oprofile-devel.aarch64 : Header files and libraries for developing apps which will use oprofile
devtoolset-11-oprofile-jit.aarch64 : Libraries required for profiling Java and other JITed code
devtoolset-11-perftools.aarch64 : Package shipping performance tools
devtoolset-11-strace.aarch64 : Tracks and displays system calls associated with a running process
devtoolset-11-systemtap.aarch64 : Programmable system-wide instrumentation system
devtoolset-11-systemtap-client.aarch64 : Programmable system-wide instrumentation system - client
devtoolset-11-systemtap-devel.aarch64 : Programmable system-wide instrumentation system - development headers, tools
devtoolset-11-systemtap-initscript.aarch64 : Systemtap Initscripts
devtoolset-11-systemtap-runtime.aarch64 : Programmable system-wide instrumentation system - runtime
devtoolset-11-systemtap-sdt-devel.aarch64 : Static probe support tools
devtoolset-11-systemtap-server.aarch64 : Instrumentation System Server
devtoolset-11-systemtap-testsuite.aarch64 : Instrumentation System Testsuite
devtoolset-11-toolchain.aarch64 : Package shipping basic toolchain applications
devtoolset-11-valgrind.aarch64 : Tool for finding memory management bugs in programs
devtoolset-11-valgrind-devel.aarch64 : Development files for valgrind aware programs

  Name and summary matches only, use "search all" for everything.
kenhys commented 1 year ago

In arm64v6/centos:7, some other devtoolset is available. Using devtoolset-10 may solve this issue, but it is strange.