[Vm-dev] Re: I need help building Cog on 64bit Linux (new Squeak server)

Ken Causey ken at kencausey.com
Sat Jan 26 21:50:15 UTC 2013


On 01/26/2013 03:16 PM, Ken Causey wrote:
> On 01/26/2013 Derek wrote:
> > Not certain but this bit looks suspect: -D_FILE^J_OFFSET_BITS=64
>
> *sigh*  Yes, and in fact this is far from the first time this cut and 
> paste error has bit me in the last week.  Sorry.  Ignore this email 
> for now.  However I think I will be back because I run into more 
> trouble (but then frankly I may be getting confused now.)
>
> Ken
First let me apologize for the HTML email but this seems to be the only 
solution when you need to support long lines (with Thunderbird (aka 
IceDove) which I'm currently using.)

Yes, confused is the word.  Sorry about the spurious initial report.  As 
predicted I did run into a problem but I don't remember seeing this one 
before.  First as far as I can tell currently configure runs fine when 
you don't make a cut and paste error.  The problem I'm running into now 
is with building BochsIA32Plugin:

/bin/bash /home/kencausey/source/cog/svn/Cog/unixbuild/bld/libtool 
--mode=compile g++ -g -O2 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0 
-msse -DLSB_FIRST=1  -m32 -DHAVE_CONFIG_H  
-I/home/kencausey/source/cog/svn/Cog/unixbuild/bld 
-I/home/kencausey/source/cog/svn/Cog/unixbuild/bld 
-I/home/kencausey/source/cog/svn/Cog/platforms/unix/vm 
-I/home/kencausey/source/cog/svn/Cog/platforms/Cross/vm 
-I/home/kencausey/source/cog/svn/Cog/src/vm 
-I/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin   
-m32 -DUSE_BOCHS_CONFIG_H=1 
-I/home/kencausey/source/cog/svn/Cog/processors/IA32/linuxbochs 
-I/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs 
-I/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/instrument/stubs 
-c -o sqBochsIA32Plugin.lo 
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp 

g++ -g -O2 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG 
-DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0 -msse 
-DLSB_FIRST=1 -m32 -DHAVE_CONFIG_H 
-I/home/kencausey/source/cog/svn/Cog/unixbuild/bld 
-I/home/kencausey/source/cog/svn/Cog/unixbuild/bld 
-I/home/kencausey/source/cog/svn/Cog/platforms/unix/vm 
-I/home/kencausey/source/cog/svn/Cog/platforms/Cross/vm 
-I/home/kencausey/source/cog/svn/Cog/src/vm 
-I/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin 
-m32 -DUSE_BOCHS_CONFIG_H=1 
-I/home/kencausey/source/cog/svn/Cog/processors/IA32/linuxbochs 
-I/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs 
-I/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/instrument/stubs 
-c 
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp  
-fPIC -DPIC -DPIC -o sqBochsIA32Plugin.o
In file included from 
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp:7:
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/bochs.h:38:84: 
error: bochsconfig.h: No such file or directory
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp:17:1: 
warning: "setjmp" redefined
In file included from 
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:1069,
                  from 
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/bochs.h:117,
                  from 
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp:7:
/usr/include/setjmp.h:69:1: warning: this is the location of the 
previous definition
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp:282: 
warning: integer constant is too large for 'long' type
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp:286: 
warning: integer constant is too large for 'long' type
In file included from 
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/bochs.h:113,
                  from 
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp:7:
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/osdep.h:150: 
error: 'Bit64u' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/osdep.h:165: 
error: conflicting declaration 'typedef int socklen_t'
/usr/include/unistd.h:275: error: 'socklen_t' has a previous declaration 
as 'typedef __socklen_t socklen_t'
In file included from 
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/bochs.h:114,
                  from 
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp:7:
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/bx_debug/debug.h:34: 
error: 'Bit32u' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/bx_debug/debug.h:36: 
error: 'Bit32u' does not name a type
In file included from 
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/bochs.h:117,
                  from 
/home/kencausey/source/cog/svn/Cog/platforms/Cross/plugins/BochsIA32Plugin/sqBochsIA32Plugin.cpp:7:
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:370: 
error: 'Bit32s' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:396: 
error: 'Bit32u' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:397: 
error: 'bx_bool' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:407: 
error: 'Bit16s' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:408: 
error: 'Bit8u' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:474: 
error: 'Bit8u' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:530: 
error: 'Bit32s' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:580: 
error: variable 'BOCHSAPI bx_object_c' has initializer but incomplete type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:580: 
warning: extended initializer lists only available with -std=c++0x or 
-std=gnu++0x
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:581: 
error: expected primary-expression before 'private'
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:581: 
error: expected '}' before 'private'
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:581: 
error: expected ',' or ';' before 'private'
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:584: 
error: expected unqualified-id before 'protected'
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:586: 
error: expected unqualified-id before 'public'
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:588: 
error: expected class-name before '(' token
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:589: 
error: 'Bit32u' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:590: 
error: 'Bit8u' does not name a type
/home/kencausey/source/cog/svn/Cog/processors/IA32/bochs/gui/siminterface.h:591: 
error: expected declaration before '}' token
make[1]: *** [sqBochsIA32Plugin.lo] Error 1
make: *** [BochsIA32Plugin.la] Error 2

I believe the core problem is that it fails to find bochsconfig.h and 
yet is is in

processors/IA32/linuxbochs/bochsconfig.h

Oops.  No.

$ ls -l /home/kencausey/source/cog/svn/Cog/processors/IA32/linuxbochs/
total 4
lrwxrwxrwx 1 kencausey kencausey    8 Jan 23 22:04 bochsconfig.h -> config.h
-rwxr-xr-x 1 kencausey kencausey 1436 Jan 23 22:04 conf.COG

bochsconfig.h is a symlink and a dead one at that as there is no 
config.h in that directory.  Just to check I checked out a fresh copy 
from svn and I see the same in that checkout.

Ken




More information about the Vm-dev mailing list