Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 782127 - app-arch/rpm: needs OpenMP to build, but it is not a required dependency
Summary: app-arch/rpm: needs OpenMP to build, but it is not a required dependency
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-11 18:48 UTC by Jonathan Marten
Modified: 2021-04-11 21:27 UTC (History)
1 user (show)

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


Attachments
Full emerge log (build.log,130.03 KB, text/x-log)
2021-04-11 18:52 UTC, Jonathan Marten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Marten 2021-04-11 18:48:47 UTC
app-arch/rpm-4.16.0 appears to need OpenMP to build, but it is not specified as a dependency and so is not installed automatically:

libtool: compile:  clang -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 -fno-lto -O2 -march=native -mtune=native -pipe -fno-diagnostics-show-option -fno-show-column -fno-caret-diagnostics -fno-diagnostics-fixit-info -c parseSpec.c  -fPIC -DPIC -o .libs/parseSpec.o
parseSpec.c:10: fatal error: 'omp.h' file not found
make[2]: *** [Makefile:646: parseSpec.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/app-arch/rpm-4.16.0/work/rpm-4.16.0/build'
make[1]: *** [Makefile:1366: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-arch/rpm-4.16.0/work/rpm-4.16.0'
make: *** [Makefile:795: all] Error 2
 * ERROR: app-arch/rpm-4.16.0::gentoo failed (compile phase):

OpenMP support is configurable in the RPM source (preprocessor define ENABLE_OPENMP enabled by the --enable-openmp option to configure), but the ebuild does not enable or disable this option.


Reproducible: Always

Steps to Reproduce:
1. Without sys-libs/libomp installed, emerge app-arch/rpm
2. Observe build failure as above
3. emerge sys-libs/libomp then app-arch/rpm, no build failure




This is a Clang system with everything (apart from a few exceptions) built with Clang/LLVM 11 and corresponding libcxx, libcxxabi and libunwind.

emerge --info:

Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1/systemd, gcc-10.2.0, glibc-2.32-r7, 5.4.97-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.4.97-gentoo-x86_64-x86_64-AMD_Athlon-tm-_II_X3_450_Processor-with-glibc2.2.5
KiB Mem:     6107364 total,   3173656 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sat, 03 Apr 2021 14:00:01 +0000
Head commit of repository gentoo: 8ca37175460b3975912e8470e926b5fd7a96e0a2
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /mnt/auto/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

qt
    location: /mnt/auto/layman/qt
    masters: gentoo
    priority: 50

squeezebox
    location: /mnt/auto/layman/squeezebox
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE fairuse freedist NVIDIA-r2 Kermit bh-luxi google-chrome AdobeFlash-11.x linux-fw-redistributable no-source-code linux-firmware"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-fno-lto -O2 -march=native -mtune=native -pipe -fno-diagnostics-show-option -fno-show-column -fno-caret-diagnostics -fno-diagnostics-fixit-info"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="clang++"
CXXFLAGS="-fno-lto -O2 -march=native -mtune=native -pipe -fno-diagnostics-show-option -fno-show-column -fno-caret-diagnostics -fno-diagnostics-fixit-info"
DISTDIR="/var/tmp/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/"
LANG="C.UTF8"
LDFLAGS="-fuse-ld=gold -fno-lto -Wl,-O2 -Wl,--as-needed"
LINGUAS="en en_GB de fr"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X aac acl alsa amd64 bash-completion berkdb bzip2 cdr clang cli crypt cups dbus dri exif ffmpeg fortran ftp gdbm gif iconv jpeg jpeg2k libglvnd libtirpc mmx mmxext mp3 multilib ncurses nls nptl offensive ogg opengl pam pcmcia pcre pdf png popcnt readline samba seccomp split-usr sse sse2 sse3 sse4a ssl svg systemd tcpd tiff truetype udev unicode usb vim-syntax vorbis wmf xattr xface xinetd xml xpm zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-GB de fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" SANE_BACKENDS="agfafocus apple avision brother canon canon630u coolscan coolscan2 epson genesys gt68xx hp microtek microtek2 mustek mustek_usb plustek sharp test umax hp5400 hp4200 hp3500 qcam v4l net mustek_usb2 pnm" USERLAND="GNU" VIDEO_CARDS="dummy fbdev vesa vga nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-11 18:51:43 UTC
(In reply to Jonathan Marten from comment #0)
> app-arch/rpm-4.16.0 appears to need OpenMP to build, but it is not specified
> as a dependency and so is not installed automatically:

We should add the conditional libomp dep, yeah.

> OpenMP support is configurable in the RPM source (preprocessor define
> ENABLE_OPENMP enabled by the --enable-openmp option to configure), but the
> ebuild does not enable or disable this option.
> 

It does, right?

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=223280966bd899718c85a616f8baa0376c8d84bb
Comment 2 Jonathan Marten 2021-04-11 18:52:43 UTC
Created attachment 699312 [details]
Full emerge log
Comment 3 Jonathan Marten 2021-04-11 19:01:18 UTC
Thanks for the quick response!
Presumably the fix will appear in app-arch/rpm-4.16.0-r1?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-11 21:27:28 UTC
(In reply to Jonathan Marten from comment #3)
> Thanks for the quick response!
> Presumably the fix will appear in app-arch/rpm-4.16.0-r1?

Oh wait.

>Timestamp of repository gentoo: Sat, 03 Apr 2021 14:00:01 +0000

We now call tc-check-openmp (since the commit I linked, a few days ago) which includes a check for Clang and will mention needing libomp. So, you need to emerge --sync.