Makefile: "access denied - ." on cp -prf... line

More
05 Apr 2013 11:18 - 05 Apr 2013 11:56 #8555 by RandMental
Hi Guys

I get the following " access denied - . " error when running the build under Eclipse. It is however not an Eclipse problem, as I get the same when running the build outside the Msys shell.

Any ideas on which path or access rights I need to set to get the cp command in the makefile to execute correctly? All else work fine and the .elf file gets build. I am running Win7 x64.

.PHONY: $(LAST_MODEL)
$(LAST_MODEL): model_template.ini tx_template.ini $(FONTS)
@echo " + Copying template files for $(FILESYSTEM)"
mkdir -p filesystem/$(FILESYSTEM) || true
cp -prf filesystem/common/media filesystem/$(FILESYSTEM)/
cp -prf filesystem/common/template filesystem/$(FILESYSTEM)/
cp tx_template.ini filesystem/$(FILESYSTEM)/tx.ini
echo 'empty' > filesystem/$(FILESYSTEM)/errors.txt



13:03:06 **** Incremental Build of configuration Default for project DevoPB-Ec ****
make
+ Copying template files for devo8
Access denied - .
File not found - -NAME

C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
Access denied - .
File not found - -NAME
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.

13:03:14 Build Finished (took 8s.888ms)

Last edit: 05 Apr 2013 11:56 by RandMental.

Please Log in or Create an account to join the conversation.

More
05 Apr 2013 12:44 #8558 by PhracturedBlue
Replied by PhracturedBlue on topic Makefile: "access denied - ." on cp -prf... line
I'll check it, but try running make with VERBOSE=1
at least we can see what is going on.

Please Log in or Create an account to join the conversation.

More
05 Apr 2013 12:57 #8560 by PhracturedBlue
Replied by PhracturedBlue on topic Makefile: "access denied - ." on cp -prf... line
I verified that everything is ok on my end when compiling in Windows. So we'll have to see what exactly it is complaining about.

Please Log in or Create an account to join the conversation.

  • rbe2012
  • rbe2012's Avatar
  • Offline
  • So much to do, so little time...
More
05 Apr 2013 13:11 #8562 by rbe2012
I have seen similar errors a time ago when my eclipse environment (Windows XP) was not fully configured (was a question of the correct PATH variable). I do not really remember what did the trick, but I think I have tried to write the absolute path in "util/extract_strings.pl" line 25 before find ("/bin/find"?) and line 70 before "head".
I can not look on my notebook now to see the path I use actually.

Please Log in or Create an account to join the conversation.

More
05 Apr 2013 13:34 #8563 by RandMental
Replied by RandMental on topic Makefile: "access denied - ." on cp -prf... line

PhracturedBlue wrote: I'll check it, but try running make with VERBOSE=1
at least we can see what is going on.


Hi PB, I did use VERBOSE, it then only lists the full statement before the error:

mkdir -p filesystem/$(FILESYSTEM) || true
cp -prf filesystem/common/media filesystem/$(FILESYSTEM)/
cp -prf filesystem/common/template filesystem/$(FILESYSTEM)/
cp tx_template.ini filesystem/$(FILESYSTEM)/tx.ini
echo 'empty' > filesystem/$(FILESYSTEM)/errors.txt
...
and then the Access denied error

By breaking this long command into smaller one line pieces and adding echo statements in between, I could confirmed the error is given after the first cp -prf..... line.

In trying to solve the access error, I have now broke something else and get errors under MSys as well. Let me first get building under Msys up and running again before you waste further time on this.

Please Log in or Create an account to join the conversation.

  • rbe2012
  • rbe2012's Avatar
  • Offline
  • So much to do, so little time...
More
05 Apr 2013 14:18 #8564 by rbe2012
RandMental,
as said above my problem was similar. I could break it down to the path variable where something weird was taken before the msys-directories were searched (I believe it was python but not sure). So any other command was taken (maybe cp?) and this implementation did not understand / interprete the same options as the wanted one or did something unexpected - I don't remember.
But maybe controlling and perhaps correcting the path in your environment can help.

Please Log in or Create an account to join the conversation.

More
05 Apr 2013 21:15 #8599 by RandMental
Replied by RandMental on topic Makefile: "access denied - ." on cp -prf... line
Thanks Rbe, I have noticed the order of the paths is critical, swapping them around created many other errors. I also suspect a wrong command gets picked up from the wrong directory.

Please Log in or Create an account to join the conversation.

More
09 Apr 2013 15:37 #8792 by RandMental
Replied by RandMental on topic Makefile: "access denied - ." on cp -prf... line
I can again compile and build under MinGW, this is Verbose under Eclipse:

17:33:38 **** Incremental Build of configuration Default for project DevoPB ****
make TARGET=devo8 VERBOSE=1
+ Copying template files for devo8
mkdir -p filesystem/devo8 || true
cp -prf filesystem/common/media filesystem/devo8/
cp -prf filesystem/common/template filesystem/devo8/
cp tx_template.ini filesystem/devo8/tx.ini
echo 'empty' > filesystem/devo8/errors.txt
mkdir filesystem/devo8/models 2> /dev/null || true
echo 'name=Model1' > filesystem/devo8/models/model1.ini \
&& cat model_template.ini >> filesystem/devo8/models/model1.ini
cp model_template.ini filesystem/devo8/models/default.ini
mkdir filesystem/devo8/language 2> /dev/null; \
../utils/extract_strings.pl -target devo8 -update
Access denied - .
File not found - -NAME
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
export tx=devo8; \
number=2 ; while [ $number -le 30 ] ; do \
cp model_template.ini filesystem/$tx/models/model$number.ini; \
number=`expr $number + 1`; \
done
+ Checking string list length for devo8
../utils/check_string_size.pl -target devo8 -quiet
Access denied - .
File not found - -NAME
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
true

17:33:50 Build Finished (took 11s.809ms)

Please Log in or Create an account to join the conversation.

More
09 Apr 2013 17:59 #8799 by PhracturedBlue
Replied by PhracturedBlue on topic Makefile: "access denied - ." on cp -prf... line
It looks like eclipse isn't running the perl scripts properly. Maybe it is specific to the xgettext call.

The xgettext call is as follows:
find . -name "*.[hc]" | xargs xgettext -o - --omit-header -k --keyword=_tr --keyword=_tr_noop --no-wrap
the lone '-' there says 'redirect to stdout' but perhaps it is being misinterpreted since the error messages seem to imply looking for a file called '-'. I really don't know enough about running eclipse on windows with mingw to be of help though

Please Log in or Create an account to join the conversation.

More
09 Apr 2013 18:48 - 09 Apr 2013 18:49 #8800 by RandMental
Replied by RandMental on topic Makefile: "access denied - ." on cp -prf... line
Hi PB, thanks for having a look. Interesting is that it use to work for a while. I don't know what changed on my setup and as RBE also said, he got it to work after having similar issues. It is not critical though - I run two local repositories, one to build under MinGW and one under eclipse to explore the source code.

I play with it more when I have time, if I get a solution I'll update the eclipse how-to document.
Last edit: 09 Apr 2013 18:49 by RandMental.

Please Log in or Create an account to join the conversation.

More
27 Jan 2015 16:37 #28107 by katrina
Probably the path path is long that's why you are getting access denied error, download Long Path Tool it helps in this situation.

Please Log in or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum