[Vm-dev] Cog unix build fail on Debian Lenny

Igor Stasenko siguctua at gmail.com
Sun Aug 7 14:43:00 UTC 2011


On 7 August 2011 12:56, laurent laffont <laurent.laffont at gmail.com> wrote:
>
> Hi,
> On a Debian Lenny server, I try to build Cog from latest source like this:
> wget --no-check-certificate https://pharo-ic.lille.inria.fr/hudson/view/Cog/job/Cog%20Unix/lastSuccessfulBuild/artifact/CogUnixConfig-sources.tar.gz
> tar -xvzf CogUnixConfig-sources.tar.gz
> cd unixbuild/bld/
> ../../platforms/unix/config/configure --without-vm-display-fbdev --without-npsqueak CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread
> make
> I have the error:
> In file included from /root/cog/platforms/unix/vm/sqUnixMain.c:40:
> /root/cog/platforms/Cross/vm/sqSCCSVersion.h:17:54: error: vmVersionInfo.h: No such file or directory
> /root/cog/platforms/Cross/vm/sqSCCSVersion.h:20:3: error: #error "Revision information not specified"
> In file included from /root/cog/platforms/unix/vm/sqUnixMain.c:40:
> /root/cog/platforms/Cross/vm/sqSCCSVersion.h: In function 'sourceVersionString':
> /root/cog/platforms/Cross/vm/sqSCCSVersion.h:25: error: 'REVISION_STRING' undeclared (first use in this function)
> /root/cog/platforms/Cross/vm/sqSCCSVersion.h:25: error: (Each undeclared identifier is reported only once
> /root/cog/platforms/Cross/vm/sqSCCSVersion.h:25: error: for each function it appears in.)
> /root/cog/platforms/unix/vm/sqUnixMain.c: In function 'main':
> /root/cog/platforms/unix/vm/sqUnixMain.c:1736: warning: assignment from incompatible pointer type
> /root/cog/platforms/unix/vm/sqUnixMain.c:1741: warning: assignment from incompatible pointer type
> make[1]: *** [sqUnixMain.o] Error 1
> make: *** [vm/vm.a] Error 2
>
> gcc --version
> gcc (Debian 4.3.2-1.1) 4.3.2
>
> Is it supposed to work ?

No.
If you taking sources from hudson , don't use unixbuild
use cmake.

what you supposed to do instead is to:

cd build
cmake .
make


> Laurent.

-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list