[Vm-dev] Cog on linux

Rob Withers reefedjib at yahoo.com
Fri Jul 16 20:25:17 UTC 2010



--------------------------------------------------
From: "Levente Uzonyi" <leves at elte.hu>
Sent: Friday, July 16, 2010 3:57 PM
To: "Squeak Virtual Machine Development Discussion" 
<vm-dev at lists.squeakfoundation.org>
Subject: Re: [Vm-dev] Cog on linux

>
> On Fri, 16 Jul 2010, Rob Withers wrote:
>
>>
>>
>>
>> --------------------------------------------------
>> From: "Levente Uzonyi" <leves at elte.hu>
>> Sent: Friday, July 16, 2010 8:17 AM
>> To: "Squeak Virtual Machine Development Discussion" 
>> <vm-dev at lists.squeakfoundation.org>
>> Subject: Re: [Vm-dev] Cog on linux
>>
>>>
>>> On Fri, 16 Jul 2010, Rob Withers wrote:
>>>
>>> (Pine still can't quote your mail...)
>>>
>>
>> (Is this better?  Hopefully)
>>
>>> Now I remember why I used the nasty trick to define CC as "gcc -m32" 
>>> when I compiled the 32-bit SqueakVM on 64-bit OS. The problem is that 
>>> there are places where CC is used without the CFLAGS. For example 
>>> FloatMathPlugin uses LIBM_CFLAGS, which doesn't include CFLAGS. I still 
>>> wonder why it has to be compiled with -O, but that's another story.
>>> This trick solves it, so add CC="gcc -m32" to the arguments of configure 
>>> and see if it works for you.
>>>
>>
>> Where do you define CC?  Is it in make.cfg?
>
> The same place where CFLAGS is defined:
> ../../platforms/unix/config/configure CC="gcc -m32" 
> CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
>  -DCOGMTVM=0" LIBS=-lpthread
>

Woohoo!  I made progress.   Thanks!  Now it is crashing on sound:

/bin/sh 
/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld/libtool --mode=compile 
gcc -m32 -g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
 -DCOGMTVM=0 -msse -DLSB_FIRST=1  -DHAVE_CONFIG_H  -I/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld 
 -I/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld -I/home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm 
 -I/home1/vawhigso/public_html/squeakelib/Cog/platforms/Cross/vm -I/home1/vawhigso/public_html/squeakelib/Cog/src/vm 
    -c -o sqUnixSoundALSA.lo 
/home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm-sound-ALSA/sqUnixSoundALSA.c
gcc -m32 -g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
 -DCOGMTVM=0 -msse -DLSB_FIRST=1 -DHAVE_CONFIG_H -I/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld 
 -I/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld -I/home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm 
 -I/home1/vawhigso/public_html/squeakelib/Cog/platforms/Cross/vm -I/home1/vawhigso/public_html/squeakelib/Cog/src/vm 
 -c 
/home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm-sound-ALSA/sqUnixSoundALSA.c 
  -fPIC -DPIC -DPIC -o sqUnixSoundALSA.o
mv -f sqUnixSoundALSA.o sqUnixSoundALSA.lo
/bin/sh 
/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld/libtool --mode=link 
gcc -m32 -g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
 -DCOGMTVM=0 -msse -DLSB_FIRST=1    -avoid-version -module -rpath 
/home1/vawhigso/public_html/squeakelib/Cog/Cog/lib/squeak/3.9-7 -o 
vm-sound-ALSA.la sqUnixSoundALSA.lo -lasound
mkdir .libs
rm -fr .libs/vm-sound-ALSA.la .libs/vm-sound-ALSA.* .libs/vm-sound-ALSA.*
(cd . && ln -s sqUnixSoundALSA.lo sqUnixSoundALSA.o)
gcc -m32 -shared 
 sqUnixSoundALSA.lo  -lasound  -Wl,-soname -Wl,vm-sound-ALSA -o 
.libs/vm-sound-ALSA
/usr/bin/ld: skipping incompatible /usr/lib64/libasound.so when searching 
for -lasound
/usr/bin/ld: skipping incompatible /usr/lib64/libasound.a when searching 
for -lasound
/usr/bin/ld: cannot find -lasound
collect2: ld returned 1 exit status
make[1]: *** [vm-sound-ALSA.la] Error 1
make: *** [vm-sound-ALSA.la] Error 2

>
> Levente
>
>>
>> Rob
>>
>>>
>>> Levente
>>
>> 


More information about the Vm-dev mailing list