<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57348>57348</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            32-bit-X86 build broken
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ms178
      </td>
    </tr>
</table>

<pre>
    Starting from today, I see:

```
[3131/4490] Building CXX object tools/llvm-exegesis/lib/X86/CMakeFiles/LLVMExegesisX86.dir/Target.cpp.o
FAILED: tools/llvm-exegesis/lib/X86/CMakeFiles/LLVMExegesisX86.dir/Target.cpp.o 
/home/marcus/toolchain/llvm/stage2-prof-use-lto/install/bin/clang++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/marcus/Downloads/lib32-llvm-git/src/_build/tools/llvm-exegesis/lib/X86 -I/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/tools/llvm-exegesis/lib/X86 -I/home/marcus/Downloads/lib32-llvm-git/src/_build/include -I/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/include -I/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/X86 -I/home/marcus/Downloads/lib32-llvm-git/src/_build/./lib32/Target/X86 -O3 -march=native -mllvm -extra-vectorizer-passes -mllvm -enable-cond-stores-vec -mllvm -slp-vectorize-hor-store -mllvm -enable-loopinterchange -mllvm -enable-loop-distribute -mllvm -enable-unroll-and-jam -mllvm -enable-loop-flatten -mllvm -interleave-small-loop-scalar-reduction -mllvm -unroll-runtime-multi-exit -mllvm -aggressive-ext-opt -fno-math-errno -fno-trapping-math -falign-functions=32 -fno-semantic-interposition -fcf-protection=none -mharden-sls=none -fomit-frame-pointer -flto -m32 -g0 -Wp,-D_FORTIFY_SOURCE=0 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -std=c++17 -MD -MT tools/llvm-exegesis/lib/X86/CMakeFiles/LLVMExegesisX86.dir/Target.cpp.o -MF tools/llvm-exegesis/lib/X86/CMakeFiles/LLVMExegesisX86.dir/Target.cpp.o.d -o tools/llvm-exegesis/lib/X86/CMakeFiles/LLVMExegesisX86.dir/Target.cpp.o -c /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
In file included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/tools/llvm-exegesis/lib/X86/Target.cpp:14:
In file included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h:19:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h:155:10: fatal error: 'X86GenRegisterInfo.inc' file not found
#include "X86GenRegisterInfo.inc"
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
With the following Clang version and flags used:
```
clang version 16.0.0 (https://github.com/llvm/llvm-project.git 210a4197b4d73388030c63aea6dc51dde3e9166e)
export CC=clang
export CXX=clang++
export CC_LD=lld
export CXX_LD=lld
export AR=llvm-ar
export NM=llvm-nm
export STRIP=llvm-strip
export OBJCOPY=llvm-objcopy
export OBJDUMP=llvm-objdump
export READELF=llvm-readelf
export RANLIB=llvm-ranlib
export HOSTCC=clang
export HOSTCXX=clang++
export HOSTAR=llvm-ar
export CFLAGS="-O3 -march=native -mllvm -extra-vectorizer-passes -mllvm -enable-cond-stores-vec -mllvm -slp-vectorize-hor-store -mllvm -enable-loopinterchange -mllvm -enable-loop-distribute -mllvm -enable-unroll-and-jam -mllvm -enable-loop-flatten -mllvm -interleave-small-loop-scalar-reduction -mllvm -unroll-runtime-multi-exit -mllvm -aggressive-ext-opt -fno-math-errno -fno-trapping-math -falign-functions=32 -fno-semantic-interposition -fcf-protection=none -mharden-sls=none -fomit-frame-pointer -flto"
export CXXFLAGS="${CFLAGS}"
export LDFLAGS="-Wl,--lto-O3,-O3,-Bsymbolic-functions,--as-needed -Wl,-mllvm,-march=native -mllvm -extra-vectorizer-passes -mllvm -enable-cond-stores-vec -mllvm -slp-vectorize-hor-store -mllvm -enable-loopinterchange -mllvm -enable-loop-distribute -mllvm -enable-unroll-and-jam -mllvm -enable-loop-flatten -mllvm -interleave-small-loop-scalar-reduction -mllvm -unroll-runtime-multi-exit -mllvm -aggressive-ext-opt -flto -fuse-ld=lld"
export ASFLAGS="-D__AVX__=1 -D__AVX2__=1 -msse2avx -D__FMA__=1"
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztGMty4jjwa8zFJcrYPA8cAEOWLQgpIJPMiZIt2WhGlrySTJL9-m3Z5pVkZmu3JrOHnZQjcHer3-puEUnyMtwYrAwTqZsomblGEvzi-BN37mpKnWDkeKHjHdeuVz_Va2cctIKW48_a7YHndEJ3XDBOLK_J46Mroy80NsBRcg00nB8yRJ9pSjUr31kE62O_C-tkib_SGePUIhaLT8tpTQfoJmEKoFusUmqacZ43ZSV-NpovpiGo-BEi3NpEf7aXGYWPDKu4sHutsHiPmagFwoc2OKU-ypVMUKEp4kYClAmAcw7fopI45likjj-Gx0Xhbgba71az2Wa63Y3n240ThN22Rdzc3u82q_v1ZGrfFqP1zbSkPcN2m2042U1Wt5vt6Ha7W44m69XmjJit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