Bug 1793394

Summary: cryptlib-3.4.5-7.fc32 FTBFS: cc1: error: CPU you selected does not support x86-64 instruction set
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: cryptlibAssignee: Ralf Senderek <fedora>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/cryptlib?collection=f32
Whiteboard:
Fixed In Version: cryltplib-3.4.5-8.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 07:45:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1750908, 1792464    

Description Petr Pisar 2020-01-21 09:10:31 UTC
cryptlib-3.4.5-7.fc32 fails to build on x86_64 in F32:

make[1]: Entering directory '/home/test/fedora/cryptlib/cryptlib-3.4.5'
make libcl.a OBJPATH=./static-obj/ OSNAME=`uname` CFLAGS="-c -D__UNIX__ -DNDEBUG -I. -DDATA_LITTLEENDIAN -DFIXED_SEED=0xc64da63d1f75b757 -DHAS_LDAP -DHAS_ZLIB -DHAS_RECURSIVE_MUTEX -DHAS_ROBUST_MUTEX -mcpu=pentium -DOSVERSION=5 -O3 -fomit-frame-pointer -D_REENTRANT" 
make[2]: Entering directory '/home/test/fedora/cryptlib/cryptlib-3.4.5'
gcc -c -D__UNIX__ -DNDEBUG -I. -DDATA_LITTLEENDIAN -DFIXED_SEED=0xc64da63d1f75b757 -DHAS_LDAP -DHAS_ZLIB -DHAS_RECURSIVE_MUTEX -DHAS_ROBUST_MUTEX -mcpu=pentium -DOSVERSION=5 -O3 -fomit-frame-pointer -D_REENTRANT -o ./static-obj/bn_asm.o bn/bn_asm.c
gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
cc1: error: CPU you selected does not support x86-64 instruction set
make[2]: *** [makefile:579: static-obj/bn_asm.o] Error 1
make[2]: Leaving directory '/home/test/fedora/cryptlib/cryptlib-3.4.5'

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/7741040>. This could be triggered by upgrading gcc from 9.2.1-1.fc32.3 to 10.0.1-0.3.fc32.

Comment 1 Ralf Senderek 2020-01-23 07:45:28 UTC
Version cryptlib-3.4.5-8.fc32 removes the offending compiler flag -mcpu=pentium