There are multiple items to be loaded: /home/abuild/rpmbuild/SOURCES/gcc12-rpmlintrc /home/abuild/rpmbuild/SOURCES/gcc12-testresults-rpmlintrc. ============================ rpmlint session starts ============================ rpmlint: 2.5.0 configuration: /opt/testing/lib64/python3.11/rpmlint/configdefaults.toml /opt/testing/share/rpmlint/cron-whitelist.toml /opt/testing/share/rpmlint/dbus-services.toml /opt/testing/share/rpmlint/device-files-whitelist.toml /opt/testing/share/rpmlint/licenses.toml /opt/testing/share/rpmlint/opensuse.toml /opt/testing/share/rpmlint/pam-modules.toml /opt/testing/share/rpmlint/permissions-whitelist.toml /opt/testing/share/rpmlint/pie-executables.toml /opt/testing/share/rpmlint/polkit-rules-whitelist.toml /opt/testing/share/rpmlint/scoring.toml /opt/testing/share/rpmlint/security.toml /opt/testing/share/rpmlint/sudoers-whitelist.toml /opt/testing/share/rpmlint/sysctl-whitelist.toml /opt/testing/share/rpmlint/systemd-tmpfiles.toml /opt/testing/share/rpmlint/users-groups.toml /opt/testing/share/rpmlint/world-writable-whitelist.toml /opt/testing/share/rpmlint/zypper-plugins.toml /etc/xdg/rpmlint/scoring-strict.override.toml rpmlintrc: /home/abuild/rpmbuild/SOURCES/gcc12-rpmlintrc /home/abuild/rpmbuild/SOURCES/gcc12-testresults-rpmlintrc checks: 41, packages: 2 cross-aarch64-gcc12.src: E: unused-rpmlintrc-filter "gcc.*-testresults.*file-contains-buildroot" cross-aarch64-gcc12.src: E: unused-rpmlintrc-filter "gcc.*-testresults.*no-binary" cross-aarch64-gcc12.x86_64: E: shared-library-not-executable /usr/aarch64-suse-linux/sys-root/lib64/libgcc_s.so.1 This library doesn't have the executable bit set. Without this bit set, rpm for instance won't be able identify the file as a library and not generate dependencies or strip debug symbols from it. cross-aarch64-gcc12.x86_64: E: postun-without-ldconfig /usr/aarch64-suse-linux/sys-root/lib64/libgcc_s.so.1 This package contains a library and its %postun doesn't call ldconfig. cross-aarch64-gcc12.x86_64: E: postin-without-ldconfig /usr/aarch64-suse-linux/sys-root/lib64/libgcc_s.so.1 This package contains a library and its %post scriptlet doesn't call ldconfig. cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-c++-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-cpp-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-g++-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-gcc-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-gcc-ar-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-gcc-nm-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-gcc-ranlib-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-gcov-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-gcov-dump-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-gcov-tool-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/bin/aarch64-suse-linux-lto-dump-12 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/aarch64-suse-linux/12/cc1 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/aarch64-suse-linux/12/cc1plus cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/aarch64-suse-linux/12/collect2 cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/aarch64-suse-linux/12/g++-mapper-server cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/aarch64-suse-linux/12/lto-wrapper cross-aarch64-gcc12.x86_64: W: position-independent-executable-suggested /usr/lib64/gcc/aarch64-suse-linux/12/lto1 This executable should be position independent (all binaries should). Check that it is built with -fPIE/-fpie in compiler flags and -pie in linker flags. cross-aarch64-gcc12.x86_64: I: package-supports-update-alternatives cross-aarch64-gcc12.spec: W: no-%check-section The spec file does not contain an %check section. Even if some packages don't directly need it, section markers may be overridden in rpm's configuration to provide additional 'under the hood' functionality. Add the section, even if empty. cross-aarch64-gcc12.spec:777: W: macro-in-comment %prefix There is a unescaped macro after a shell style comment in the specfile. Macros are expanded everywhere, so check if it can cause a problem in this case and escape the macro with another leading % if appropriate. cross-aarch64-gcc12.x86_64: W: files-duplicate /usr/include/c++/12/aarch64-suse-linux/bits/gthr-posix.h /usr/include/c++/12/aarch64-suse-linux/bits/gthr-default.h cross-aarch64-gcc12.x86_64: W: files-duplicate /usr/lib64/gcc/aarch64-suse-linux/12/crtendS.o /usr/lib64/gcc/aarch64-suse-linux/12/crtend.o Your package contains duplicated files that are not hard- or symlinks. You should use the %fdupes macro to link the files to one. cross-aarch64-gcc12.x86_64: E: filelist-forbidden-fhs23 /usr/aarch64-suse-linux File violates FHS 2.3. cross-aarch64-gcc12.x86_64: E: explicit-lib-dependency libstdc++6-devel-gcc12 You must let rpm find the library dependencies by itself. Do not put unneeded explicit Requires: tags. cross-aarch64-gcc12.x86_64: E: devel-dependency cross-aarch64-glibc-devel Your package has a dependency on a devel package but it's not a devel package itself. Check time report (>1% & >0.1s): Check Duration (in s) Fraction (in %) Checked files ExtractRpm 1.2 40.7 SignatureCheck 0.8 27.3 BinariesCheck 0.8 25.6 BuildRootAndDateCheck 0.1 3.7 TOTAL 3.0 100.0 2 packages and 0 specfiles checked; 8 errors, 21 warnings, 147 filtered, 8 badness; has taken 3.1 s