[Vm-dev] CMake StackInterpreter Headless build

Guillermo Polito guillermopolito at gmail.com
Tue Sep 3 07:50:58 UTC 2019


Hi Ben,

Can you check this

https://github.com/pharo-project/opensmalltalk-vm/pull/16 <https://github.com/pharo-project/opensmalltalk-vm/pull/16>

?

the idea is that at configuration time you say what flavour of vm you want 

cmake -DFLAVOUR=StackVM .

and by default we build a cog vm

> El 30 ago 2019, a las 13:25, Ben Coman <btc at openinworld.com> escribió:
> 
> How can I build the StackInterpreter with the Pharo Headless build?
> 
> I tried...  -DCOG_JIT:BOOL="False"  
> but get the message... [CMake] CMake Warning: Manually-specified variables were not used by the project:  COG_JIT  
> 
> The following with the new binary doesn't distinguish it for me...
> $ build/vm/pharo --version my.image
> Pharo 8.1.0 built on Aug 30 2019 18:06:20 Compiler: 7.4.0
> Built from: acaeef692 - Commit: acaeef692 - Date: 2019-08-28 22:49:49 +0800
> 
> Is there anyway to check that a particular binary is a StackInterpreter?
> Can this be added to "--version" ?
> 
> 
> Here is the full log...
> Found cmake executable at /usr/bin/cmake.
> 1> /usr/bin/cmake -G "Unix Makefiles"  -DCMAKE_BUILD_TYPE="Debug" -DCOG_JIT:BOOL="False"  -DCMAKE_INSTALL_PREFIX="/mnt/c/Users/Ben/Source/Repos/opensmalltalk-vm/out/install/WSL-Debug" "/mnt/c/Users/Ben/Source/Repos/opensmalltalk-vm/CMakeLists.txt";
> 1> [CMake] -- acaeef692 - Commit: acaeef692 - Date: 2019-08-28 22:49:49 +0800
> 1> [CMake] -- int 4
> 1> [CMake] -- long 8
> 1> [CMake] -- long long 8
> 1> [CMake] -- void* 8
> 1> [CMake] -- C Compiler: /usr/bin/cc
> 1> [CMake] -- C++ Compiler: /usr/bin/c++
> 1> [CMake] -- Resource Compiler: 
> 1> [CMake] -- Adding plugin: SecurityPlugin
> 1> [CMake] -- Adding plugin: FilePlugin
> 1> [CMake] -- Adding plugin: FileAttributesPlugin
> 1> [CMake] -- Adding plugin: UUIDPlugin
> 1> [CMake] -- Adding plugin: SocketPlugin
> 1> [CMake] -- Adding plugin: SurfacePlugin
> 1> [CMake] -- Adding plugin: LargeIntegers
> 1> [CMake] -- Adding plugin: JPEGReaderPlugin
> 1> [CMake] -- Adding plugin: JPEGReadWriter2Plugin
> 1> [CMake] -- Adding plugin: MiscPrimitivePlugin
> 1> [CMake] -- Adding plugin: B2DPlugin
> 1> [CMake] -- Adding plugin: LocalePlugin
> 1> [CMake] -- Adding plugin: SqueakSSL
> 1> [CMake] -- Adding plugin: DSAPrims
> 1> [CMake] -- Adding plugin: UnixOSProcessPlugin
> 1> [CMake] Adding third-party libraries for linux: pthreadedPlugin-0.0.1
> 1> [CMake] Adding third-party libraries for linux: libffi-3.3-rc0
> 1> [CMake] Adding third-party libraries for linux: libgit2-0.25.1
> 1> [CMake] Adding third-party libraries for linux: libssh2-1.7.0
> 1> [CMake] Adding third-party libraries for linux: openssl-1.0.2q
> 1> [CMake] Adding third-party libraries for linux: SDL2-2.0.7
> 1> [CMake] -- Configuring done
> 1> [CMake] -- Generating done
> 1> [CMake] CMake Warning:
> 1> [CMake]   Manually-specified variables were not used by the project:
> 1> [CMake]     COG_JIT
> 1> [CMake] -- Build files have been written to: /mnt/c/Users/Ben/Source/Repos/opensmalltalk-vm/out/build/WSL-Debug
> 1> Starting CMake target info extraction ...
> 1> CMake server connection made.
> 1> Extracted includes paths.
> 1> Extracted CMake variables.
> 1> Extracted source files and headers.
> 1> Extracted global settings.
> 1> Extracted code model.
> 1> Collating data ...
> 1> Warning: CMake 3.11 or newer is required for install target integration
> 1> Target info extraction done.
> 1> CMake generation finished.
> 
> cheers -ben
> 
> P.S. btw, the -DCOG_JIT:BOOL="False" 
> comes from first trying-the-simplest-thing of  unticking "COG_JIT" in this Visual Studio configuration dialog... 
> <image.png>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190903/1fc90f16/attachment.html>


More information about the Vm-dev mailing list