[Vm-dev] Cog/build.linux32x86/squeak.cog.v3/build.debug/mvm heads up on conflicting -DDEBUGVM flags

Eliot Miranda eliot.miranda at gmail.com
Mon Jun 23 22:33:40 UTC 2014


Hi Timothy,

   I don't see what the conflict is.  This:

OPT="-g3 -O0 -DDEBUGVM=1"

and this:

CFLAGS="$OPT -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0"

expand to

CFLAGS="-g3 -O0 -DDEBUGVM=1 -msse2 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DCOGMTVM=0"

So what's the problem?

(and I've been using these build files for at least three builds now
without issue)



On Mon, Jun 23, 2014 at 9:58 AM, gettimothy <gettimothy at zoho.com> wrote:

>
> Hi Eliot.
>
> I am guessing this could cause problems as it is specifically in the
> build.debug file...
>
> conflict in *bold*
>
>
>
>  #!/bin/bash
> # debug VM with VM profiler and threaded heartbeat
> INSTALLDIR=debug/coglinuxht
> OPT="-g3 -O0 *-DDEBUGVM=1*"
>
> if [ $# -ge 1 ]; then
> INSTALLDIR="$1"; shift
> fi
>
> echo -n "clean? "
> read a
> case $a in
> n|no|N|NO) echo "ok but this isn't safe!!";;
> *) test -f Makefile && make reallyclean
> esac
> test -f config.h || ../../../platforms/unix/config/configure
> --without-npsqueak \
> CC="gcc -m32" \
> CXX="g++ -m32" \
> CFLAGS="*$OPT *-msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 *-DCOGMTVM=0*"
> \
> LIBS="-lpthread -luuid" \
> LDFLAGS=-Wl,-z,now
> rm -f vm/sqUnixMain.o # nuke version info
> rm -rf ../../../products/$INSTALLDIR
> # prefer make install prefix=`readlink -f
> \`pwd\`/../../../products/$INSTALLDIR`
> # but older linux readlinks lack the -f flag
> make install prefix=`(cd ../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee
> LOG
>
>
>
> cheers, tty.
>
>
>
>


-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20140623/bacb85e9/attachment.htm


More information about the Vm-dev mailing list