Date: Fri, 28 Jan 2005 11:59:12 -0500 From: Coleman Kane <zombyfork@gmail.com> To: Rob Watt <rob@hudson-trading.com> Cc: freebsd-amd64@freebsd.org Subject: Re: 32-bit binary compatibility on 5.3-amd64 Message-ID: <346a802205012808597fab27fb@mail.gmail.com> In-Reply-To: <20050128105930.V54223@daemon.mistermishap.net> References: <20050127100818.M46092@daemon.mistermishap.net> <84dead72050127201552e14c04@mail.gmail.com> <20050128105930.V54223@daemon.mistermishap.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I was able to run this in 6.0-CURRENT on amd64. Compiled both for 64-bit and 32-bit. 64-bit: char* 8 int* 8 void* 8 long 8 double 8 int 4 32-bit: char* 4 int* 4 void* 4 long 4 double 8 int 4 On Fri, 28 Jan 2005 11:08:39 -0500 (EST), Rob Watt <rob@hudson-trading.com> wrote: > On Fri, 28 Jan 2005, Joseph Koshy wrote: > > > > I've run the /usr/src/tools/lib32/build32.sh script, and applied some > > > other changes that people have reccomended, but basically our 32-bit > > > applications all segfault when run on the amd64 machines. > > > > Exactly what is the segfault? Could you post the output of ktrace on an example > > process? > > > > a ktrace is attached for this sample code: > > #include <stdio.h> > > int main(int argc, char *argv[]) > { > printf("char* %d\n", sizeof(char*)); > printf("int* %d\n", sizeof(int*)); > printf("void* %d\n", sizeof(void*)); > printf("long %d\n", sizeof(long)); > printf("double %d\n", sizeof(double)); > printf("int %d\n", sizeof(int)); > return 0; > } > > this was compiled on a 5.3 i386 machine with: g++ -g > > - > Rob Watt > > _______________________________________________ > freebsd-amd64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-amd64 > To unsubscribe, send any mail to "freebsd-amd64-unsubscribe@freebsd.org" > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?346a802205012808597fab27fb>