# Source code build issue

**URL:** <https://wled.discourse.group/t/source-code-build-issue/14770>\
**Category:** Issues\
**Created:** [August 16, 2025, 5:20pm UTC](https://wled.discourse.group/t/source-code-build-issue/14770 "2025-08-16T17:20:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![epoyart](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@epoyart](https://wled.discourse.group/u/epoyart)\
**Post date:** [August 16, 2025, 5:20pm UTC](https://wled.discourse.group/t/source-code-build-issue/14770/1 "2025-08-16T17:20:21Z")

</div>

Hello! For some reason I had to delete the .bin file from build\_output/release. When I rebuilt, the file didn’t come back. I tried cleaning and deleting the .pio folder, and nothing made it appear.

The solution for that was to modify a .cpp file (add a // on a blank line) and rebuild. Then the .bin file came back.

There may be some improvement that can be made to the last build step of copying the file to build\_output/release. Maybe what is needed is the build\_output/release/\*.bin file should be a build target, that has a build action which is the file copy.

---

<div class="post-metadata">

**Author:** ![netmindz](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/netmindz/32/304_2.png) [@netmindz](https://wled.discourse.group/u/netmindz)\
**Post date:** [August 20, 2025, 7:51am UTC](https://wled.discourse.group/t/source-code-build-issue/14770/2 "2025-08-20T07:51:04Z")

</div>

That is not normal behaviour. What command are using to build?

---

<div class="post-metadata">

**Author:** ![kilrah](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/kilrah/32/5927_2.png) [@kilrah](https://wled.discourse.group/u/kilrah)\
**Post date:** [September 9, 2025, 9:25am UTC](https://wled.discourse.group/t/source-code-build-issue/14770/3 "2025-09-09T09:25:02Z")

</div>

Always had the same issue, the file being copied to build\_output only happens when there’s a change, if pio just grabs it from cache because that exact thing has been built earlier it won’t get copied, probably skips the post actions when “nothing” actually needed to be done

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [September 9, 2025, 9:48am UTC](https://wled.discourse.group/t/source-code-build-issue/14770/4 "2025-09-09T09:48:06Z")

</div>

Use “Full Clean” from PIO Project Tasks, then delete everything in .builcache folder and compile again.

---

<div class="post-metadata">

**Author:** ![epoyart](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@epoyart](https://wled.discourse.group/u/epoyart)\
**Post date:** [September 22, 2025, 1:52am UTC](https://wled.discourse.group/t/source-code-build-issue/14770/5 "2025-09-22T01:52:33Z")

</div>

I don’t have a .buildcache folder.  
”Full Clean” didn’t fix the problem.

---

<div class="post-metadata">

**Author:** ![epoyart](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@epoyart](https://wled.discourse.group/u/epoyart)\
**Post date:** [September 22, 2025, 2:03am UTC](https://wled.discourse.group/t/source-code-build-issue/14770/6 "2025-09-22T02:03:53Z")

</div>

I found .buildcache in my $HOME. It worked when I deleted it. Thanks!
