arduino / arduino-builder

A command line tool for compiling Arduino sketches
GNU General Public License v2.0
459 stars 114 forks source link

"No such file or directory : ctags_target_for_gcc_minus_e.cpp" #266

Closed ridhaos closed 6 years ago

ridhaos commented 6 years ago

Hello: I have a big problem when I'm trying to compile a blink sketch with my hardware definition. I'm running into an error and i didin't understand the cause of problem.

Arduino: 1.8.5 (Windows 10), Board: "STM8S-Discovery"

Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\variants\STM8S105C6-Discovery" -sp -o "C:\Users\OUERTA~1\AppData\Local\Temp\arduino_build_766050\preproc\ctags_target_for_gcc_minus_e.cpp" "C:\Users\OUERTA~1\AppData\Local\Temp\arduino_build_766050\sketch\Blink.ino.cpp"
clang++.exe: error: no such file or directory: 'C:\Users\OUERTA~1\AppData\Local\Temp\arduino_build_766050\preproc\ctags_target_for_gcc_minus_e.cpp'

clang++.exe: error: no input files

C:\Users\OUERTA~1\AppData\Local\Temp\arduino_build_766050\sketch\Blink.ino.cpp:1:10: fatal error: 'Arduino.h' file not found

#include <Arduino.h>

         ^~~~~~~~~~~

1 error generated.

unknown file type Safa\AppData\Local\Arduino15\packages\STM8\tools\cxppstm8\4.1.1\\hstm8"

unknown file type -I

unknown file type C:\Users\Ouertani Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\system/libstm8s

unknown file type -I

unknown file type C:\Users\Ouertani Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\system/libstm8s/include

unknown file type -I

unknown file type C:\Users\Ouertani Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\system/Drivers/STM8S_StdPeriph_Driver/inc/

unknown file type -I

unknown file type C:\Users\Ouertani Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\cores\arduino/libstm8s

unknown file type -I

unknown file type C:\Users\Ouertani Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\cores\arduino/libstm8s/STM8S_StdPeriph_Driver/inc

unknown file type -I

unknown file type C:\Users\Ouertani Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\cores\arduino/libstm8s/STM8S_StdPeriph_Driver

unknown file type -dF_CPU=16000000

unknown file type -dARDUINO=10805

unknown file type -dARDUINO_STM8S_Discovery

unknown file type -dARDUINO_ARCH_STM8

unknown file type -d

unknown file type STM8S105

unknown file type -IC:\Users\Ouertani Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\cores\arduino

unknown file type -IC:\Users\Ouertani Safa\AppData\Local\Arduino15\packages\STM8\hardware\stm8\2017.10.10\variants\STM8S105C6-Discovery

unknown file type -sp

unknown file type -o

exit status 1
Error compiling for board STM8S-Discovery.
facchinm commented 6 years ago

Hi @ridhaos , the problem looks related with spaces in your username (C:\Users\Ouertani Safa). Probably STM8 core doesn't properly escape the path (like here , some escapes look wrong). Please open an issue on the STM8 core reporting the issue and, in case the problem is on our side, comment here so I'll reopen this one. Thanks!