Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
"cannot open source input file" due to cygdrive?
Jump...
Cancel
Locked
Locked
Replies
4 replies
Subscribers
118 subscribers
Views
4844 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
"cannot open source input file" due to cygdrive?
andredz
over 12 years ago
Note: This was originally posted on 26th October 2010 at
http://forums.arm.com
Environment: Windows/Cygwin
Compiler: armcc RVCT4.0 BUild 771
gnumake doesn't like Windows Path in the target dependency. So I have to convert it to cygdrive format.
I'm using vpath to search for source files.
When compiling, I got the following error:
"no source": Error: #5: cannot open source input file "/cygdrive/v/my_proj/source/my_code.c": No such file or directory
Questions:
Is it because of cygdrive? Can armcc see file in cygdrive folder? Because I'm pretty sure that the file exists in the directory.
Thank you
-Andreas
andredz
over 12 years ago
Note: This was originally posted on 26th October 2010 at
http://forums.arm.com
It seems the we need to set the environment variable CYGPATH
for example:
set CYGPATH=C:\Cygwin\bin\cygpath.exe
Cancel
Vote up
0
Vote down
Cancel
andredz
over 12 years ago
Note: This was originally posted on 26th October 2010 at
http://forums.arm.com
With CYGPATH it only solved armcc. Not armasm
Though armasm can find the file, but not the header files.
For example:
armasm -I/cygdrive/c/include /cygdrive/c/source/my_file.s -o /obj
armasm can't seem to see the drive /cygdrive/c/include to search the header
but the following is OK
armasm -I../include
or
armasm -IC:/include
or
armasm -IC:\include
Any idea how to go around this?
Thank you,
-a
Cancel
Vote up
0
Vote down
Cancel
Abhinav Varma
over 12 years ago
Cancel
Vote up
0
Vote down
Cancel
andredz
over 12 years ago
Note: This was originally posted on 28th October 2010 at
http://forums.arm.com
Thank you for the suggestion.
It still doesn't work even after setting the path to /cygdrive/c/apps/RVCT40/...
Thanks,
-a
Cancel
Vote up
0
Vote down
Cancel