Hi All,
I am working on TDP development for XMC-4700, while preprocessing the files i am getting the below issue:
"no source": Error: command-line: #564: cannot open preprocessing output output file ".\Objects\*.d": No such file or directory
Below is the log for TDP build:
C:\Program Files (x86)\Rational\TestRealTime\bin\intel\win32\utags -sspgtags ..\Scripts\QualTest.ptu Preprocessing PTU test script file... C:\PROGRA~2\Rational\TESTRE~1\bin\intel\win32\attolpreproC "C:\RTRT\INPUTS\XMC\Sample scripts\Scripts\QualTest.ptu" "cwinkeilxmc4700\TQual_non_instrumented.c" -studio_log="C:\RTRT\INPUTS\XMC\Sample scripts\Working Folder\intermediates_files434474679.log" -STD_DEFINE="C:\PROGRA~2\Rational\TESTRE~1\targets\CWINKE~1\ana\atus_c.def" -RENAME=stubs_rename.opt -incl="C:\Keil_v5\ARM\ARMCC\include","cwinkeilxmc4700" -family=nominal -service=single_if_test_2 -NOSIMULATION -FAST TestRT-I-STARTEXEC, IBM(R) Rational(R) Test RealTime C Test Script Compiler 7.0.5.0.296.001 TestRT-I-COPYRIGHT, (C) Copyright IBM Corp. 1992-2007 All Rights Reserved. All rights reserved. cwinkeilxmc4700\TQual_non_instrumented.c: Preprocessing... C:\Keil_v5\ARM\ARMCC\bin\armcc.exe -E --c99 -c --cpu Cortex-M4.fp -g -O0 --apcs=interwork --split_sections -I ./RTE/_TestRT_execution -I C:/Keil_v5/ARM/PACK/Infineon/XMC4000_DFP/2.7.1/Device/XMC4700_series/Include -I C:/Keil_v5/ARM/CMSIS/Include -I C:/Keil_v5/ARM/ARMCC/Bin -D__UVISION_VERSION="524" -DXMC4700_F144x2048 -o .\Objects\*.o --omf_browse .\Objects\*.crf --depend .\Objects\*.d -I C:\PROGRA~2\Rational\TESTRE~1\targets\CWINKE~1\lib "-IC:\Keil_v5\ARM\ARMCC\include" "-Icwinkeilxmc4700" "cwinkeilxmc4700\TQual_non_instrumented.c" -o "cwinkeilxmc4700\TQual_non_instrumented_aug.i" C:\PROGRA~2\Rational\TESTRE~1\bin\intel\win32\attolcc1 "cwinkeilxmc4700\TQual_non_instrumented_aug.i" "cwinkeilxmc4700\TQual_non_instrumented_aug.c" atct.def -exfile="cwinkeilxmc4700\TQual_non_instrumented.c" -noinstrdir="C:\PROGRA~2\Rational\TESTRE~1\targets\CWINKE~1" @stubs_rename.opt -proc=ret -block=logical -trace -mempro -perfpro -studio_log="C:\RTRT\INPUTS\XMC\Sample scripts\Working Folder\intermediates_files434474679.log" TestRT-W-ELMT_VIDE, [C:\RTRT\INPUTS\XMC\Sample scripts\Scripts\QualTest.ptu:401] ELEMENT block without any variables to edit TestRT-W-TEST_VIDE, [C:\RTRT\INPUTS\XMC\Sample scripts\Scripts\QualTest.ptu:403] No variables in the test 1 TestRT-W-NOMOPEDBL, [C:\RTRT\INPUTS\XMC\Sample scripts\Scripts\QualTest.ptu:411] switch_case_test_1 service used more than once in the program TestRT-I-ENDNOEWAR, End of execution with 3 warning(s) "no source": Error: command-line: #564: cannot open preprocessing output output file ".\Objects\*.d": No such file or directory cwinkeilxmc4700\TQual_non_instrumented.c: 0 warnings, 1 error --- cwinkeilxmc4700\TQual_non_instrumented_aug.c: Compiling... C:\Keil_v5\ARM\ARMCC\bin\armcc.exe --c99 -c --cpu Cortex-M4.fp -g -O0 --apcs=interwork --split_sections -I ./RTE/_TestRT_execution -I C:/Keil_v5/ARM/PACK/Infineon/XMC4000_DFP/2.7.1/Device/XMC4700_series/Include -I C:/Keil_v5/ARM/CMSIS/Include -I C:/Keil_v5/ARM/ARMCC/Bin -D__UVISION_VERSION="524" -DXMC4700_F144x2048 -o .\Objects\*.o --omf_browse .\Objects\*.crf --depend .\Objects\*.d "-IC:\Keil_v5\ARM\ARMCC\include" "-Icwinkeilxmc4700" "cwinkeilxmc4700\TQual_non_instrumented_aug.c" -o "cwinkeilxmc4700\TQual_non_instrumented.o" TestRT attolcc1 - INFO: No branches of requested coverage types can be found in file TQUAL_NON_INSTRUMENTED_AUG.I; no FDC generated TestRT attolcc1 - INFO: No observable routine can be found in file TQUAL_NON_INSTRUMENTED_AUG.I; no TSF generated "no source": Error: command-line: #564: cannot open preprocessing output output file ".\Objects\*.d": No such file or directory cwinkeilxmc4700\TQual_non_instrumented_aug.c: 0 warnings, 1 error status 1 --- Failed.
So does that directory exist?
If the directory exists, does it have the *.d files in it?
If they all exist, does your account have the necessary access rights?
Hi,
The directory does not exist. I have the permission for the Directory where the object folder and files to be generated. But still i am not able to find those folder or files.
You don't want anything in "Program Files" being written, either Windows or AV software will object to this. Make sure your TEMP directory is usable also.
I have cleared the Temp directory and checked, still i am facing the same issue.
So what about the use of 'Program Files' ?
In 'Program Files' the IBM RTRT is installed and Preprocessing is using the files inside 'Program Files' RTRT installation directory.
It is not writing any files into 'Program Files'.
Which is exactly what Westonsupermare Pier said to you in his post!
Hi Spam Doctor,
The reply was for your question, "So what about the use of 'Program Files' ?". I understood what Westonsupermare Pier suggested and i tried by cleaning Temp directory.
But still facing the same issue? Could you please suggest some resolution...
Did you?
He said:
"You don't want anything in 'Program Files' being written, either Windows or AV software will object to this"
So what have you done to stop things trying to write into 'Program Files' ?
I have not done anything to stop writing into 'Program Files'. As the writing of objects files and the other file generation is happening in other directory not in 'Program Files'.
--depend .\Objects\*.d
I'm quite sure that this flag is just flat-out wrong. It requests the compiler to actually put the dependencies into a file named "*.d". That is neither advisable, nor is it allowed to a name file like that, on Windows.
For what this most likely is intended to do, the correct option would rather be
--depend-dir .\Objects
I guess that would also apply to:
-o .\Objects\*.o --omf_browse .\Objects\*.crf
and perhaps find a more descriptive name for the folder - as it's not just "Objects" ... ?