On Sat, Aug 13, 2011 at 11:57 AM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
Nicolas Passerini commited a '-m32' flag to the CogUnixConfiguration in order to be able to compile it on a 64bits machine. Can you check it is still there? maybe it only was added to the VM and not to plugins.
Seems to be here: CogUnixConfig>>commonCompilerFlags ... ^ ' -DLSB_FIRST=1 -DUSE_GLOBAL_STRUCT=0 -DCOGMTVM=0 -m32' and build# cat vm-display-null/CMakeLists.txt |grep m32 add_definitions( -DLSB_FIRST=1 -DUSE_GLOBAL_STRUCT=0 -DCOGMTVM=0 -m32 -g0 -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 Laurent.
On Sat, Aug 13, 2011 at 11:13 AM, laurent laffont < laurent.laffont@gmail.com> wrote:
Hi
I try to build a 32bits Cog on Debian 64 bits. I do:
apt-get install libsm-dev libasound2-dev libgl1-mesa-dev cmake g++ libc6-dev-i386
git clone --depth 1 git:// gitorious.org/~laurentlaffont/cogvm/smallharbour.git<http://gitorious.org/%7Elaurentlaffont/cogvm/smallharbour.git>shvm cd shvm/codegen-scripts/ export SQUEAKVM=/usr/local/bin/coglinux/squeak sh ./buildImage.sh -headless sh ./generate.sh -headless CogUnixConfig cd ../build/ sh ../codegen-scripts/extract-commit-info.sh cmake . make
I have the error:
[ 94%] Built target CogVM Linking C shared library /root/securedvm/results/vm-display-null /usr/bin/ld: i386 architecture of input file `CMakeFiles/vm-display-null.dir/root/securedvm/platforms/unix/vm-display-null/sqUnixDisplayNull.c.o' is incompatible with i386:x86-64 output
Any idea ?
Laurent Laffont - @lolgzs <http://twitter.com/#%21/lolgzs>
Pharo Smalltalk Screencasts: http://www.pharocasts.com/ Blog: http://magaloma.blogspot.com/ Developer group: http://cara74.seasidehosting.st
-- Mariano http://marianopeck.wordpress.com