Bug 2188608

Summary: fatal error: amxcomplexintrin.h: No such file or directory
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, code, dmalcolm, fweimer, jakub, jlaw, justin.zobel, jwakely, mcatanza, mcermak, mpolacek, msebor, nickc, pemensik, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gcc-13.0.1-0.16.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-22 12:43:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2188413    

Description Jens Petersen 2023-04-21 11:19:41 UTC
While trying to build ghc (ghc9.4 and ghc9.6) today in rawhide buildroot, I hit:

| Run Ghc CompileCWithGhc (Stage0 InTreeLibs): libraries/bytestring/cbits/itoa.c => _build/stage0/libraries/bytestring/build/c/cbits/itoa.o
Command line: /usr/bin/ghc-9.2 -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-env -' '-package-db _build/stage0/inplace/package.conf.d' '-this-unit-id bytestring-0.11.4.0' '-package-id base-4.16.4.0' '-package-id deepseq-1.4.6.1' '-package-id ghc-prim-0.8.0' '-package-id template-haskell-2.20.0.0' -i -i/builddir/build/BUILD/ghc-9.6.1/_build/stage0/libraries/bytestring/build -i/builddir/build/BUILD/ghc-9.6.1/_build/stage0/libraries/bytestring/build/autogen -i/builddir/build/BUILD/ghc-9.6.1/libraries/bytestring -I_build/stage0/libraries/bytestring/build -I_build/stage0/libraries/bytestring/build/include -Ilibraries/bytestring/include -I/usr/lib64/ghc-9.2.7/lib/x86_64-linux-ghc-9.2.7/base-4.16.4.0/include -I/usr/lib64/ghc-9.2.7/lib/x86_64-linux-ghc-9.2.7/ghc-bignum-1.2/include -I/usr/lib64/ghc-9.2.7/lib/x86_64-linux-ghc-9.2.7/rts-1.0.2/include -optP-include -optP_build/stage0/libraries/bytestring/build/autogen/cabal_macros.h -outputdir _build/stage0/libraries/bytestring/build -optc-std=c11 -optc-DNDEBUG=1 -optc-I_build/stage0/libraries/bytestring/build -optc-I_build/stage0/libraries/bytestring/build/include -optc-Ilibraries/bytestring/include -optc-I/usr/lib64/ghc-9.2.7/lib/x86_64-linux-ghc-9.2.7/base-4.16.4.0/include -optc-I/usr/lib64/ghc-9.2.7/lib/x86_64-linux-ghc-9.2.7/ghc-bignum-1.2/include -optc-I/usr/lib64/ghc-9.2.7/lib/x86_64-linux-ghc-9.2.7/rts-1.0.2/include -optc-Wno-error=inline -optP-Wno-nonportable-include-path -c libraries/bytestring/cbits/is-valid-utf8.c -o _build/stage0/libraries/bytestring/build/c/cbits/is-valid-utf8.o -O0 -H64m -Wall -fwarn-tabs -Wincomplete-uni-patterns -O2 -fmax-simplifier-iterations=10 -fdicts-cheap -fspec-constr-count=6 -XHaskell2010 -fno-warn-deprecated-flags
===> Command failed with error code: 1
In file included from libraries/bytestring/cbits/is-valid-utf8.c:39:0: error:
    
/usr/lib/gcc/x86_64-redhat-linux/13/include/immintrin.h:135:10: error:
     fatal error: amxcomplexintrin.h: No such file or directory
      135 | #include <amxcomplexintrin.h>
          |          ^~~~~~~~~~~~~~~~~~~~
    |
135 | #include <amxcomplexintrin.h>
    |          ^
compilation terminated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)
Command failed
Build failed.
error: Bad exit status from /var/tmp/rpm-tmp.XW0EtS (%build)

Reproducible: Always

Comment 1 Jens Petersen 2023-04-21 11:21:26 UTC
I was able to do a scratch yesterday so this looks related to the latest builds:

glibc-2.37.9000-6.fc39
gcc-13.0.1-0.15.fc39
gcc-13.0.1-0.14.fc39

Comment 2 Jens Petersen 2023-04-21 11:30:19 UTC
Successful scratch build yesterday: https://koji.fedoraproject.org/koji/taskinfo?taskID=100177777

Failing build today: https://koji.fedoraproject.org/koji/taskinfo?taskID=100208161

Comment 3 Jakub Jelinek 2023-04-21 13:12:17 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=100212541
fix is building, but it will take 12-36 hours to finish.

Comment 4 Marek Polacek 2023-04-21 18:08:28 UTC
*** Bug 2188699 has been marked as a duplicate of this bug. ***

Comment 5 Jens Petersen 2023-04-22 06:10:08 UTC
I tested the x86_64 rpms locally and it looks good now, thanks

(The build hasn't finished yet: s390x is still going)

Comment 6 Jakub Jelinek 2023-04-22 12:42:29 UTC
*** Bug 2188788 has been marked as a duplicate of this bug. ***

Comment 7 Jakub Jelinek 2023-04-22 12:43:36 UTC
Should be fixed in rawhide now.

Comment 8 Jens Petersen 2023-04-22 12:56:50 UTC
Yes it just actually appeared in the buildroot moments ago

Comment 9 Jakub Jelinek 2023-04-23 11:44:46 UTC
*** Bug 2188921 has been marked as a duplicate of this bug. ***

Comment 10 Justin Zobel 2023-04-25 05:11:32 UTC
Can we please have this done on F38 as well please, it was also affected.

Comment 11 Jakub Jelinek 2023-04-25 07:28:43 UTC
No, it wasn't.
amxcomplexintrin.h has been added upstream on April 10th, but
$ koji latest-pkg f38-updates gcc
Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
gcc-13.0.1-0.12.fc38                      f38                   jakub
$ koji latest-pkg f38-updates-candidate gcc
Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
gcc-13.0.1-0.13.fc38                      f38-updates-candidate  jakub
where 0.12 is an April 1st and 0.13 April 4th snapshot.
gcc-13.0.1-0.14 has been built only for f39/eln and has not been tagged anywhere
(intentionally), -0.15 and -0.16 have been built only for f39/eln and tagged there.
f38 will only get gcc-13.1.1-1.fc38 hopefully tomorrow after official GCC 13.1 release.

Comment 12 Justin Zobel 2023-04-25 07:30:58 UTC
Ah my apologies I misread my build, it is in Rawhide, not F38. Thank you for the fix!