<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I noticed that lots of the platform plugins are also using CMake.<div class=""><br class=""></div><div class="">So our build system is kind of a patchwork I guess?</div><div class=""><br class=""></div><div class="">As a Mac/iOS guy I would LOVE to have a VM I can build in Xcode to tinker with using platform specific build tools.  CMake will build Xcode projects or makefiles or lots of other kinds of build systems.  Its kind of a build system builder and I like that.</div><div class=""><br class=""></div><div class="">I understand that it isn't going to be as fast as hand tuned build scripts like C isn't going to beat hand tuned assembly.  But we sacrifice performance for understandability and flexibility when we can afford it.</div><div class=""><br class=""></div><div class="">Just my two cents on the build thing.  I am finding the VM repository to be really hard to get my head around.  So many parts. (And why is the Mac stuff in a directory below iOS but I can't find an iOS build target?  Another thread, perhaps).</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 30, 2018, at 3:46 PM, Ronie Salgado <<a href="mailto:roniesalg@gmail.com" class="">roniesalg@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">
Hello,<div class=""><br class=""></div><div class="">When I started making the minheadless version I
 wanted to nuke all of the platform specific code, and unify it as much 
as possible. For building I adapted the hand written CMake scripts that I
 normally use for my projects. One of my motivation for CMake is on using MSVC for building on Windows, which is also a requirement in order to support the UWP for running the VM in a retail Xbox One.</div><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">
<div class="">Before folding back into opensmalltalk, Pharo actually had a CMake helper to build the VM with options etc.</div><div class="">This was deemed too complicated and people steered towards a vanilla makefile.</div></div></blockquote><div class="">Pharo was NOT using CMake.  Pharo was generating cmake scripts from the image, which then they were being used for compiling the VM. That is definitely a complicated and not a proper way of cmake.</div><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">
<div class="">Now, yes, build times are long. But because there are a lot of dependencies being built as part of the whole.</div><div class="">There are some optimisations yes, like not rebuilding, say, FreeType on every build.</div></div></blockquote><div class="">And also plugins. Many plugins do not make sense as being part of the VM. There are not properly maintained or used. In Pharo at least there is the tendency of moving as much functionality as out of the plugins, and replacing them with libraries that called via the FFI.</div><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">
<div class="">Is is a pendulum swing in action?</div>

</div></blockquote><div class="">Well, with Esteban we decided one year ago that in order to reduce friction with the community, to use cmake only for configuration purpose (i.e replace autoconf to generate a config.h), and to keep using the existent makefiles. We already adapted the makefiles from Linux and Mac for Pharo. Handling dependencies during the build process is also another motivation for keeping the makefiles.</div><div class=""><br class=""></div><div class="">As for me, I prefer to just use cmake for the whole build process. In my opinion, I think that we are suffering from the lack of proper separation between the core VM, and user specific features (e.g: freetype, cairo, midi, mp3 player, etc) that should be isolated as much as possible from the vm. The VM itself should be a virtual processor and memory manager, it should not be a full operating system with 3D graphics, joystick support, midi controller plugin interface. Those other features are not the responsibility of the VM.<br class=""></div><div class=""><br class=""></div><div class="">I just submitted a pull request that fixes the build with cygwin for win32 ( <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/311" class="">https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/311</a> ). During the weekend I will write proper documentation on how these cmake scripts are supposed to work. Normally it should just be a matter of issuing the following commands on the top-level directory:</div><div class=""><br class=""></div><div class="">mkdir build</div><div class="">cd build</div><div class="">cmake ..</div><div class="">make</div><div class=""><br class=""></div><div class="">and then for development just use make, and some ocassional make clean. The scripts in build.minheadless.cmake are in place to automate this process and for building all of the variants of the vm. Cygwin is a bit trickier because it is treated as an Unix instead of Windows. Cygwin requires some additional command line options because it requires settings cmake in cross compilation mode by passing a toolchain file to cmake. The scripts in 
build.minheadless.cmake/x86|x64/<vm variant>/ already take care of detecting the usage of Cygwin, and passing the proper command line options to cmake.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Ronie</div><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">El vie., 30 nov. 2018 a las 6:47, <a href="mailto:phil@highoctane.be" class="">phil@highoctane.be</a> (<<a href="mailto:phil@highoctane.be" class="">phil@highoctane.be</a>>) escribió:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir="ltr" class=""><div dir="ltr" class=""><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Nov 30, 2018 at 8:55 AM Jakob Reschke <<a href="mailto:forums.jakob@resfarm.de" target="_blank" class="">forums.jakob@resfarm.de</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"> <div dir="ltr" class=""><div dir="auto" class="">Sorry, but it seems to me you criticize the shortcomings of cmake, but ignore its benefits.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Of course, cmake expects that you are familiar with it to a certain degree and that you are familiar with your build definition (CMakeLists.txt), and thus, how and where to pull the right triggers. If you were unfamiliar with (your) Makefiles and make in general, wouldn't it be hard to find the correct place there, too?</div></div></blockquote><div class=""><br class=""></div><div class="">Before folding back into opensmalltalk, Pharo actually had a CMake helper to build the VM with options etc.</div><div class="">This was deemed too complicated and people steered towards a vanilla makefile.</div><div class=""><br class=""></div><div class="">And now what? Are we using CMake? I see that the log pertains to a headless version. So is it only for that one or is everything moving to CMake?</div><div class=""><br class=""></div><div class="">In the the past, I had to use CMake 2.8 to get things to work because other versions were not working for some reason.</div><div class=""><br class=""></div><div class="">Is is a pendulum swing in action?</div><div class=""><br class=""></div><div class="">Now, yes, build times are long. But because there are a lot of dependencies being built as part of the whole.</div><div class="">There are some optimisations yes, like not rebuilding, say, FreeType on every build.</div><div class=""><br class=""></div><div class="">Now, we could be better by just having to core being rebuilt and assembled. But it is still C, so, change a header and bam, rebuild every bit.</div><div class=""><br class=""></div><div class="">On speed, I never noticed that we were using something like <a href="https://ccache.samba.org/" target="_blank" class="">https://ccache.samba.org/</a> which may help.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Phil</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr" class=""><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Looking at the generated Makefiles is the last resort when you suspect that there is a bug in cmake. Which should not be the default...</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">The performance of the generated Makefiles is not optimal. That is not surprising IMHO because cmake must be able to support all varieties of build definitions and the cmake developers have to make compromises. You could try another generator and use Visual Studio, Ninja, or whatever for the build and see whether that works better for your development cycle. You cannot simply try that with hand-written Makefiles.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">Am Fr., 30. Nov. 2018 um 08:33 Uhr schrieb Nicolas Cellier <<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank" class="">nicolas.cellier.aka.nice@gmail.com</a>>:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"> <div dir="ltr" class=""><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">Le ven. 30 nov. 2018 à 07:46, Norbert Hartl <<a href="mailto:norbert@hartl.name" target="_blank" class="">norbert@hartl.name</a>> a écrit :<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"> <div dir="auto" class=""><div dir="ltr" class=""></div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class=""><br class="">Am 30.11.2018 um 01:38 schrieb Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank" class="">eliot.miranda@gmail.com</a>>:<br class=""><br class=""></div><blockquote type="cite" class=""><div dir="ltr" class=""><span class=""></span></div></blockquote><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class=""><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Thu, Nov 29, 2018 at 4:32 PM Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank" class="">eliot.miranda@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr" class=""><div dir="ltr" class="">thanks Todd,<br class=""><div class="gmail_quote"><div dir="ltr" class="">On Thu, Nov 29, 2018 at 3:59 PM Todd Blanchard <<a href="mailto:tblanchard@mac.com" target="_blank" class="">tblanchard@mac.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"> <div style="word-wrap:break-word" class="">Don't know if this is helpful but maybe...<div class=""><br class=""></div><div class=""><a href="https://stackoverflow.com/questions/2670121/using-cmake-with-gnu-make-how-can-i-see-the-exact-commands" target="_blank" class="">https://stackoverflow.com/questions/2670121/using-cmake-with-gnu-make-how-can-i-see-the-exact-commands</a></div></div></blockquote><div class=""><br class=""></div><div class="">I can really see what's going on now:</div></div></div></div></blockquote><div class=""><br class=""></div><div class="">BTW, that's 9.6 kb of text per compile command :-)  One has to laugh, otherwise...</div><div class=""> </div></div></div></div></blockquote>I have trouble to figure out what you are saying. First you complain you don‘t see enough. Then you complain there is too much? Is there a feasible amount of information generally or does it need your personal one?<div class=""><br class=""></div><div class="">Norbert<br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">Hi Norbert,</div><div class="">don't make it personal.<br class=""></div><div class="">it's like deugging a C code which would have been pre-processed with all include files and macros expanded.</div><div class="">it is verbosity by repetition.<br class=""></div><div class="">it's not designed to be understandable.</div><div class="">Definitely not the level of information fitting human capabilities.</div><div class=""><br class=""></div><div class="">Nicolas<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="auto" class=""><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr" class=""><div dir="ltr" class=""><div class="gmail_quote"><div class=""><br class=""></div><div class="">make -C debug all</div><div class="">make[1]: Entering directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">/usr/bin/cmake.exe -H/cygdrive/z/oscogvm -B/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug --check-build-system CMakeFiles/Makefile.cmake 0</div><div class="">/usr/bin/cmake.exe -E cmake_progress_start /cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug/CMakeFiles /cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug/CMakeFiles/progress.marks</div><div class="">make -f CMakeFiles/Makefile2 all</div><div class="">make[2]: Entering directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make -f CMakeFiles/PharoVMCore.dir/build.make CMakeFiles/PharoVMCore.dir/depend</div><div class="">make[3]: Entering directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">cd /cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug && /usr/bin/cmake.exe -E cmake_depends "Unix Makefiles" /cygdrive/z/oscogvm /cygdrive/z/oscogvm /cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug /cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug /cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug/CMakeFiles/PharoVMCore.dir/DependInfo.cmake --color=</div><div class="">make[3]: Leaving directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make -f CMakeFiles/PharoVMCore.dir/build.make CMakeFiles/PharoVMCore.dir/build</div><div class="">make[3]: Entering directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">[  1%] Building C object CMakeFiles/PharoVMCore.dir/platforms/Cross/vm/sqExternalSemaphores.c.o</div><div class="">/usr/bin/x86_64-w64-mingw32-gcc.exe  -DBUILD_SQUEAK_STATIC -DBUILD_VM_CORE -DIMMUTABILITY=1 -DNO_ISNAN=1 -DPharoVM=1 -DSQUEAK_BUILTIN_PLUGIN -DUSE_GLOBAL_STRUCT=0 -DUSE_INLINE_MEMORY_ACCESSORS -DVM_NAME=\"Pharo\" -D_GNU_SOURCE -I/cygdrive/z/oscogvm/. -I/cygdrive/z/oscogvm/include -I/cygdrive/z/oscogvm/platforms/Cross/vm -I/cygdrive/z/oscogvm/platforms/Cross/plugins -I/cygdrive/z/oscogvm/spur64src/vm -I/usr/include/SDL2 -I/cygdrive/z/oscogvm/platforms/minheadless/common -I/cygdrive/z/oscogvm/platforms/minheadless/unix -I/cygdrive/z/oscogvm/src/plugins/SqueakFFIPrims -I/cygdrive/z/oscogvm/platforms/unix/plugins/SqueakFFIPrims -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SqueakFFIPrims -I/cygdrive/z/oscogvm/src/plugins/IA32ABI -I/cygdrive/z/oscogvm/platforms/unix/plugins/IA32ABI -I/cygdrive/z/oscogvm/platforms/Cross/plugins/IA32ABI -I/cygdrive/z/oscogvm/src/plugins/FilePlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/FilePlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/FilePlugin -I/cygdrive/z/oscogvm/src/plugins/FileAttributesPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/FileAttributesPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/FileAttributesPlugin -I/cygdrive/z/oscogvm/src/plugins/LargeIntegers -I/cygdrive/z/oscogvm/platforms/unix/plugins/LargeIntegers -I/cygdrive/z/oscogvm/platforms/Cross/plugins/LargeIntegers -I/cygdrive/z/oscogvm/src/plugins/LocalePlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/LocalePlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/LocalePlugin -I/cygdrive/z/oscogvm/src/plugins/MiscPrimitivePlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/MiscPrimitivePlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/MiscPrimitivePlugin -I/cygdrive/z/oscogvm/src/plugins/SecurityPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/SecurityPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SecurityPlugin -I/cygdrive/z/oscogvm/src/plugins/SocketPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/SocketPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SocketPlugin -I/cygdrive/z/oscogvm/src/plugins/B2DPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/B2DPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/B2DPlugin -I/cygdrive/z/oscogvm/src/plugins/BitBltPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/BitBltPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/BitBltPlugin -I/cygdrive/z/oscogvm/src/plugins/FloatArrayPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/FloatArrayPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/FloatArrayPlugin -I/cygdrive/z/oscogvm/src/plugins/FloatMathPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/FloatMathPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/FloatMathPlugin -I/cygdrive/z/oscogvm/src/plugins/Matrix2x3Plugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/Matrix2x3Plugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/Matrix2x3Plugin -I/cygdrive/z/oscogvm/src/plugins/SurfacePlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/SurfacePlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SurfacePlugin -I/cygdrive/z/oscogvm/src/plugins/DropPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/DropPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/DropPlugin -I/cygdrive/z/oscogvm/src/plugins/ZipPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/ZipPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/ZipPlugin -I/cygdrive/z/oscogvm/src/plugins/ADPCMCodecPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/ADPCMCodecPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/ADPCMCodecPlugin -I/cygdrive/z/oscogvm/src/plugins/AsynchFilePlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/AsynchFilePlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/AsynchFilePlugin -I/cygdrive/z/oscogvm/src/plugins/BMPReadWriterPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/BMPReadWriterPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/BMPReadWriterPlugin -I/cygdrive/z/oscogvm/src/plugins/DSAPrims -I/cygdrive/z/oscogvm/platforms/unix/plugins/DSAPrims -I/cygdrive/z/oscogvm/platforms/Cross/plugins/DSAPrims -I/cygdrive/z/oscogvm/src/plugins/FFTPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/FFTPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/FFTPlugin -I/cygdrive/z/oscogvm/src/plugins/FileCopyPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/FileCopyPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/FileCopyPlugin -I/cygdrive/z/oscogvm/src/plugins/JoystickTabletPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/JoystickTabletPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/JoystickTabletPlugin -I/cygdrive/z/oscogvm/src/plugins/MIDIPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/MIDIPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/MIDIPlugin -I/cygdrive/z/oscogvm/src/plugins/SerialPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/SerialPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SerialPlugin -I/cygdrive/z/oscogvm/src/plugins/SoundCodecPrims -I/cygdrive/z/oscogvm/platforms/unix/plugins/SoundCodecPrims -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SoundCodecPrims -I/cygdrive/z/oscogvm/src/plugins/SoundGenerationPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/SoundGenerationPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SoundGenerationPlugin -I/cygdrive/z/oscogvm/src/plugins/StarSqueakPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/StarSqueakPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/StarSqueakPlugin -I/cygdrive/z/oscogvm/src/plugins/JPEGReaderPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/JPEGReaderPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/JPEGReaderPlugin -I/cygdrive/z/oscogvm/src/plugins/JPEGReadWriter2Plugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/JPEGReadWriter2Plugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/JPEGReadWriter2Plugin -I/cygdrive/z/oscogvm/src/plugins/RePlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/RePlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/RePlugin -I/cygdrive/z/oscogvm/src/plugins/InternetConfigPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/InternetConfigPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/InternetConfigPlugin -I/cygdrive/z/oscogvm/src/plugins/SqueakSSL -I/cygdrive/z/oscogvm/platforms/unix/plugins/SqueakSSL -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SqueakSSL -I/cygdrive/z/oscogvm/src/plugins/AioPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/AioPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/AioPlugin -I/cygdrive/z/oscogvm/src/plugins/EventsHandlerPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/EventsHandlerPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/EventsHandlerPlugin -I/cygdrive/z/oscogvm/src/plugins/SDL2DisplayPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/SDL2DisplayPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/SDL2DisplayPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/Mpeg3Plugin/libmpeg -I/cygdrive/z/oscogvm/platforms/Cross/plugins/Mpeg3Plugin/libmpeg/audio -I/cygdrive/z/oscogvm/platforms/Cross/plugins/Mpeg3Plugin/libmpeg/video -I/cygdrive/z/oscogvm/src/plugins/Mpeg3Plugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/Mpeg3Plugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/Mpeg3Plugin -I/usr/include/freetype2 -I/cygdrive/z/oscogvm/src/plugins/FT2Plugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/FT2Plugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/FT2Plugin -I/cygdrive/z/oscogvm/src/plugins/VMProfileLinuxSupportPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/VMProfileLinuxSupportPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/VMProfileLinuxSupportPlugin -I/cygdrive/z/oscogvm/src/plugins/UnixOSProcessPlugin -I/cygdrive/z/oscogvm/platforms/unix/plugins/UnixOSProcessPlugin -I/cygdrive/z/oscogvm/platforms/Cross/plugins/UnixOSProcessPlugin -I/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug  -pthread -g  -DDEBUGVM=1   -o CMakeFiles/PharoVMCore.dir/platforms/Cross/vm/sqExternalSemaphores.c.o   -c /cygdrive/z/oscogvm/platforms/Cross/vm/sqExternalSemaphores.c</div><div class="">make[3]: Leaving directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make[2]: Leaving directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make[1]: Leaving directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class=""><br class=""></div><div class="">No wonder cmake hides the output by default ;-)</div><div class=""><br class=""></div><div class="">Still no information on where the configurations lie, and since they're all computed in a pre-build step one has to essentially decompile the makefiles to get back to the config files that are where the configuration variables are really hiding.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div style="word-wrap:break-word" class=""><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Nov 29, 2018, at 3:36 PM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank" class="">eliot.miranda@gmail.com</a>> wrote:</div><br class="m_-3817115052211209988gmail-m_4461993700696144998m_4158594344835728278m_6276663289914360749m_-8703177084461492504gmail-m_5581918437878320561Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">and then  there's this.  Having spotted the apparent error (a case difference for sqPlatformSpecific-Win32.h in platforms/minheadless/common/sqPlatformSpecific.h) I rerun the build and see the following output, essentially unchanged:</div><div dir="ltr" class=""><div class=""><br class=""></div><div class=""><div class="">-- Build files have been written to: /cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/release</div><div class="">make -C debug all</div><div class="">make[1]: Entering directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make[2]: Entering directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make[3]: Entering directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">Scanning dependencies of target PharoVMCore</div><div class="">make[3]: Leaving directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/phar</div><div class="">o.cog.spur/debug'</div><div class="">make[3]: Entering directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">[  1%] Building C object CMakeFiles/PharoVMCore.dir/platforms/Cross/vm/sqExternalSemaphores.c.o</div><div class="">In file included from /cygdrive/z/oscogvm/platforms/Cross/vm/sq.h:212:0,</div><div class="">                 from /cygdrive/z/oscogvm/platforms/Cross/vm/sqExternalSemaphores.c:31:</div><div class="">/cygdrive/z/oscogvm/platforms/minheadless/common/sqPlatformSpecific.h:36:39: fatal error: sqPlatformSpecific-Win32.h: No such file or directory</div><div class="">compilation terminated.</div><div class="">make[3]: *** [CMakeFiles/PharoVMCore.dir/build.make:63: CMakeFiles/PharoVMCore.dir/platforms/Cross/vm/sqExternalSemaphores.c.o] Error 1</div><div class="">make[3]: Leaving directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make[2]: *** [CMakeFiles/Makefile2:216: CMakeFiles/PharoVMCore.dir/all] Error 2</div><div class="">make[2]: Leaving directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make[1]: *** [Makefile:84: all] Error 2</div><div class="">make[1]: Leaving directory '/cygdrive/z/oscogvm/build.minheadless.cmake/x64/pharo.cog.spur/debug'</div><div class="">make: *** [Makefile:2: all] Error 2</div></div><div class=""><br class=""></div><div class="">What's missing? </div><div class="">- no mention of a LOG file name to go look for the command line for the compiler which is likely missing an include path to pick up platforms/minheadless/windows/sqPlatformSpecific-Win32.h</div><div class="">- no command line so one can't merely eyeball the output to  heck, or run the build with output piped into one's own LOG file</div><div class=""><br class=""></div><div class="">What doe we see?  An opaque build system.  The only way to approach this is to wade through the details trying to uncover things *that should be in plain view*.  With the Makefiles I have written </div><div class="">- there is no slow configure step (the above make scheme crates 4 identical copies of a config file *on each build*)</div><div class="">- the commandos theat build are output explicitly so one may quickly debug errors in code one is writing</div><div class=""><br class=""></div><div class="">I'm sorry to complain but this use of cmake is painful and misguided.</div></div></div></div></div></div></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Wed, Nov 28, 2018 at 7:14 PM Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank" class="">eliot.miranda@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Hi All,<div class=""><br class=""></div><div class="">    I've just attempted to build minheadless on win32 in build.minheadless.cmake.  It failed, but it took a long time to do so, while I waited.  So I cleaned and repeated to measure just how long I waited.  So this time is a best case; all read files are in cache etc.  I'm running a Windows VM on a top of the line MacBook Pro and yet it takes 3 minutes and 20 seconds to configure and then start to build and fail because it can't find sqplatfozrmspecifc-win32.h.  I have to wait 3 minutes and 20 seconds before I can find out a missing file.  This is *wrong*.</div><div class=""><br class=""></div><div class="">Using make on a build slave is fine, if you insist, but clearly not necessary (our current builds do not use cmake, and even then on ARM build slaves they sometimes timeout).  But for development this is madness.  We should have a build system which is reactive, which gives feedback too the developer quickly, not after 3 minutes and 20 seconds on state of the art hardware.</div><div class=""><br class=""></div><div class="">I find it absurd that a Smalltalk community, which well understands the value of incrementally and reactivity, can be satisfied with a VM build system that takes 3 minutes and 20 seconds before it does anything useful.  It feels like being back at York University in the early '80's, waiting for the PDP 10.  No, that was faster.  On reflection, it reminds me of having to post coding sheets to be typed in by entry clerks through the mail while I was at school in the '70's.  Back to the future indeed.</div><div class=""><div class="m_-3817115052211209988gmail-m_4461993700696144998m_4158594344835728278m_6276663289914360749m_-8703177084461492504gmail-m_5581918437878320561m_9126227185341210645gmail_signature" dir="ltr"><div dir="ltr" class=""><div class=""><span style="font-size:small;border-collapse:separate" class=""><div class="">_,,,^..^,,,_<br class=""></div><div class="">best, Eliot</div></span></div></div></div></div></div></div></div>
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="m_-3817115052211209988gmail-m_4461993700696144998m_4158594344835728278m_6276663289914360749m_-8703177084461492504gmail-m_5581918437878320561gmail_signature" dir="ltr"><div dir="ltr" class=""><div class=""><span style="font-size:small;border-collapse:separate" class=""><div class="">_,,,^..^,,,_<br class=""></div><div class="">best, Eliot</div></span></div></div></div>
</div></blockquote></div><br class=""></div></div></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="m_-3817115052211209988gmail-m_4461993700696144998m_4158594344835728278m_6276663289914360749m_-8703177084461492504gmail_signature" dir="ltr"><div dir="ltr" class=""><div class=""><span style="font-size:small;border-collapse:separate" class=""><div class="">_,,,^..^,,,_<br class=""></div><div class="">best, Eliot</div></span></div></div></div></div></div>
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="m_-3817115052211209988gmail-m_4461993700696144998m_4158594344835728278m_6276663289914360749gmail_signature" dir="ltr"><div dir="ltr" class=""><div class=""><span style="font-size:small;border-collapse:separate" class=""><div class="">_,,,^..^,,,_<br class=""></div><div class="">best, Eliot</div></span></div></div></div></div>
</div></blockquote></div></div></blockquote></div></div>
</blockquote></div>
</blockquote></div></div></div>
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>