[Vm-dev] Suspicious typing in Cog VM
leves at elte.hu
Thu Dec 9 15:04:16 UTC 2010
On Thu, 9 Dec 2010, Frank Shearar wrote:
> On 2010/12/09 01:42, Pierce Ng wrote:
>> On Wed, Dec 08, 2010 at 02:32:35PM +0000, Frank Shearar wrote:
>>>> FWIW, the configure command that I used is:
>>>> ../platforms/unix/config/configure CC="gcc -m32" CFLAGS="-g -O2 \
>>>> -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 \
>>>> -DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread
>>> I'm getting (on FreeBSD 7.3, gcc 4.2.1) configure failing with "C
>>> compiler cannot create executables", and config.log talking of "exit 77".
>> On FreeBSD you need to install the 32 bit libraries, which will go into
>> /usr/lib32. Then set CC="gcc -m32 -B/usr/lib32". However, it still doesn't
>> compile cleanly on 7.3 amd64: I get errors like these (that don't occur
>> when compiling on a 7.3 x86):
> Ah! -B/usr/lib32 did the trick!
>> - pageMask undeclared (sqUnixMemory.c)
>> - PROT_READ undeclared (ditto)
>> - etc.
>> The other day I posted on how to compile Cog on 32bit FreeBSD. I left out
>> the parts about fixing type mismatches (int in .h and sqInt in .c, etc.)
>> because these need to be done on Linux and OSX (via unixbuild) as well, so
>> it didn't occur to me to mention them. Once you fix these, you should be
>> able to get Cog running on FreeBSD 7.3 x86.
> "etc" will include things like "conflicting types for
> 'readImageFromFileHeapSizeStartingAt'", yes?
> So yes, right now I can configure, but can't compile.
Generate the sources from VMMaker-oscog-Igor.Stasenko.38 which should fix
> I'll fiddle some more in the meanwhile. Thanks!
More information about the Vm-dev