Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Compile error: arm-none-eabi-g++*: fatal error: no input files (Read 4303 times)
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Compile error: arm-none-eabi-g++*: fatal error: no input files
Jun 19th, 2021 at 12:41pm
Print Post  
The same problem.
Arduino IDE compilation OK.
« Last Edit: Jun 20th, 2021 at 3:48pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Build errors in SAMD project (due to updates?)
Reply #1 - Jun 19th, 2021 at 12:53pm
Print Post  
Switching to "Always Copy Build Output to Intermediate"
solves the problem.
So, it seems concern with long command line.
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Build errors in SAMD project (due to updates?)
Reply #2 - Jun 19th, 2021 at 12:58pm
Print Post  
Magical mystery!
Now I returned to previous setting and got normal compilation.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build errors in SAMD project (due to updates?)
Reply #3 - Jun 19th, 2021 at 1:30pm
Print Post  
It would be useful to see another verbose output with it working. The previous one shows it failed on the linker.

The copy to intemediate is a read only local copy of the final build output that happens after a successful build. Therefore unconnected to the linker issue.

This is the command that failed previously

Code
Select All
n/arm-none-eabi-g++" "-LD:\ArduinoSeeed\Proj\Wio\I2C_Scanner\Release\" -Os -Wl,--gc-sections -save-temps terminal/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,D:\ArduinoSeeed\Proj\Wio\I2C_Scanner\Release\/I2C_Scanner.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m4 -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -u _printf_float -u _scanf_float -Wl,--wrap,_write -u __wrap__write -o "D:\ArduinoSeeed\Proj\Wio\I2C_Scanner\Release\/I2C_Scanner.ino.elf" "D:\ArduinoSeeed\Proj\Wio\I2C_Scanner\Release\I2C_Scanner.cpp.o" "D:\ArduinoSeeed\Proj\Wio\I2C_Scanner\Release\Wire\Wire.cpp.o" 365211\variant\variant.cpp.o" -Wl,--start-group terminal" -larm_cortexM4lf_math -mfloat-abi=hard -mfpu=fpv4-sp-d16 terminal" -lm "D:\ArduinoSeeed\Proj\Wio\I2C_Scanner\Release\/core.a" -Wl,--end-group 

  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Build errors in SAMD project (due to updates?)
Reply #4 - Jun 19th, 2021 at 4:08pm
Print Post  
Please
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build errors in SAMD project (due to updates?)
Reply #5 - Jun 19th, 2021 at 8:18pm
Print Post  
Thanks, this is the linker command that worked. We will compare them to see how the differ. At a quick glance they look the same which might suggest a virus checker or other background external task was temporarily prevent access to some of the files. Did you just see the error one time or multiple times before the issue resolved?

Code
Select All
n/arm-none-eabi-g++" rminal\Release" -Os -Wl,--gc-sections -save-temps terminal/linker_scripts/gcc/flash_with_bootloader.ld" _wio_terminal\Release/I2C_Scanner.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m4 -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -u _printf_float -u _scanf_float -Wl,--wrap,_write -u __wrap__write -o inal\Release/I2C_Scanner.ino.elf" "I2C_Scanner.cpp.o" "Wire\Wire.cpp.o" 365211\variant\variant.cpp.o" -Wl,--start-group terminal" -larm_cortexM4lf_math -mfloat-abi=hard -mfpu=fpv4-sp-d16 terminal" -lm inal\Release/core.a" -Wl,--end-group 

« Last Edit: Jun 19th, 2021 at 8:21pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Build errors in SAMD project (due to updates?)
Reply #6 - Jun 19th, 2021 at 8:43pm
Print Post  
It was at least 3 times on 
VisualStudio 2017 and 2019
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build errors in SAMD project (due to updates?)
Reply #7 - Jun 20th, 2021 at 2:00am
Print Post  
Sounds like the config was the same each time. What virus checker and anti-malware do you use? Some can lock files for a few seconds after they are created which then prevents the files from being found by the linkers.

  
Back to top
WWW  
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files
Reply #8 - Jun 20th, 2021 at 7:07am
Print Post  
Tim@Visual Micro wrote on Jun 20th, 2021 at 2:00am:
Sounds like the config was the same each time. What virus checker and anti-malware do you use? Some can lock files for a few seconds after they are created which then prevents the files from being found by the linkers.


Only Windows Defender
« Last Edit: Jun 20th, 2021 at 3:49pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files
Reply #9 - Jun 20th, 2021 at 4:08pm
Print Post  
I looked at your output and see in the first failed attempts the temp build folder had been overriden to conflict with the project folder and especially with the default intermediate folder. 

//initial attempts failed when the temp build folder was set to the same location as the project.
//
Code
Select All
Compiling 'I2C_Scanner' for 'Seeeduino Wio Terminal'
Build Folder: "file:///D:/ArduinoSeeed/Proj/Wio/I2C_Scanner/Release/" 



//later attempts worked
//
Code
Select All
Compiling 'I2C_Scanner' for 'Seeeduino Wio Terminal'
Build Folder: wio_terminal/Release" 



It seems everything is configured for Arduino portable mode but the build folder was set incorrectly. When overriding theĀ  temp build folder it should be set to a different location to the intermediate folder otherwise unpredicable results might occurr. The temp build folder should also not be located within the project folder structure.

In you last working attempt it looks like the temp build folder has been set back to default (empty)?
« Last Edit: Dec 20th, 2022 at 1:53am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files
Reply #10 - Dec 20th, 2022 at 2:53am
Print Post  
If this is still an issue please try the lastest 22.11.28.12 version or above. There has been a change to the escaping of compiler statements. Thanks

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
« Last Edit: Dec 20th, 2022 at 5:08pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint