Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779769 - app-arch/rpm-4.16.0: fails to compile without OpenMP
Summary: app-arch/rpm-4.16.0: fails to compile without OpenMP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 778500
  Show dependency tree
 
Reported: 2021-04-02 01:22 UTC by Andrey
Modified: 2021-04-13 13:56 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,10.60 KB, text/plain)
2021-04-02 01:27 UTC, Andrey
Details
emerge --info (emerge-info.txt,16.48 KB, text/plain)
2021-04-02 02:14 UTC, Andrey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2021-04-02 01:22:17 UTC
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.
Comment 1 Andrey 2021-04-02 01:27:10 UTC
Created attachment 696900 [details]
emerge --info
Comment 2 Andrey 2021-04-02 02:14:43 UTC
Created attachment 696903 [details]
emerge --info

Proper emerge --info output.
Previous emerge --info output somehow got corrupted.
Comment 3 Andrey 2021-04-02 02:23:27 UTC
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"
Comment 4 Larry the Git Cow gentoo-dev 2021-04-07 01:58:16 UTC
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(-)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-07 02:01:05 UTC
Let me know if that fixes the issue for you.
Comment 6 Larry the Git Cow gentoo-dev 2021-04-07 05:24:34 UTC
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(+)
Comment 7 Andrey 2021-04-13 03:50:44 UTC
(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!
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-13 13:56:55 UTC
(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!