base
base copied to clipboard
make rinstaller - find: failed to read file names or fails at/with fts_read
Building R-3.5.3 from source on WINDOWS 10 (Enterprise) based on this excellent repo of yours ...
Sticking to the recipe as good as I can.
But ... close to the finish line - of the whole process - somewhere around the "make rinstaller" part I run into this -> here are final lines of my .../BUILD/distribution.log file:
...
make --no-print-directory -C ../../../tests -f Makefile.win \
INST_TO=../src/gnuwin32/installer/R-3.5.3/tests install-tests
find R-3.5.3 -name .svn -prune -exec rm -Rf \{\} \;
find: failed to read file names from file system at or below ‘R-3.5.3’: No such file or directory
make[2]: *** [Makefile:94: imagedir] Error 1
make[1]: *** [Makefile:387: rinstaller] Error 2
make: *** [Makefile:401: distribution] Error 2
Attempted alternative approach to make rinstaller
So not to wait for another couple of hours I alternatively run make rinstaller
as a single command in powershell/prompt in $R_HOME/src/gnuwin32/
which gives me this output (again):
make[1]: Entering directory '/cygdrive/l/R-DEV_L/projects/Rsource/BUILD/R-release-win64/src/gnuwin32/installer'
...
lots of copying etc going on ... followed by
/Rtools/bin/make --no-print-directory -C ../../../tests -f Makefile.win \ INST_TO=../src/gnuwin32/installer/R-3.5.3/tests install-tests
find R-3.5.3 -name .svn -prune -exec rm -Rf \{\} \;
find: failed to read file names from file system at or below ‘R-3.5.3’: No such file or directory
make[1]: *** [Makefile:94: imagedir] Error 1
make[1]: Leaving directory '/cygdrive/l/R-DEV_L/projects/Rsource/BUILD/R-release-win64/src/gnuwin32/installer'
make: *** [Makefile:387: rinstaller] Error 2
Workaround attempt
I tried to comment [out] line 113 in the gnuwin32/Makefile b/c this was the final line before Error in the distribution.log ie I changed it to
#$(FIND) $(RPREFIX) -name .svn -prune -exec rm -Rf \{\} \;
since maybe that ".svn" FIND was the cause,
but that did not solve the issue. At least when trying to run make rinstaller
it ends with the same error - only difference being that [Makefile:## imagedir] Error 1
## number is slightly different
rm: fts_read failed: No such file or directory
make[1]: *** [Makefile:52: imagedir] Error 1
make[1]: Leaving directory '/cygdrive/l/R-DEV_L/projects/Rsource/BUILD/R-release-win64/src/gnuwin32/installer'
make: *** [Makefile:387: rinstaller] Error 2
and running the whole build.bat process I did not manage again yet (takes quite some time).
###ANY IDEAS - what the potential bug could be or whether/where I am doing something wrong? Thanks
Workaround attempt continued
This solved the FIND
problem - I commented out both lines (113 and 114):
@echo FINDING_START
#$(FIND) $(RPREFIX) -name .svn -prune -exec rm -Rf \{\} \;
#$(FIND) $(RPREFIX) -name \*~ -delete
@echo FINDING_FINISHED
So there seems to be something "fishy"with these find
lines?
PS: keep up the great work!