# Warning: Did not find file Compiler/-ASM How to solve this warning??Even though Warning build is happen is it correct build or not??

**URL:** https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765
**Category:** Development
**Created:** [January 3, 2022, 6:52am UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765 "2022-01-03T06:52:30Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![vasantharaj](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/v/bcef8e/32.png) [@vasantharaj](https://discourse.cmake.org/u/vasantharaj)
#### Post date: [January 3, 2022, 6:52am UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/1 "2022-01-03T06:52:30Z")

</div>

Warning: Did not find file Compiler/-ASM

 ![image](https://discourse.cmake.org/uploads/default/original/2X/8/80be599ba13af50a3989cdebc1a90a23ad13d786.png)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [January 3, 2022, 4:06pm UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/2 "2022-01-03T16:06:16Z")

</div>

It looks like the platform was not detected; the `skipped` on the C compiler check is probably related. Are you using a toolchain file? If so, you probably need to give the platform name.

---

<div class="post-metadata">

### Author: ![fdk17](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/f/ea666f/32.png) [@fdk17](https://discourse.cmake.org/u/fdk17)
#### Post date: [January 3, 2022, 4:14pm UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/3 "2022-01-03T16:14:49Z")

</div>

The Green Hills MULTI generator hasn’t been tested when enabling ASM as a language. I’ve only used C CXX. If you don’t enable ASM as a language you still could add the assembly files to the target. I think there is a decent chance that the target would build correctly.

---

<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: [January 6, 2022, 11:51pm UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/4 "2022-01-06T23:51:58Z")

</div>

> [@ben.boeckel](#):
>
> the `skipped` on the C compiler check is probably related

The `skipped` is a normal CMake message since 3.18 when the ABI works, see [https://gitlab.kitware.com/cmake/cmake/-/merge\_requests/4789#note\_797935](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4789#note_797935)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [January 7, 2022, 1:26pm UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/5 "2022-01-07T13:26:48Z")

</div>

I’d go by fdk17’s response as it seems the GHS Multi generator just doesn’t support ASM yet.

---

<div class="post-metadata">

### Author: ![fdk17](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/f/ea666f/32.png) [@fdk17](https://discourse.cmake.org/u/fdk17)
#### Post date: [January 8, 2022, 10:01pm UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/6 "2022-01-08T22:01:16Z")

</div>

I’ve tested this out; You can add `.s` files as sources and it will be built into the executable.

---

<div class="post-metadata">

### Author: ![Vix](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/v/a88e4f/32.png) [@Vix](https://discourse.cmake.org/u/Vix)
#### Post date: [October 4, 2022, 11:25am UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/7 "2022-10-04T11:25:12Z")

</div>

Hi, I got the same problem, but adding the \*.s to the sources of c files list do not resolve, because it creates the .o but then:

```auto
Output from Assembling startup.s:
[asarm] (error #2179) startup.s 1: unexpected token type (binaryop) encountered; expected type (identifier)

```

this generates many errors and then block the operation.  
Is there a way to avoid the “asarm” assembly part? This is a port from a make project…I know that for the assembly should be used “ccarm”, but I’m not able to set it up.

---

<div class="post-metadata">

### Author: ![krischik](https://discourse.cmake.org/user_avatar/discourse.cmake.org/krischik/32/2842_2.png) [@krischik](https://discourse.cmake.org/u/krischik)
#### Post date: [October 17, 2022, 3:31pm UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/8 "2022-10-17T15:31:10Z")

</div>

I got the same problem with a slight difference:

```auto
-- Warning: Did not find file Compiler/cc65-ASM

```

As least the correct toolchain was detected but no assembler sources where compiled.

---

<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 17, 2022, 8:45pm UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/9 "2022-10-17T20:45:42Z")

</div>

This is a different warning. If you use ASM language for any compiler, CMake expects a cmake file with that name for setup.  
CMake contains such files for every compiler where it supports Assembler. CC65 is not supported by CMake itself.

---

<div class="post-metadata">

### Author: ![krischik](https://discourse.cmake.org/user_avatar/discourse.cmake.org/krischik/32/2842_2.png) [@krischik](https://discourse.cmake.org/u/krischik)
#### Post date: [October 18, 2022, 6:14am UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/10 "2022-10-18T06:14:21Z")

</div>

> CMake expects a cmake file with that name for setup.

Where does CMake expect the file to be? I provided an appropriate file in the source directory on of the many tests I made. But CMake didn’t search `${PROJECT\_SOURCE\_DIR}/Compiler/cc65-ASM.cmake’.

> CC65 is not supported by CMake itself.

Yes, this is indeed the problem. Using an unsupported compiler with CMake seem to be close to impossible.

---

<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 19, 2022, 12:12am UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/11 "2022-10-19T00:12:32Z")

</div>

The file is expected in the [CMAKE\_MODULE\_PATH](https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html).  
But adding that file will only suppress that warning, it won’t add any functionality.  
The toolchain file from that [repo](https://github.com/jviskari/cc65_cmake) you mentioned, works fine for C and ASM. The example compiles without any problems.

---

<div class="post-metadata">

### Author: ![namhoaile1131](https://discourse.cmake.org/user_avatar/discourse.cmake.org/namhoaile1131/32/5583_2.png) [@namhoaile1131](https://discourse.cmake.org/u/namhoaile1131)
#### Post date: [May 26, 2025, 8:55am UTC](https://discourse.cmake.org/t/warning-did-not-find-file-compiler-asm-how-to-solve-this-warning-even-though-warning-build-is-happen-is-it-correct-build-or-not/4765/12 "2025-05-26T08:55:23Z")

</div>

Hi, Have you fix this error? I’ve the same one like you
