[Vm-dev] Cannot compile Cog: GCC 4.7

gettimothy gettimothy at zoho.com
Sat Apr 11 13:35:30 UTC 2015


Hi Tobias


The Cog/build.linux32x86/[lang].[vm].[memory manager]/build[.*]/mvm file is a good starting point.





If you get the time, and after you get a 'build' build done, could you please attempt a build.assert build? 
There is (probably) a bug with GCC > 3.xyz where the function attribute __attribute__((regparm(n))) is not implemented.


I am running GCC 4.8.2 and if you get the same problem, then it is good news.


thx


tty.




btw, on 64 bit slackware, my base mvm file looks like this:



 bash-4.2$ cat usr/src/smalltalk/mvm
#!/bin/bash
# VM with VM profiler and threaded heartbeat
INSTALLDIR=coglinuxht
# Some gcc versions create a broken VM using -O2
case `gcc -v 2>&1 | grep version | sed 's/gcc version *//'` in
3.4.*) OPT="-g -O1 -DNDEBUG -DDEBUGVM=0";;
*) OPT="-g -O2 -DNDEBUG -DDEBUGVM=0";;
esac

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 --without-vm-display-fbdev --without-gl --x-libraries=/usr/lib \
 CC="gcc -m32" \
 CXX="g++ -m32" \
 CFLAGS="$OPT -no-integrated-cpp -Wundef -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





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150411/ad897359/attachment.htm


More information about the Vm-dev mailing list