# File does not exist .Compilation failed

**URL:** <https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920>\
**Category:** Uncategorized\
**Created:** [November 25, 2019, 7:35pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920 "2019-11-25T19:35:02Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [November 25, 2019, 7:35pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/1 "2019-11-25T19:35:02Z")

</div>

Please look THIS error. What is the cause of it ?  
The same board ( Arduino UNO ) was working on my other computer.

Error: exec: “C:\Users\Beelink BT3 Pro\xod\ **packages** \packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++”: file does not exist  
Compilation failed.  
Compilation failed  
Command `C:\Program Files\XOD IDE\resources\arduino-cli.exe --config-file=C:\Users\BEELIN~1\AppData\Local\Temp\arduino-cliTzSOtR\.cli-config.yml compile --fqbn arduino:avr:uno --verbose C:\Users\BEELIN~1\AppData\Local\Temp\xod_temp_sketchbookVjcmdf\xod_1574707285365_sketch` failed with code 1  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

---

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [November 25, 2019, 8:12pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/2 "2019-11-25T20:12:44Z")

</div>

It happens many times upon attempt to compile any very simple patch. Help , please .

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [November 25, 2019, 8:44pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/3 "2019-11-25T20:44:29Z")

</div>

there was a problem in previous versions, when the name of the “user” contained spaces. I don’t know if that changed in the new version, try a user without that

---

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [November 26, 2019, 5:22am UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/4 "2019-11-26T05:22:04Z")

</div>

```
C:\Users\Beelink BT3 Pro\xod\ **packa... ?

 " Users " without spaces ? \ Users \ ?

```

Should I rename the folder of Windows ?

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [November 26, 2019, 9:22am UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/5 "2019-11-26T09:22:41Z")

</div>

The spaces in your username (Beelink BT3 Pro) are causing the problem. The developers have fixed this issue in the next release. Try the prerelease version:

> [@Many Many problems After Installing Xod](https://forum.xod.io/t/many-many-problems-after-installing-xod/2784/11):
>
> @drsaylor I’ve already done with it (PR: [https://github.com/xodio/xod/pull/1906](https://github.com/xodio/xod/pull/1906) ). The fix will be included in the next release. But now you can download the prerelease version (v0.31.2-alpha.be98d789): [https://www.googleapis.com/download/storage/v1/b/releases.xod.io/o/v0.31.2-alpha.be98d789%2FXOD%20IDE%20Setup%200.31.2-alpha.be98d789.exe?generation=1573584233408735&alt=media](https://www.googleapis.com/download/storage/v1/b/releases.xod.io/o/v0.31.2-alpha.be98d789%2FXOD%20IDE%20Setup%200.31.2-alpha.be98d789.exe?generation=1573584233408735&alt=media) Please, write the review about this prerelease to make sure that helps. slight_smile

---

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [November 26, 2019, 3:37pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/6 "2019-11-26T15:37:42Z")

</div>

I tried 0.31.2 version - a result still the same.

Error: exec: “C:\Users\Beelink BT3 Pro\xod\ **packages** \packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++”: file does not exist  
Compilation failed.

---

<div class="post-metadata">

**Author:** ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)\
**Post date:** [November 26, 2019, 5:55pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/7 "2019-11-26T17:55:34Z")

</div>

I need to investigate it, but probably the problem is in the 8.3 filenames: “BEELIN~1” instead of “Beelink BT3 Pro”. 🤔  
Please, check out your workspace path and tell me:

1. Does this folder exist: `C:\Users\Beelink BT3 Pro\xod\packages\packages\arduino`
2. Can you find out `avr-g++` file here: `C:\Users\Beelink BT3 Pro\xod\packages\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/`?

Also, if you installed the package before you switched to prerelease 0.31.2, try to switch the workspace to the new clean directory and try again.

- Does it install package and list boards properly?
- Does the error occur only on uploading?

---

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [November 26, 2019, 7:18pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/8 "2019-11-26T19:18:36Z")

</div>

```
   Yes . Arduino folder exist.
   File avr-g++ exactly on own place .

 I can not understand what mins " switch the workspace. " Is it folder " avr-g++ " ? 
  How it can remain if I ' v been deleting the previous version ? 

      Yes , the error occur only on uploading.

```

How can I install package not properly ?  
Today, on notebook, I had to install list boards not properly ( with some errors ) , but all working.

Maybe the matter is that I have a folder “Пользователи” instead " Users "?

```
         Спасибо за помощь !
```

---

<div class="post-metadata">

**Author:** ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)\
**Post date:** [November 28, 2019, 10:58am UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/9 "2019-11-28T10:58:38Z")

</div>

I’m sure that the problem is in “8.3 filenames”, which transforms your username from “Beelink BT3 Pro” into “BEELIN~1”, probably because your username contains spaces. And it looks like a problem inside of arduino-cli tool 🤔

I’m not sure. But try to create a new user with a short name and without spaces. And try to reproduce the bug. Please, tell us does it help or not. It will help us to fix the bug.

P.S.  
About workspace. Yes, this is a folder, by default it is in your home directory (`C:/Users/<username>/xod`). It contains your projects, installed packages, tools and third-party libraries. Probably some may went wrong during the installation of the tools, so you can try to delete ` __packages__ ` folder and try to install it again. Or just switch to the new workspace.  
To switch workspace use a main menu of the IDE: File -\> Switch Workspace. And then select another one folder (you have to create it first), select “Create”.

---

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [November 30, 2019, 4:38pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/10 "2019-11-30T16:38:57Z")

</div>

```
May be I did something wrong ? Selecting Create, I received the next message.

```

Error  
EPERM: operation not permitted, open ‘C:\Users\xodide.xodworkspace’  
The error has no formatter, which is a bug. Report the issue to XOD developers.

```
   Else, I will try to rename the folder of the username. If it will be necessary.
```

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [November 30, 2019, 5:02pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/11 "2019-11-30T17:02:49Z")

</div>

> [@kolya1024](#):
>
> EPERM: operation not permitted, open ‘C:\Users\xodide.xodworkspace’

Try to create the workspace on disk C:\xod  
or create a new user, there in the "users"folder you may not have permissions

---

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [November 30, 2019, 8:41pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/12 "2019-11-30T20:41:31Z")

</div>

Excuse me . I did not catch . What the use change directory of the workspace into a hole folder? … Oh ! IT ’ S WORKING ! ( C:\xod\ … ) !  
Matt Wayland and Kirill Shumilov . Thank you!  
gracias, señor cesars ! muy agradecido !

---

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [November 30, 2019, 9:02pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/13 "2019-11-30T21:02:03Z")

</div>

( Empty folder .)

```
   A little more . Is there some reason to spik about WAVGAT UNO P3 ?
```

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [November 30, 2019, 9:27pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/14 "2019-11-30T21:27:06Z")

</div>

create a folder in C: it is an alternative not to create a new user

you can copy the content from one workspace to another, for example from  
c:\users\user 1\xod … to c:\xod  
change workspace , select folder y reload

---

<div class="post-metadata">

**Author:** ![kolya1024](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kolya1024](https://forum.xod.io/u/kolya1024)\
**Post date:** [December 1, 2019, 5:16am UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/15 "2019-12-01T05:16:23Z")

</div>

```
 IT ’ S WORKING! I successfully debagged a patch.   

```

I had only created a new folder and selected the workspace.

---

<div class="post-metadata">

**Author:** ![pon4ik](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pon4ik](https://forum.xod.io/u/pon4ik)\
**Post date:** [March 22, 2021, 5:58pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/16 "2021-03-22T17:58:17Z")

</div>

Begin compiling code for the board Arduino Mega or Mega 2560 📦  
Error during build: exec: “/bin/avr-g++”: file does not exist  
И как с этим говном бороться? где именно он не видит файл? Где-то можно вручную пути прописать?

---

<div class="post-metadata">

**Author:** ![lsdsubrosa](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@lsdsubrosa](https://forum.xod.io/u/lsdsubrosa)\
**Post date:** [May 10, 2021, 6:29pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/17 "2021-05-10T18:29:28Z")

</div>

Ты решил это говно? Потому что это просто говно

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [May 10, 2021, 7:56pm UTC](https://forum.xod.io/t/file-does-not-exist-compilation-failed/2920/18 "2021-05-10T19:56:42Z")

</div>

Depends which file is missing. After installing (or updating) XOD, you will need internet access on the first compile so XOD can download AVR Tools to compile for your specific Arduino board. This seems to be the most frequent cause for missing files on compile. There are other threads for manually installing those tools if you can’t get internet access on the box you are using for XOD.

Not much more we can do to help without the specific error message. If copying errors from compile window, be sure to scroll back far enough to get the first error, and not just copy the “an error occurred above” message from the bottom of the output.
