Description of problem:
nvml fails to build from source for Fedora EPEL7 on RHELSA-7.2.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. On a RHELSA-7.2 host:
mock -r epel-7-aarch64 nvml-1.0-2.el7.src.rpm
Fails to build with the following error:
cc -MD -c -o ../nondebug/libpmem/cpu.o -std=gnu99 -Wall -Werror -Wmissing-prototypes -Wpointer-arith -Wunused-macros -Wmissing-field-initializers -Wsign-conversion -Wsign-compare -Wconversion -pthread -fno-common -DSRCVERSION=\"\" -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -DNO_LIBPTHREAD -I../include -I../common/ -fPIC ../common/cpu.c
pmem.c:206:23: fatal error: xmmintrin.h: No such file or directory
../common/cpu.c:56:0: error: macro "EAX_IDX" is not used [-Werror=unused-macros]
#define EAX_IDX 0
cc1: all warnings being treated as errors
make: *** [../nondebug/libpmem/cpu.o] Error 1
builds without errors, or excludes AArch64 as unsupported.
According to the spec file, this _only_ builds for x86_64:
# Due to dependency on xmmintrin.h and some inline assembly, it can be
# compiled only for x86_64 at the moment.
Other architectures are excluded:
ExcludeArch: ppc ppc64 ppc64le
Would it be simpler to just make this package ExclusiveArch x86_64? If not, please add aarch64 to the list of 'ExcludeArch', until/unless AArch64 support is added.
nvml-1.0-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-cbcf16b270
Tested building nvml-1.0-3.el7 using mock on AArch64:
Start: rpmbuild nvml-1.0-3.el7.src.rpm
error: Architecture is not included: aarch64
Works as expected.
nvml-1.0-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-cbcf16b270
nvml-1.0-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.