cancel
Showing results for 
Search instead for 
Did you mean: 

Compile error in Windows 11

Charles Bang
Associate II

I need a help or guide.

I have a problem with TouchGFX.

I updated Windows to Windows 11 recently.

I can't compile it after it is updated.

This is my error message.

Run Simulator

  Generate

    Done

  Generate Assets

    make -f simulator/gcc/Makefile assets -j8

    Reading ./application.config

    Done

  Post Generate

    touchgfx update_project --project-file=simulator/msvs/Application.vcxproj

    Done

  Compile

    make -f simulator/gcc/Makefile -j8

    Reading ./application.config

    Compiling gui/src/screen2_screen/Screen2View.cpp

    Compiling gui/src/screen2_screen/Screen2Presenter.cpp

    Compiling gui/src/screen1_screen/Screen1Presenter.cpp

       0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487

    AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000

    C:\TouchGFX\4.18.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

    make[2]: *** [build/MINGW32_NT-6.2/gui/src/screen2_screen/Screen2View.o] Error 1

    generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/screen2_screen/Screen2View.o' failed

    make[2]: *** Waiting for unfinished jobs....

       0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487

    AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000

    C:\TouchGFX\4.18.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

    Compiling gui/src/screen1_screen/Screen1View.cpp

       0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487

    AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000

    C:\TouchGFX\4.18.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

    generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/screen2_screen/Screen2Presenter.o' failed

    make[2]: *** [build/MINGW32_NT-6.2/gui/src/screen2_screen/Screen2Presenter.o] Error 1

    make[2]: *** [build/MINGW32_NT-6.2/gui/src/screen1_screen/Screen1Presenter.o] Error 1

    generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/screen1_screen/Screen1Presenter.o' failed

    Compiling gui/src/model/Model.cpp

       0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487

    AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000

    C:\TouchGFX\4.18.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

    generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/screen1_screen/Screen1View.o' failed

    make[2]: *** [build/MINGW32_NT-6.2/gui/src/screen1_screen/Screen1View.o] Error 1

       0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487

    AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000

    C:\TouchGFX\4.18.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

    make[2]: *** [build/MINGW32_NT-6.2/gui/src/model/Model.o] Error 1

    generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/model/Model.o' failed

    generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed

    make[1]: *** [generate_assets] Error 2

    simulator/gcc/Makefile:32: recipe for target 'all' failed

    make: *** [all] Error 2

    Failed

  Failed

5 REPLIES 5
Charles Bang
Associate II

I tried to solve this problem by myself.

But I am not familiar with this kind of program.

Please let me know more detail.

What should I do to solve this problem?

> What should I do to solve this problem?

Well, if this project is important to you, go back to WIn10 (uninstall Win11, take another Win10 machine) and be back to the business.

Win11 is new and things happen. Chinese wisdom says that change is evil; a billion of Chinese cannot be wrong.

Perhaps, try to enable win10 compatibility mode for  C:\TouchGFX\4.18.0\env\MinGW\msys\1.0\bin\mkdir.exe

0693W00000GZLd3QAH.jpgI tried in Windows 10, it is same.

I think that is not related with Windows 11.

Hmm. Could it be a buggy Cygwin mkdir.exe?

Try to play with it separately - does it fail outside of CubeIDE?

Is your computer managed by your company's IT and they recently installed or updated some "security" a-s-s-cover-ware?

Yes, I tried to mkdir in the Command window.

It works fine.

0693W00000GZPdWQAX.png