[Xapian-discuss] Xapian on AMD64

Christiano Anderson anderson at pegasus.eti.br
Thu Aug 4 15:22:16 BST 2005


Em Qui, 2005-08-04 às 15:06 +0100, James Aylett escreveu:

> Not sure about advantages, and right now I can't guarantee it'll even
> work. I just tried to build Xapian up as 64bit on Solaris/Sparc, and
> it failed - apparently due to GCC library issues, but the actual
> reason is anyone's guess.
> 
> You should be able to run 32bit executables on AMD64, shouldn't you?
> The processor can manage it, no idea if linux can cope. By compiling
> up as 64bit you'll get few advantages I can think of ...

Yes, you can run 32bit executables on AMD64. I have successfully
compiled Xapian on AMD64 using a true 64bit gcc. I just got the Debian
sources from http://www.xapian.org/debian/ and rebuilt the packages,
generating xapian-xxx_0.9.2-1_amd64.deb packages. I checked the binaries
and they're really linked against 64bit libraries:

# ldd /usr/bin/scriptindex
        libxapian.so.8 => /usr/lib/libxapian.so.8 (0x00002aaaaabc1000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00002aaaaae2d000)
        libm.so.6 => /lib/libm.so.6 (0x00002aaaab00a000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaab190000)
        libc.so.6 => /lib/libc.so.6 (0x00002aaaab29c000)
        /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
(0x00002aaaaaaab000)

The g++ -v output:

# g++ -v
Reading specs from /usr/lib/gcc-lib/x86_64-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c
++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
--disable-multilib x86_64-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)

At this moment I made few tests indexing 75019 documents. I have no real
numbers yet, but I could note it's quite faster to index comparing to a
32bit arch. 

Cheers

Christiano








More information about the Xapian-discuss mailing list