[Vm-dev] Compiling VM on Mac

Eliot Miranda eliot.miranda at gmail.com
Fri Feb 2 22:46:12 UTC 2018


Hi Guido,

On Fri, Feb 2, 2018 at 8:26 AM, Guido Chari <charig at gmail.com> wrote:

>
> Hello,
>
> I follow the documentation but I was not able to compile the VM.
>
> I generated the sources using: 'CogSpur32VMBuilder buildMacOSX32.'
>

That's not the way we generate sources for the opensmalltalk-vm package.
We use VMMaker.oscog and one of the scripts on the class side of VMMaker,
e.g.
    VMMaker generateAllConfigurationsUnderVersionControl
    VMMaker generateSqueakSpurCog64VM
and the Pharo VM uses Squeak sources (We have Squeak=Smalltalk and
Newspeak=Newspeak).

What package are you using?


>
> Then, I went to the pharo.cog.spur directory and ran 'mvm -A'.
>
> The output is the following:
>
> clang -x c -MT build/vm/gcc3x-cointerp.o -MMD -MP -MF
> deps/gcc3x-cointerp.Td -Wno-missing-field-initializers
> -Wno-missing-prototypes -Wno-missing-braces -Wparentheses -Wswitch
> -Wno-unused-function -Wno-unused-label -Wno-unused-parameter
> -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized
> -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion
> -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion
> -Wno-enum-conversion -Wno-sign-conversion -Wno-shorten-64-to-32
> -Wpointer-sign -Wno-newline-eof -Wno-trigraphs -Wdeprecated-declarations -g
> -Os -DPharoVM=1 -DIMMUTABILITY=1 -DDEBUGVM=0 -DNDEBUG=1  -DPharoVM=1
> -DIMMUTABILITY=1 -DUSE_GLOBAL_STRUCT=0 -DNO_ISNAN=1
> -DUSE_INLINE_MEMORY_ACCESSORS -D'TZ="-03"' -D'VM_LABEL(foo)=0'
> -DSQUEAK_BUILTIN_PLUGIN -DBUILD_FOR_OSX=1 -arch i386
> -mmacosx-version-min=10.7 -msse4.2 -fvisibility=default -fwrapv
> -fmacro-backtrace-limit=0 -fdiagnostics-show-note-include-stack
> -fmessage-length=0 -fpascal-strings -fasm-blocks -fstrict-aliasing
> -fobjc-weak  -isysroot  -include ../../platforms/iOS/vm/SqueakPureObjc_Prefix.pch
> -I. -I../../spursrc/vm -I../../platforms/iOS/vm/Common
> -I../../platforms/iOS/vm/Common/Classes -I../../platforms/iOS/vm/OSX
> -I../../platforms/unix/vm -I../../platforms/Cross/vm
> -I../../platforms/Cross/plugins/FilePlugin -I../../platforms/Cross/plugins/HostWindowPlugin
> -I../../platforms/Cross/plugins/SoundPlugin -I../../platforms/iOS/plugins/FilePlugin
> -I../../platforms/iOS/plugins/HostWindowPlugin
> -I../../platforms/iOS/plugins/SoundPlugin -c ../../spursrc/vm/gcc3x-cointerp.c
> -o build/vm/gcc3x-cointerp.o
>
> clang: *error: *cannot specify -o when generating multiple output files
>
> clang: *warning: *no such sysroot directory: '-include'
> [-Wmissing-sysroot]
>
> make: *** [build/vm/gcc3x-cointerp.o] Error 1
>
>
> I'm running Sierra 10.13.2.
>
>
> Any ideas?
>
>
> Best,
>
> Guido.
>
>
>


-- 
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180202/8d8cbb8e/attachment-0001.html>


More information about the Vm-dev mailing list