[Vm-dev] Cog on linux
Rob Withers
reefedjib at yahoo.com
Sat Jul 17 18:18:58 UTC 2010
Eliot,
It is still giving me an ALSA error. Here is my call to configure and make:
../../platforms/unix/config/configure --without-vm-sound-ALSA --without-vm-sound-OSS
--without-vm-display-fbdev --without-npsqueak CC="gcc -m32"
CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1
-DCOGMTVM=0" LIBS=-lpthread
make install prefix=/home1/vawhigso/public_html/squeakelib/Cog/Cog
I find it best to delete the entire unixbuild directory and untar it fresh
from the tarball.
Thanks,
Rob
Error:
/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
From: Eliot Miranda
Sent: Saturday, July 17, 2010 2:00 PM
To: Squeak Virtual Machine Development Discussion
Subject: Re: [Vm-dev] Cog on linux
On Fri, Jul 16, 2010 at 4:37 PM, Rob Withers <reefedjib at yahoo.com> wrote:
--------------------------------------------------
From: "Rob Withers" <reefedjib at yahoo.com>
Sent: Friday, July 16, 2010 7:08 PM
To: "Squeak Virtual Machine Development Discussion"
<vm-dev at lists.squeakfoundation.org>
Subject: Re: [Vm-dev] Cog on linux
--------------------------------------------------
From: "Levente Uzonyi" <leves at elte.hu>
Sent: Friday, July 16, 2010 6:44 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: "Casey Ransberger" <casey.obrien.r at gmail.com>
Sent: Friday, July 16, 2010 5:10 PM
To: "Squeak Virtual Machine Development Discussion"
<vm-dev at lists.squeakfoundation.org>
Subject: Re: [Vm-dev] Cog on linux
I think you just need libasound
Ok guys, I am working on it with my webhost. I am not sure how I can
install an RPM on their box, so I submitted a ticket.
Actually I don't think that any sound plugin would work, because the
32-bit binaries will not be available. But you don't need sound at all on
a server, do you?
You lost me on 32-bit binaries not being available. I found
alsa-lib-1.0.13.tar.bz2 and I am preparing to build it.
My error said:
/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
So it looks like I need a .so and a .a file. As rusty as I am on building
for unix, are these static libs or shared libs? I do need to figure out how
to cross compile to a 32bit system. I am researching this for the right
target. I need i386-linux or something. I am attaching the config.guess
file they use for this. Can anyone give me a helpful hand what I should
specify doing ...
'./configure --enable-shared=no --enable-static=yes --target=i386-linux'
Damn! I can't figure out how to change the install path to other than
/usr/include, etc. I can't write to those directories. I am stuck.
Regarding your observation that I don't need sound on a server, that is spot
on. It may be too entangled for the time being.
Is it possible to unentangle sound?
Try configuring Cog without libalsa. e.g.
../../platforms/unix/config/configure --without-vm-sound-ALSA --without-vm-display-fbdev
--without-npsqueak -prefix=/home/qwaq/qwaqvm/
CFLAGS="-g -O1 -msse2 -D_GNU_SOURCE -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0"
LIBS=-lpthread
and if you have problems with OSS sound you can disable that too
../../platforms/unix/config/configure --without-vm-sound-ALSA --without-vm-sound-OSS
--without-vm-display-fbdev --without-npsqueak -prefix=/home/qwaq/qwaqvm/
CFLAGS="-g -O1 -msse2 -D_GNU_SOURCE -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0"
LIBS=-lpthread
that will leave you with vm-sound-null which is fine for a server.
Thanks,
Rob
Cheers,
Rob
Levente
Thanks,
Rob
More information about the Vm-dev
mailing list