- Posts: 521
Makefile: "access denied - ." on cp -prf... line
- RandMental
- Topic Author
- Offline
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)
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
at least we can see what is going on.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- rbe2012
- Offline
- So much to do, so little time...
- Posts: 1433
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.
- RandMental
- Topic Author
- Offline
- Posts: 521
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
- Offline
- So much to do, so little time...
- Posts: 1433
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.
- RandMental
- Topic Author
- Offline
- Posts: 521
Please Log in or Create an account to join the conversation.
- RandMental
- Topic Author
- Offline
- Posts: 521
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.
- PhracturedBlue
- Offline
- Posts: 4402
The xgettext call is as follows:
find . -name "*.[hc]" | xargs xgettext -o - --omit-header -k --keyword=_tr --keyword=_tr_noop --no-wrap
Please Log in or Create an account to join the conversation.
- RandMental
- Topic Author
- Offline
- Posts: 521
I play with it more when I have time, if I get a solution I'll update the eclipse how-to document.
Please Log in or Create an account to join the conversation.
- katrina
- Offline
- Posts: 1
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Makefile: "access denied - ." on cp -prf... line