MonkeyX - Can only compile once

Started by Pakz, July 30, 2017, 22:35:44

Previous topic - Next topic

Pakz

I have a new laptop and I tried to make my first program with monkeyx on it. I got a error when I tried to compile for the second time.

It seems I can not write a file for the second time. I can also not run the monkey.exe that I created. I seem not to be able to find a solution online either.






"C:/MonkeyXPro86e/bin/transcc_winnt" -target=Desktop_Game_(Glfw3) -config=Debug -run "D:/monkey/empty/main.monkey"
TRANS monkey compiler V1.87
Parsing...
Semanting...
Translating...
Building...
g++  -m32  -O0 -Wno-free-nonheap-object -I../glfw3/include -I../glfw3/src -I../openal/include -I../stb -I../zlib-1.2.8 -I../lpng1610 -c -o build/Debug32/main.o ../main.cpp
g++ -m32  -Wl,--subsystem,windows -L../openal/libs/Win32 -L../openal/libs/Win64 -o Debug32/MonkeyGame build/Debug32/context.o build/Debug32/init.o build/Debug32/input.o build/Debug32/monitor.o build/Debug32/wgl_context.o build/Debug32/win32_init.o build/Debug32/win32_monitor.o build/Debug32/win32_time.o build/Debug32/win32_tls.o build/Debug32/win32_window.o build/Debug32/window.o build/Debug32/winmm_joystick.o build/Debug32/stb_vorbis.o build/Debug32/stb_image.o build/Debug32/main.o -lcomdlg32 -lgdi32 -lopengl32 -lOpenAL32 -lws2_32
D:/devtools/mingw32/bin/../lib/gcc/mingw32/5.1.0/../../../../mingw32/bin/ld.exe: cannot open output file Debug32/MonkeyGame.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Makefile:49: recipe for target 'Debug32/MonkeyGame' failed
mingw32-make: *** [Debug32/MonkeyGame] Error 1
TRANS FAILED: Error executing 'mingw32-make CCOPTS=" -m32  -O0" LDOPTS=" -m32 " OUT="Debug32/MonkeyGame"', return code=2
Done.

MikeHart

What os version does it run? Where do you have monkey and the project stored?

col

#2
The 'permission denied' is either that the compiler isn't allowed to access the folder/exe due to permissions ( unlikely in this scenario ) or that the exe is loaded and running thereby not allowing the compiler to overwrite it. I'd guess that MonkeyGame.exe is actually still running, even if it has bugged out somehow. First check the TaskManager to see if MonkeyGame.exe is in the list of running processes. If it it then right-click it and select 'End Process' then try again.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Pakz

#3
It is windows 10. Monkey is located on the c:drive. I tried putting the monkey project on different locations but the same problem. Html5 works without problems. The banana's (the ones that I checked) do work as I can compile them for the desktop multiple times without that permission report.

Monkey2 gives the same problem. It can not open a exe file the second time.

I am investigating further.


Xaron

Have you tried what Pakz wrote? I would bet that MonkeyGame.exe is still running.

Pakz

Monkeygame is not in the task...

Pakz

I tried setting the read write access rights using the properties settings of windows but it won't let me either. I have no rights to modify the properties. The rights are mostly checked but greyed out. (in the security/advanced section)

col

QuoteMonkeygame is not in the task...
If I remember correctly there are separate 'Apps' in the list of 'Processes' in the TaskManager. If your app has a window and has bugged out while the window is displayed then you'll probably see the name of the app/window in under 'Apps', if there is no window or the window has been created and destroyed but the process is still running then it should still will be listed in 'Processes'. I can't remember if there are more places to look in Win10 - other peeps will know more. You could try opening all of the treeview style dropdowns to confirm if it's hiding somewhere else or not.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

RonTek

Maybe you should try using the last version build which is v86f and use the repo for updates? I have had no problems so far with it.

Pakz

I am going to try and uninstall the mcafee virus thing. It is a one month thing. Maybe that wil solve it.


Pakz

Yes. It was The McAfee virus thing that came with the laptop that caused the problem. I uninstalled the thing and I can compile more then once per project again. Somehow it locks up the entire pc for developers :D

Bloody hell.

MikeHart

Glad you figured it out and it works again.

col

That's great that you figured it out. Those darn virus checkers eh  ???
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Pakz

The mcafee virus checker was also causing out of memory messages when I did it maidens first scan. I never had those before with windows 10. Not even on a 2gb system.

They always stick a add ridden short use virus package on a new system.

dawlane

Why do propitiatory pc manufactures always insist on pre-installing malware. The so call trial internet security suite is the first thing that gets removed, unless I actually do have a copy of that exact piece of software.