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

    <tr>
        <th>Summary</th>
        <td>
            error: unknown target CPU 'armv8-a' [clang-diagnostic-error]
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    While building AOS with enabling clang tidy I am receiving the below error,
```
error: unknown target CPU 'armv8-a' [clang-diagnostic-error]
note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake, icelake-client, icelake-server, tigerlake, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, x86-64
Error while processing /workspaces/ad-radar-sensor/software/aos/business_logic/sensorstatemachine/src/initstate.cpp.
```


`clang -print-supported-cpus
Ubuntu clang version 12.0.0-3ubuntu1~20.04.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Available CPUs for this target:
 
 alderlake
        amdfam10
        athlon
        athlon-4
 athlon-fx
        athlon-mp
        athlon-tbird
 athlon-xp
        athlon64
        athlon64-sse3
        atom
 barcelona
        bdver1
        bdver2
        bdver3
 bdver4
        bonnell
        broadwell
        btver1
 btver2
        c3
        c3-2
        cannonlake
 cascadelake
        cooperlake
        core-avx-i
 core-avx2
        core2
        corei7
        corei7-avx
 generic
        geode
        goldmont
        goldmont-plus
 haswell
        i386
        i486
        i586
 i686
        icelake-client
        icelake-server
 ivybridge
        k6
        k6-2
        k6-3
        k8
 k8-sse3
        knl
        knm
        lakemont
 nehalem
        nocona
        opteron
        opteron-sse3
 penryn
        pentium
        pentium-m
        pentium-mmx
 pentium2
        pentium3
        pentium3m
 pentium4
        pentium4m
        pentiumpro
        prescott
 sandybridge
        sapphirerapids
        silvermont
 skx
        skylake
        skylake-avx512
        slm
 tigerlake
        tremont
        westmere
        winchip-c6
 winchip2
        x86-64
        x86-64-v2
        x86-64-v3
 x86-64-v4
        yonah
        znver1
        znver2
 znver3`
        
        
        Can I get more information on how to make it work for armv8-a?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysV82OozoWfhqysRwRICRZZFFdNZF6NSP1tGbZMvYJuGNsZBuSmsV99isbTGKKe1e3VAo-3_l8_MP5gxjDawlwTvbfkv3HhvS2Ufr8o__9m9vmx6ZS7PP8v4YLQFXPBeOyRm___oHu3DYIJKmEQ6ggskaWs0_0HZEWaaDAB6exDaAKhLoj0FrpJHtP0o8kfUvKdPr34qjM31Avb1LdJbJE12DR-39-oiQ7EN0OR0yS7ICS_Te_Gmac1FIZyykeZ-8_RltSWXCmBiI4ezU0ENGDQUR7tVRUSZJk74gqDZkbdCD1p3SjSkkJQrghsap1T8PFALpV0npJeLBWggUojHEneuMAqyHoJDREQBtW4wc3uoOxLWjw9ohkn5XmrIYnCZPh4SQ-LFROgbmTGmLu00aDwh-l0oqwoDG3T0Fu8DJ0vP0uGxG_BiWGEgaBR5XqQM8SkVLJIHHqaZgKDuPxAmJAD6D92Xn9nH6TYnz4C7gdx2tthJJl8Rzjq9-I6ixoJUcmNgbyV_oMTLQnoWVX0u5Sf3iiKYjp7VZ2AL2bR-PtsBljEZbPI7-x_8vA8yPPexxLXBajq_3LOR66-_DotKJgjHP6JLvclb6ZjlAwSXYhDGvCiMYGpHFBcDHqau_OEbMLUY5S9YZLMOaXUDWnjuGpxhILLaENl45rtFNxya1XbGnXbVfjKfot0zE-cae5tNj0Xae0BYZp15uR87Pqpe2nOB5AG64k2mXbdJvivPfK3R9Zu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