# Issue about armClang compiler

**URL:** https://discourse.cmake.org/t/issue-about-armclang-compiler/6735
**Category:** Usage
**Tags:** os:windows, gen:ninja
**Created:** [October 27, 2022, 3:25am UTC](https://discourse.cmake.org/t/issue-about-armclang-compiler/6735 "2022-10-27T03:25:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ddddxie](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ddddxie/32/2581_2.png) [@ddddxie](https://discourse.cmake.org/u/ddddxie)
#### Post date: [October 27, 2022, 3:25am UTC](https://discourse.cmake.org/t/issue-about-armclang-compiler/6735/1 "2022-10-27T03:25:42Z")

</div>

HI, Experts,  
I am using TI armClang compiler the version is ti-cgt-armllvm\_1.3.0.LTS.  
I am facing a issue that the linker report a error that file name or extension is too long. Then I am checking the rules.ninja, I found \*.rsp file has not newline and I think this is the reason about linker error.  
[MCU1\_0.rsp](https://discourse.cmake.org/uploads/short-url/a1yn3WD4sP19X8FdNmIS4ZT3MQ4.rsp) (40.2 KB)  
And then I found rules.ninja which generate by CMake has something wrong:  
1.rspfile\_content = $in $LINK\_PATH $LINK\_LIBRARIES  
If parameter $in change to $in\_newline, \*.rsp file will one obj files one line.  
2.command = cmd.exe /C “$PRE\_LINK && C:\ti\ti-cgt-armllvm\_1.3.0.LTS\_win\bin\tiarmclang.exe $FLAGS $LINK\_FLAGS @$RSP\_FILE -o $TARGET\_FILE && $POST\_BUILD”  
If parameter @$RSP\_FILE change to $RSP\_FILE, pass to linker is \*.rsp file not \*.rsp file content expansion.  
So how can I control CMake to generate correct rules.ninja?  
Regards,  
Da

[rules.ninja](https://discourse.cmake.org/uploads/short-url/3OshB0o5uu4kihLqjFziJRvKJ1.ninja) (2.8 KB)

---

<div class="post-metadata">

### Author: ![jtxa](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jtxa/32/1535_2.png) [@jtxa](https://discourse.cmake.org/u/jtxa)
#### Post date: [October 28, 2022, 12:44am UTC](https://discourse.cmake.org/t/issue-about-armclang-compiler/6735/2 "2022-10-28T00:44:34Z")

</div>

Duplicate of [TI\_Arm\_Clang\_Compiler\_1.3.0 not passing initial compiler test](https://discourse.cmake.org/t/ti-arm-clang-compiler-1-3-0-not-passing-initial-compiler-test/5759)

---

<div class="post-metadata">

### Author: ![ddddxie](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ddddxie/32/2581_2.png) [@ddddxie](https://discourse.cmake.org/u/ddddxie)
#### Post date: [October 28, 2022, 1:07am UTC](https://discourse.cmake.org/t/issue-about-armclang-compiler/6735/3 "2022-10-28T01:07:45Z")

</div>

Thanks for your reply.  
TI\_Arm\_Clang\_Compiler\_1.3.0 passing initial compiler test on my end, this is compiler test log.

 ![image](https://discourse.cmake.org/uploads/default/original/2X/d/d204691bc2693912da9e070ab056f76065942034.png)  
I think the reason is the TI ARM Clang compiler expansion the rsp file content and over windows string limits(max length is 8191), causes the linker not to get all obj info. If I try to modify the rules.ninja content it will works normally.  
[rules.ninja](https://discourse.cmake.org/uploads/short-url/zbTlVg7D7bSmm1suqYRAQHzIdPH.ninja) (2.9 KB)  
[rules\_modified.ninja](https://discourse.cmake.org/uploads/short-url/wSo9fTprEy5y2kxQhwEXHLZSPhw.ninja) (2.9 KB)  
So could you please Give some suggestions to me?  
Regards,  
Da

---

<div class="post-metadata">

### Author: ![ddddxie](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ddddxie/32/2581_2.png) [@ddddxie](https://discourse.cmake.org/u/ddddxie)
#### Post date: [October 28, 2022, 6:28am UTC](https://discourse.cmake.org/t/issue-about-armclang-compiler/6735/4 "2022-10-28T06:28:04Z")

</div>

And I also found that it should be caused by this file.

 ![image](https://discourse.cmake.org/uploads/default/original/2X/7/76b573f52ce2013946c1188cc57447acdac0fecd.png)  
 ![image](https://discourse.cmake.org/uploads/default/original/2X/b/bc9185d6e013b87c9bec441bb51b6f461c1012a0.png)  
Regards,  
Da
