Mitul
2005-May-04 02:47 UTC
[Xapian-discuss] Suffix or operands invalid for 'mov' on x86_64
Hello, I have the following: AMD 64 2800 running Fedora Core 3. Linux localhost 2.6.9-1.667 #1 Tue Nov 2 14:50:10 EST 2004 x86_64 x86_64 x86_64 GNU/Linux gcc-3.4.2-6.fc3 binutils-2.15.92.0.2-5 I'm trying to compile xapian-core on my machine and am receiving the following errors under the testsuite compile: if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I../include -I../include -Wall -W -Wno-long-long -fno-gnu-keywords -g -O -MT testsuite.lo -MD -MP -MF ".deps/testsuite.Tpo" -c -o testsuite.lo testsuite.cc; \ then mv -f ".deps/testsuite.Tpo" ".deps/testsuite.Plo"; else rm -f ".deps/testsuite.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I../include -I../include -Wall -W -Wno-long-long -fno-gnu-keywords -g -O -MT testsuite.lo -MD -MP -MF .deps/testsuite.Tpo -c testsuite.cc -fPIC -DPIC -o .libs/testsuite.o testsuite.cc: In member function `test_driver::test_result test_driver::runtest(const test_desc*)': testsuite.cc:207: warning: cast from pointer to integer of different size testsuite.cc:207: warning: cast from pointer to integer of different size testsuite.cc:207: warning: cast from pointer to integer of different size testsuite.cc:207: warning: cast from pointer to integer of different size testsuite.cc:265: warning: cast from pointer to integer of different size testsuite.cc:265: warning: cast from pointer to integer of different size testsuite.cc:265: warning: cast from pointer to integer of different size testsuite.cc:265: warning: cast from pointer to integer of different size /tmp/ccBSemNc.s: Assembler messages: /tmp/ccBSemNc.s:171: Error: suffix or operands invalid for `mov' /tmp/ccBSemNc.s:235: Error: suffix or operands invalid for `mov' /tmp/ccBSemNc.s:2230: Error: suffix or operands invalid for `mov' /tmp/ccBSemNc.s:2250: Error: suffix or operands invalid for `mov' /tmp/ccBSemNc.s:2274: Error: suffix or operands invalid for `mov' /tmp/ccBSemNc.s:3029: Error: suffix or operands invalid for `mov' /tmp/ccBSemNc.s:3047: Error: suffix or operands invalid for `mov' /tmp/ccBSemNc.s:3075: Error: suffix or operands invalid for `mov' /tmp/ccBSemNc.s:9332: Error: suffix or operands invalid for `mov' I've googled for the same with no real answers other than to remove the -O2 and replace with -O or checking the version of binutils...however, nothing relavant. Any help is appreciated. Thanks, Mitul
Olly Betts
2005-May-04 03:00 UTC
[Xapian-discuss] Suffix or operands invalid for 'mov' on x86_64
On Wed, May 04, 2005 at 01:31:15AM +0000, Mitul wrote:> Linux localhost 2.6.9-1.667 #1 Tue Nov 2 14:50:10 EST 2004 x86_64 x86_64 x86_64[snip]> testsuite.cc: In member function `test_driver::test_result > test_driver::runtest(const test_desc*)': > testsuite.cc:207: warning: cast from pointer to integer of different sizeThe problem you've hit is that xapian-core's configure has detected valgrind, but this valgrind is for 32 bit binaries while Xapian is being built with a 64 bit compiler. The warnings and errors are from macros in valgrind.h. This is fixed in the sources in SVN, so 0.9.0 won't have this problem. The easiest workaround for 0.8.5 and earlier is force configure to ignore valgrind, like so: ./configure VALGRIND Cheers, Olly