File does not exist .Compilation failed

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.

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

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

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

 "  Users " without spaces ?        \   Users  \    ?

Should I rename the folder of Windows ?

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:

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.

I need to investigate it, but probably the problem is in the 8.3 filenames: “BEELIN~1” instead of “Beelink BT3 Pro”. :thinking:
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?
   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 "?

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

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 :thinking:

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.

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”.

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

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.

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

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 !

( Empty folder .)

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

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

 IT ’ S WORKING!        I  successfully debagged a patch.   

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

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

1 Like

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

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.