BUG: Problem compiling from some folders

1 reply to this topic
Posted 10 months ago #1
ziggy

I was playing with Monkey 2, preparing the compiler toolchain integration for Jungle Ide, and found a very weird bug:

Steps to replicate:
1.- Download Monkey 2 source code in (FOLDER A)
2.- Copy it to another folder in your system (FOLDER B), and install in that folder all related dev tools (MinGW), set the path variable etc, so you'll be using the Monkey 2 compiler and toolchain located in FOLDER B.

Now:
* If you compile one banana located in FOLDER B\Bananas, it compiles and runs fine
* If you compile the same banana from a random folder in your system, it will compile and run fine too.
* If you compile the same banana from FOLDER A\Bananas, it'll fail to compile.

This is the compiler output generated by the compilation that fails:

C:\Users\Manel\Documents\Jungle Ide Framework\Monkey2\bin\mx2cc_windows.exe makeapp -run -target=Desktop -config=debug "C:\Users\Manel\Documents\projects\Jungle Ide\monkide\JungleIDE\bin\Debug\monkey2\bananas\commanche\commanche.monkey2"
MX2CC V0.010

***** Building app 'C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.monkey2' *****

Parsing...
Semanting...
Translating...
Compiling....
Build error: System command 'g++ -std=c++11 -m32 -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/freetype/freetype-2.6.3/include/" -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/sdl2-mixer/SDL_mixer/" -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/gles20/angle/include/" -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/sdl2/SDL/include/" -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/monkey/native" -c -o "C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_0commanche.cpp.o" "C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_commanche.cpp"' failed.

g++ -std=c++11 -m32 -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/freetype/freetype-2.6.3/include/" -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/sdl2-mixer/SDL_mixer/" -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/gles20/angle/include/" -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/sdl2/SDL/include/" -I"C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/modules/monkey/native" -c -o "C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_0commanche.cpp.o" "C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_commanche.cpp"

In file included from C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_commanche.cpp:2:0:

C:/Users/Manel/Documents/projects/Jungle Ide/monkide/JungleIDE/bin/Debug/monkey2/bananas/commanche/commanche.buildv010/build_cache/desktop_debug_windows/commanche_commanche.h:9:145: fatal error: ../../../../../../../../../../../../Jungle Ide Framework/Monkey2/modules/mojo/mojo.buildv010/desktop_debug_windows/mojo_app_2window.h: No such file or directory

compilation terminated.



***** Fatal mx2cc error *****

Build error.
Abnormal program termination.
 Exit code: -1

The same banana in the original bananas folder, where it compiles fine:

C:\Users\Manel\Documents\Jungle Ide Framework\Monkey2\bin\mx2cc_windows.exe makeapp -run -target=Desktop -config=debug "C:\Users\Manel\Documents\Jungle Ide Framework\Monkey2\bananas\commanche\commanche.monkey2"
MX2CC V0.010

***** Building app 'C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/bananas/commanche/commanche.monkey2' *****

Parsing...
Semanting...
Translating...
Compiling....
Linking C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/bananas/commanche/commanche.buildv010/desktop_debug_windows/commanche.exe
Running C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/bananas/commanche/commanche.buildv010/desktop_debug_windows/commanche.exe
W->W
A->A
S->S
D->D
Process ended with return code 0 at 6/24/2016 3:42:16 PM
C:\Users\Manel\Documents\Jungle Ide Framework\Monkey2\bin\mx2cc_windows.exe makeapp -run -target=Desktop -config=release "C:\Users\Manel\Documents\Jungle Ide Framework\Monkey2\bananas\commanche\commanche.monkey2"
MX2CC V0.010

***** Building app 'C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/bananas/commanche/commanche.monkey2' *****

Parsing...
Semanting...
Translating...
Compiling....
Linking C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/bananas/commanche/commanche.buildv010/desktop_release_windows/commanche.exe
Running C:/Users/Manel/Documents/Jungle Ide Framework/Monkey2/bananas/commanche/commanche.buildv010/desktop_release_windows/commanche.exe
W->W
A->A
S->S
D->D
Process ended with return code 0 at 6/24/2016 3:43:21 PM
 
Posted 10 months ago Edit #2
Nobody

Hey Ziggy any plans for Jungle to support MX2?