3. STL - WebKit porting to Mona OS
Since WebKit/Source/JavaScriptCore/wtf/qt/MainThreadQt.cpp is small, I will visit it later.
Commented out the following files on Makefile.
- Source/JavaScriptCore/wtf/qt/MainThreadQt.cpp
- Source/JavaScriptCore/wtf/qt/StringQt.cpp
- Source/JavaScriptCore/wtf/qt/ThreadingQt.cpp
The next errors were.
../../../Source/JavaScriptCore/wtf/OSAllocatorPosix.cpp:98: error: ‘MAP_FAILED’ was not declared in this scope ../../../Source/JavaScriptCore/wtf/OSAllocatorPosix.cpp:111: error: ‘PROT_NONE’ was not declared in this scope ../../../Source/JavaScriptCore/wtf/OSAllocatorPosix.cpp:111: error: ‘MAP_FIXED’ was not declared in this scope ../../../Source/JavaScriptCore/wtf/OSAllocatorPosix.cpp: In static member function ‘static void WTF::OSAllocator::releaseDecommitted(void*, size_t)’:
Since we don't have posix mmap, ignored the file. Of course we have alternative memory map API, so I will visit it later too.
Oops, I forgot to add some compiler options.
Added following.
-nostdinc -UWIN32 -U_WIN32 -fno-threadsafe-statics -fno-exceptions -fno-rtti -fno-strict-aliasing -I ~/mona/include/ -I ~/mona/include/monalibc -f win32 -DMONA||<
The next error is.
../../../Source/JavaScriptCore/wtf/text/StringImpl.h:193: error: 'numeric_limits' is not a member of '_STL'
Our STL(stlport) is too old. We have to upgrade it
The latest STL port is 5.2.1.
After a great struggle, Mona was build with the latest STL port, but failed on bootstrap.
I have seen the same problem before, the size of boot processes matters. We should fix this problem first.