[Mono-dev] Permission denied reading a file make wrote

Konaju Games dev at konaju.com
Mon Feb 10 11:44:57 UTC 2014


I'm trying to build mono HEAD in Cygwin 32-bit on Windows 8 64-bit.  After
hand-editing MinGW's ddk/ntapi.h to remove the duplicate PEXECUTION_STATE, I
have got the following error when it appears to be trying to read a mcs.exe
that was written earlier in the make process but failing due to an obscure
"Permission denied" error.  I've tried it with both latest Mono for Windows
and with monolite.

With monolite:

#autogen finds libtool in git mono but it doesn't have a corresponding
libtoolize, so use /bin instead
$ export LIBTOOL=/bin/libtool
$ ./autogen.sh --host=i686-pc-mingw32 --prefix=/usr/mono/i686-pc-mingw32
--with-tls=__thread
$ make get-monolite-latest
$ make

...
make[2]: Entering directory '/cygdrive/d/git/mono/runtime'
if test -w D:/git/mono/mcs; then :; else chmod -R +w D:/git/mono/mcs; fi
cd D:/git/mono/mcs && make --no-print-directory -s NO_DIR_CHECK=1
PROFILES='net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12   '
CC='i686-pc-mingw32-gcc' all-profiles
make[6]: /cygdrive/d/git/mono/mcs/class/lib/monolite/gmcs.exe: Command not
found
build/profiles/basic.make:92: recipe for target
'build/deps/basic-profile-check.exe' failed
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
*** The compiler '/cygdrive/d/git/mono/mcs/class/lib/monolite/gmcs.exe'
doesn't appear to be usable.
*** Trying the 'monolite' directory.
Bootstrap compiler: Mono C# compiler version 3.2.7.0
MCS     [net_2_0] mscorlib.dll
Cannot open assembly './../../class/lib/build/mcs.exe': Permission denied.
../../build/library.make:263: recipe for target
'../../class/lib/net_2_0/tmp/mscorlib.dll' failed

With latest Mono for Windows:

$ export LIBTOOL=/bin/libtool
$ ./autogen.sh --host=i686-pc-mingw32 --prefix=/usr/mono/i686-pc-mingw32
--with-tls=__thread
$ make

...
make[2]: Entering directory '/cygdrive/d/git/mono/runtime'
if test -w D:/git/mono/mcs; then :; else chmod -R +w D:/git/mono/mcs; fi
cd D:/git/mono/mcs && make --no-print-directory -s NO_DIR_CHECK=1
PROFILES='net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12   '
CC='i686-pc-mingw32-gcc' all-profiles
Bootstrap compiler: Mono C# compiler version 3.3.0.0
MCS     [net_2_0] mscorlib.dll
Cannot open assembly './../../class/lib/build/mcs.exe': Permission denied.
../../build/library.make:263: recipe for target
'../../class/lib/net_2_0/tmp/mscorlib.dll' failed


Any ideas on how to progress past this point in make?

Steve



--
View this message in context: http://mono.1490590.n4.nabble.com/Permission-denied-reading-a-file-make-wrote-tp4661872.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list