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] 2  Send TopicPrint
Hot Topic (More than 8 Replies) Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC) (Read 4712 times)
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Dec 19th, 2022 at 2:39pm
Print Post  
I have the same problem. Compilation in Arduino IDE without any problems. AS7 with vMicro. switching "Always Copy Build Output to Intermediate" without changes

Code
Select All
Compiling 'XMC_test' for 'XMC1400 Kit for Arduino                                                                                                    (Infineon_XMC1400_Arduino_Kit)'
Build Folder: _Arduino_Kit/Release"
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines:
Architecture Tools: one-eabi-gcc/10.3-2021.10/bin/"
Api: 2.2022.1128-9
Sketch Book: "file://mac/Home/Documents/Arduino"
Core Include Paths
Include Path c/2.1.0/cores/"
Include Path c/2.1.0/variants/XMC1400"

Building variant ...
-gcc\10.3-2021.10/bin/arm-none-eabi-gcc" -mcpu=cortex-m0 -mthumb -c -g -x assembler-with-cpp -DXMC1402_T038x0200 -DXMC1400_Arduino_Kit -DF_CPU=48000000L -DARDUINO=1402 -DARDUINO_ARM_XMC -DARDUINO_ARCH_XMC -w -DARM_MATH_CM0 -DXMC1_SERIES -DSERIAL_HOSTPC 0/cores/xmc_lib/XMCLib/inc" 0/cores/xmc_lib/CMSIS/DSP/Include" 0/cores/xmc_lib/CMSIS/NN/Include" 0/cores/xmc_lib/CMSIS/Include" 0/cores/xmc_lib/LIBS" 0\variants\XMC1400" 0/variants/XMC1400/config/XMC1400_Arduino_Kit" 0\cores\/avr" 0/cores/usblib" 0/cores/usblib/Common" 0/cores/usblib/Class" 0/cores/usblib/Class/Common" 0/cores/usblib/Class/Device" 0/cores/usblib/Core" 0/cores/usblib/Core/XMC4000" 0\cores\" 0\variants\XMC1400" variants\XMC1400\startup_XMC1400.S" -o _Kit\Release\core\..\variant\startup_XMC1400.S.o" 
-gcc\10.3-2021.10/bin/arm-none-eabi-gcc" -mcpu=cortex-m0 -mthumb -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DXMC1402_T038x0200 -DXMC1400_Arduino_Kit -DF_CPU=48000000L -DARDUINO=1402 -DARDUINO_ARM_XMC -DARDUINO_ARCH_XMC -DARM_MATH_CM0 -DXMC1_SERIES -DSERIAL_HOSTPC 0/cores/xmc_lib/XMCLib/inc" 0/cores/xmc_lib/CMSIS/DSP/Include" 0/cores/xmc_lib/CMSIS/NN/Include" 0/cores/xmc_lib/CMSIS/Include" 0/cores/xmc_lib/LIBS" 0\variants\XMC1400" 0/variants/XMC1400/config/XMC1400_Arduino_Kit" 0\cores\/avr" 0/cores/usblib" 0/cores/usblib/Common" 0/cores/usblib/Class" 0/cores/usblib/Class/Common" 0/cores/usblib/Class/Device" 0/cores/usblib/Core" 0/cores/usblib/Core/XMC4000" 0\cores\" 0\variants\XMC1400" variants\XMC1400\system_XMC1400.c" -o _Kit\Release\core\..\variant\system_XMC1400.c.o"
Error compiling variant
Build failed for project 'XMC_test'


arm-none-eabi-gcc*: fatal error: no input files
arm-none-eabi-gcc*: fatal error: no input files
   compilation terminated
   compilation terminated 

« Last Edit: Dec 20th, 2022 at 2:43am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files
Reply #1 - Dec 19th, 2022 at 3:00pm
Print Post  
Please provide the information request in yellow above.

The copy files to intermediate should not be relevant. That happens after the build has completed.

  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files
Reply #2 - Dec 19th, 2022 at 4:52pm
Print Post  
Compilation data attached
« Last Edit: Dec 19th, 2022 at 4:54pm by Dave_K »  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files
Reply #3 - Dec 19th, 2022 at 11:22pm
Print Post  
Thanks, we have reproduced and are looking into this. The commands for that toolchain need all file path to use \\ instead of single \. All toolchains should be able to handle \\ therefore a global change will fix. 

Not sure why this particular toolchain is adament about this when all others are not but I suspect we should be using \\ in paths.

We will update this thread when resolved.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files
Reply #4 - Dec 20th, 2022 at 1:57am
Print Post  
This should be resolved in the latest .11 release. Visual Micro should have been escaping the entire build command but it previously only escpaed quoted strings.

This toolchain appears to be the first to need this change however I think going forward it is important.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
« Last Edit: Dec 20th, 2022 at 2:48am by Tim@Visual Micro »  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #5 - Dec 20th, 2022 at 9:19am
Print Post  
Wow now compilation works well! But there's next problem, look like too much "\\" uploading dosen't work, cant found file? The same command started from CMD works well. Arduino IDE starts upload in similar way, except double \ in path and using "long names".

Code
Select All
Arduino IDE
java -jar .1/XMCFlasher.jar -p C:\Users\username~1\AppData\Local\Temp\arduino_build_919596/XMC_test.ino.hex -device XMC4200-256

vMicro
java -jar LA~1\\120584~1.1/XMCFLA~1.JAR -p se/XMC_TE~1.HEX -device "XMC4200-256"
The specified file could not be found 

« Last Edit: Dec 20th, 2022 at 9:26am by Dave_K »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #6 - Dec 20th, 2022 at 5:14pm
Print Post  
That's a userful toolchain. It objects to short paths and we only switch to them automatically for certain very old cores. 

The tool chain you are using can't handle short paths but that's okay because it does correctly specify quotes around file paths.

There is a new 22.11.28.12 release in this forum. We have updated our 8dot3 logic so that it must now  be forced on for the older toolchains (upload.8dot3=true). 

This is the right solution, it no longer makes sense to force 8dot3 files names.

Thanks for the posts
« Last Edit: Dec 20th, 2022 at 5:15pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #7 - Dec 20th, 2022 at 9:11pm
Print Post  
Unfortunately no change, log attached.
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #8 - Dec 20th, 2022 at 9:48pm
Print Post  
Please open a command prompt and run this command and confirm it works without error

Code
Select All
java -jar 2.1/XMCFlasher.jar" -p m2GO\Release/XMC_test.ino.hex" -device "XMC4200-256"

pause
 



  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #9 - Dec 20th, 2022 at 10:36pm
Print Post  
Works without error, path to java are in PATH system variables.

Code
Select All
C:\Users\username>java -jar lasher\\1.2.1/XMCFlasher.jar" -p _Platform2GO\\Release/XMC_test.ino.hex" -device "XMC4200-256"
--------------------------
Infineon XMC Flasher Lite
Copyright Infineon Technologies 2017
--------------------------
Windows 10
Operating System: Windows 10

Initialisation
--------------------------
Windows 10
Loading JLink Library...
JLink Library Version: V7.82d

Configuring Device
Device Name : XMC4200-256
Interface   : SWD
Speed       : 4000
File Upload
--------------------------
Uploading Platform2GO\\Release/XMC_test.ino.hex
... Done
--------------------------
... Finished Succesfully 




and 2nd version, can't find file
Code
Select All
C:\Users\username>java -jar 2.1/XMCFlasher.jar" -p m2GO\Release/XMC_test.ino.hex" -device "XMC4200-256"
--------------------------
Infineon XMC Flasher Lite
Copyright Infineon Technologies 2017
--------------------------
Windows 10
Operating System: Windows 10

Initialisation
--------------------------
Windows 10
Loading JLink Library...
JLink Library Version: V7.82d

Configuring Device
Device Name : XMC4200-256
Interface   : SWD
Speed       : 4000
File Upload
--------------------------
Uploading 2GO\Release/XMC_test.ino.hex
Specified file could not be opened.
... Done
--------------------------
... Finished Succesfully 

« Last Edit: Dec 20th, 2022 at 10:43pm by Dave_K »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #10 - Dec 21st, 2022 at 12:23am
Print Post  
Hmm, yes we have java installed and it finds it okay. We don't get the issue.

For Visual Micro, this makes the verbose upload output (file>preferences) in the Arduino IDE look the same.

HOWEVER, you cmd test you made seemed to indicate that the uload only works for you if \\ double back slashes are used?

So I am starting to wonder if the upload is happening correctly but the other options you have enabled to export the compiled binary or copy to intermediate are showing an error because a binary is not created by this tool chain.

Can you please switch off Compiler > "Export Binary" and "Copy to Intermediate". There are some errors relating to the export earlier in the output. So it would be cleaner to switch them off, some boards dont support the feature.

Please switch them off and let us see another output thanks

If possible please also email the name that you have blanked out in the output or something very similar. 

Also, please show what you have in this file \\mac\Home\Documents\Arduino\XMC_test\board.txt

Are you running on windows pc or mac/arm?

Thanks



« Last Edit: Dec 21st, 2022 at 12:36am by Tim@Visual Micro »  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #11 - Dec 21st, 2022 at 12:06pm
Print Post  
Ok, lets summarize.
In fact both versions works well, but there's my fault. To keep privacy I changed account name in path. So the second version also works, but I dosen't changed account name from "username" to proper name. Sorry  

Maybe this is problem with "java" interpreter, exactly with PATH variable?. If I change filename java.exe in arduino directory, vMicro still gives the same error. But from CMD gives error " java is not recognized as an internal or external command, operable program or batch file" So vMicro can't find java interpreter, even if avaiable in PATH variable, and from CMD


Code
Select All
This works from CMD
java -jar 2.1/XMCFlasher.jar" -p m2GO\Release/XMC_test.ino.hex" -device "XMC4200-256"

This is also works
java -jar lasher\\1.2.1/XMCFlasher.jar" -p _Platform2GO\\Release/XMC_test.ino.hex" -device "XMC4200-256" 




Content of \\mac\Home\Documents\Arduino\XMC_test\board.txt
Code
Select All
# XMC_test build property overrides
#

# Ensure short paths are not generated for uploads
upload.8dot3=false
upload.buildpath.8dot3=false
 

  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #12 - Dec 21st, 2022 at 12:33pm
Print Post  
Thanks for the update.

There are potentially multiple points this can be failing at, and to allow us to replicate the issues fully, could you send us your username (in a PM or an email with a link to this thread)?

Could you also confirm which Language you have set for Non-Unicode Programs (in Windows Settings > Time & Language > Language > Administrative language settings > Administrative Tab)?
  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #13 - Dec 21st, 2022 at 3:28pm
Print Post  
PM sent
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #14 - Dec 21st, 2022 at 6:57pm
Print Post  
Thanks for the addiitonal information.

Can you confirm your Arduino IDE is installed in "C:\Program Files (x86)\Arduino"?

Can you also enable the Arduino IDE > Preferences > Show Verbose Output > Build AND Upload, and perform the build and upload and attach the output from the Arduino IDE?
  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #15 - Dec 21st, 2022 at 7:26pm
Print Post  
Arduino LOG
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #16 - Dec 21st, 2022 at 8:01pm
Print Post  
Brilliant, thankyou for the logs and bearing with us on this.

We believe we have identified the last issue involved in the uploading problem, and we will release a fixed version in the next day or so, and update this thread when it is available.
  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #17 - Dec 23rd, 2022 at 8:25pm
Print Post  
Ok, I'm looking forward
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #18 - Dec 23rd, 2022 at 10:16pm
Print Post  
Sorry we forgot to update this thread to say the fix has been released. In Vs2022 you can update via Extensions>Extension Manager > Updates.

Its a point of note for people who want to run the Infineon XMC tools alongside Arduino 2.0. You are not currently doing that but some info worth keeping in mind for later...

The issue related to running the auto discovered java that is installed with the arduino ide 1x. We had been testing with arduino 2 that requires java to be installed independantly. In that case it worked fine for us. However the older 1x we needed to run "cmd /c java"

Arduino 2.0 users of Infineon XMC will see a different error when using Visual Micro without Arduino 1x.  The error means that you must install java so that it can be found on the windows PATH environment variable. That is what this tool chain expects.

Thanks for the post

release notes
  
Back to top
IP Logged
 
Dave_K
Junior Member
**
Offline


Posts: 24
Joined: Dec 14th, 2017
Re: Compile error: arm-none-eabi-g++*: fatal error: no input files (Infineon XMC)
Reply #19 - Dec 24th, 2022 at 10:13am
Print Post  
Unfortunatly my updates in AS7 dosen't work, https://api.gallery.microchip.com/GalleryService.svc not reachable. On Microchip gallery extenions the newest version is from 2021? https://gallery.microchip.com/packages/324cac6d-ff67-4e2e-8fc9-7a587b2d6045/
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint