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.6.1 configuration: /opt/testing/lib/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: 30 gcc12.src: E: unused-rpmlintrc-filter "gcc.*-testresults.*file-contains-buildroot" gcc12.src: E: unused-rpmlintrc-filter "gcc.*-testresults.*no-binary" libstdc++6-pp-gcc12.armv6hl: W: self-obsoletion libstdc++6-pp-gcc10 obsoletes libstdc++6-pp-gcc10 libstdc++6-pp-gcc12.armv6hl: W: self-obsoletion libstdc++6-pp-gcc11 obsoletes libstdc++6-pp-gcc11 libstdc++6-pp-gcc12.armv6hl: W: self-obsoletion libstdc++6-pp-gcc9 obsoletes libstdc++6-pp-gcc9 The package obsoletes itself. This is known to cause errors in various tools and should thus be avoided, usually by using appropriately versioned Obsoletes and/or Provides and avoiding unversioned ones. cpp12.armv6hl: W: position-independent-executable-suggested /usr/bin/cpp-12 cpp12.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/cc1 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/armv6hl-suse-linux-gnueabi-gcc-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/gcc-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/gcc-ar-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/gcc-nm-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/gcc-ranlib-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/gcov-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/gcov-dump-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/gcov-tool-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/bin/lto-dump-12 gcc12.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/collect2 gcc12.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/lto-wrapper gcc12.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/lto1 gcc12-c++.armv6hl: W: position-independent-executable-suggested /usr/bin/g++-12 gcc12-c++.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/cc1plus gcc12-c++.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/g++-mapper-server gcc12-d.armv6hl: W: position-independent-executable-suggested /usr/bin/gdc-12 gcc12-d.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/d21 gcc12-devel.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/plugin/gengtype gcc12-fortran.armv6hl: W: position-independent-executable-suggested /usr/bin/gfortran-12 gcc12-fortran.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/f951 gcc12-go.armv6hl: W: position-independent-executable-suggested /usr/bin/gccgo-12 gcc12-go.armv6hl: W: position-independent-executable-suggested /usr/bin/go-12 gcc12-go.armv6hl: W: position-independent-executable-suggested /usr/bin/gofmt-12 gcc12-go.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/buildid gcc12-go.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/cgo gcc12-go.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/go1 gcc12-obj-c++.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/cc1objplus gcc12-objc.armv6hl: W: position-independent-executable-suggested /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/cc1obj 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. gcc12-info.noarch: W: package-with-huge-docs 100% More than half the size of your package is documentation. Consider splitting it into a -doc subpackage. gcc12.spec:840: E: obsolete-suse-version-check 1120 gcc12.spec:1647: E: obsolete-suse-version-check 1120 The specfile contains a comparison of %suse_version against a suse release that is no longer in maintenance. Consider removing obsolete parts of your spec file to make it more readable. gcc12-PIE.armv6hl: E: no-binary gcc12-locale.armv6hl: E: no-binary libgccjit0-devel-gcc12.armv6hl: E: no-binary libstdc++6-gcc12-locale.armv6hl: E: no-binary libstdc++6-pp-gcc12.armv6hl: E: no-binary The package should be of the noarch architecture because it doesn't contain any binaries. gcc12.spec: W: no-%check-section The spec file does not contain an %check section. Please check if the package has a testsuite and what it takes to enable the testsuite as part of the package build. If it is not possible to run it in the build environment (OBS/koji) or no testsuite exists, then please ignore this warning. You should not insert an empty %check section. gcc12.spec:2693: W: macro-in-comment %{GCCDIST} gcc12.spec:2693: W: macro-in-comment %{binsuffix} 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. gcc12.armv6hl: W: files-duplicate /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/crtendS.o /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/crtend.o libstdc++6-devel-gcc12.armv6hl: W: files-duplicate /usr/include/c++/12/armv6hl-suse-linux-gnueabi/bits/gthr-posix.h /usr/include/c++/12/armv6hl-suse-linux-gnueabi/bits/gthr-default.h libstdc++6-devel-gcc12.armv6hl: W: files-duplicate /usr/include/c++/12/ext/hash_map /usr/include/c++/12/backward/hash_map libstdc++6-devel-gcc12.armv6hl: W: files-duplicate /usr/include/c++/12/ext/hash_set /usr/include/c++/12/backward/hash_set Your package contains duplicated files that are not hard- or symlinks. You should use the %fdupes macro to link the files to one. libgccjit0-devel-gcc12.armv6hl: E: explicit-lib-dependency libgccjit0-gcc12 You must let rpm find the library dependencies by itself. Do not put unneeded explicit Requires: tags. gcc12.armv6hl: W: binary-or-shlib-calls-gethostbyname /usr/lib/gcc/armv6hl-suse-linux-gnueabi/12/libasan.a libasan8-gcc12.armv6hl: W: binary-or-shlib-calls-gethostbyname /usr/lib/libasan.so.8.0.0 libgphobos3.armv6hl: W: binary-or-shlib-calls-gethostbyname /usr/lib/libgphobos.so.3.0.0 The binary calls gethostbyname. Please port the code to use getaddrinfo. Check time report (>1% & >0.1s): Check Duration (in s) Fraction (in %) Checked files BinariesCheck 18.0 58.6 ExtractRpm 7.0 22.9 SharedLibraryPolicyCheck 2.3 7.5 SignatureCheck 1.4 4.6 BuildRootAndDateCheck 0.7 2.2 FilesCheck 0.6 2.0 TOTAL 30.8 100.0 30 packages and 0 specfiles checked; 10 errors, 44 warnings, 763 filtered, 10 badness; has taken 31.1 s