[Monetdb-developers] [Monetdb-checkins] buildtools/conf MonetDB.m4, MonetDB_1-20, 1.37.2.18, 1.37.2.19

Stefan Manegold Stefan.Manegold at cwi.nl
Sat Jan 19 11:53:15 CET 2008


On Sat, Jan 19, 2008 at 11:49:07AM +0100, Stefan Manegold wrote:
> Jennie,
> 
> you might also want to check, if your system & compiler are actually capable
> of producing 64-bit binaries, and if so, whether the default of your
> compiler is 32- or 64-bit. E.g.:
> 
> echo -e '#include <stdlib.h>\n#include <stdio.h>\nint main() {\nprintf("Hello\\n");\nreturn 0;\n}' | tee hello.c ; gcc -o hello hello.c && ./hello ; gcc -m32 -o hello32 hello.c && ./hello32 ; gcc -m64 -o hello64 hello.c && ./hello64 ; file hello{,32,64}

or even

echo -e '#include <stdlib.h>\n#include <stdio.h>\nint main() {\nprintf("Hello(%d,%d)\\n",8*sizeof(char*),8*sizeof(size_t));\nreturn 0;\n}' | tee hello.c ; gcc -o hello hello.c && ./hello ; gcc -m32 -o hello32 hello.c && ./hello32 ; gcc -m64 -o hello64 hello.c && ./hello64 ; file hello{,32,64}

> In case "hello" (the default) is 64-bit, you don't need to use --enable-bits=64 at all.
> 
> In case "hello64" does not compiler or work, there is not much hope to get a
> 64-bit MonetDB on your system (at least not easily).
> 
> Could you please also report what 
> 	uname -a
> says on your system?
> 
> Stefan

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the developers-list mailing list