app-arch/rpm-4.16.0 fails to compile without OpenMP Reproducible: Always Steps to Reproduce: 1. USE="-openmp" emerge -uv1N sys-devel/gcc:10 2. USE="acl -caps dbus -doc -lua nls -python -test -zstd" emerge -v1 =app-arch/rpm-4.16.0 Actual Results: Fails to compile with: libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.. -I.. -I../include/ -I../misc -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fstack-protector -Wempty-body -O2 -pipe -march=native -c parseSpec.c -fPIC -DPIC -o .libs/parseSpec.o parseSpec.c:10:10: fatal error: omp.h: No such file or directory 10 | #include <omp.h> | ^~~~~~~ compilation terminated. Also, throws a bunch of related pragma warnings: pack.c: In function ‘addFileToTag’: pack.c:119: warning: ignoring ‘#pragma omp critical’ [-Wunknown-pragmas] 119 | #pragma omp critical | pack.c: In function ‘packageBinary’: pack.c:701: warning: ignoring ‘#pragma omp critical’ [-Wunknown-pragmas] 701 | #pragma omp critical | pack.c: In function ‘packageBinaries’: pack.c:765: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas] 765 | #pragma omp parallel | ... Expected Results: Compilation completes successfully.
Created attachment 696900 [details] emerge --info
Created attachment 696903 [details] emerge --info Proper emerge --info output. Previous emerge --info output somehow got corrupted.
GCC version and USE flags: sys-devel/gcc-10.2.0-r5:10::gentoo USE="(-ada) (cxx) -d -debug -doc (-fixed-point) fortran -go -graphite (-hardened) -jit (-libssp) lto (-multilib) nls nptl -objc -objc++ -objc-gc -openmp pch -pgo (pie) sanitize ssp -systemtap -test -vanilla -vtv -zstd"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=223280966bd899718c85a616f8baa0376c8d84bb commit 223280966bd899718c85a616f8baa0376c8d84bb Author: Sam James <sam@gentoo.org> AuthorDate: 2021-04-07 01:48:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-04-07 01:57:41 +0000 app-arch/rpm: make openmp optional Closes: https://bugs.gentoo.org/779769 Signed-off-by: Sam James <sam@gentoo.org> app-arch/rpm/rpm-4.16.0.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
Let me know if that fixes the issue for you.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f18ee25512686ce1959e169c55c32a9786fcf4a commit 5f18ee25512686ce1959e169c55c32a9786fcf4a Author: Sam James <sam@gentoo.org> AuthorDate: 2021-04-07 02:36:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-04-07 05:24:23 +0000 app-arch/rpm: add bug reference to OpenMP check Bug: https://bugs.gentoo.org/779769 Signed-off-by: Sam James <sam@gentoo.org> app-arch/rpm/rpm-4.16.0.ebuild | 1 + 1 file changed, 1 insertion(+)
(In reply to Sam James from comment #5) > Let me know if that fixes the issue for you. Yup, it builds fine now, thank you so much!
(In reply to Andrey Hippo from comment #7) > (In reply to Sam James from comment #5) > > Let me know if that fixes the issue for you. > > > Yup, it builds fine now, thank you so much! No problem, thanks for letting me know!