This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13781] New: [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2


I tried to compile kopete 0.8beta2 on an x86-64 CPU running SuSE Professional
9.0, and it failed with the following error:

make[4]: Entering directory `/home/cruoho/src/kopete-0.8beta2/kopete/libkopete'
source='kopetepluginmanager.cpp' object='kopetepluginmanager.lo' libtool=yes \
depfile='.deps/kopetepluginmanager.Plo'
tmpdepfile='.deps/kopetepluginmanager.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I.
-I. -I../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII
-DQT_NO_ASCII_CAST -I../../kopete/libkopete -I../../kopete/libkopete/ui
-I../../kopete/libkopete/ui -I../../kopete/libkopete/compat
-I../../kopete/libkopete/compat/kcdialog -I../../kopete/libkopete/private
-I../../kopete/libkopete/ui -I/opt/kde3/include -I/usr/lib/qt3/include
-I/usr/X11R6/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts
-O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION  -c -o kopetepluginmanager.lo `test -f
'kopetepluginmanager.cpp' || echo './'`kopetepluginmanager.cpp
/tmp/cc6r4y77.s: Assembler messages:
/tmp/cc6r4y77.s:2848: Error: suffix or operands invalid for `mov'
make[4]: *** [kopetepluginmanager.lo] Error 1

/tmp/cc6r4y77.s looks like:

        movl    $0, 136(%rsp)
        movl    $0, 140(%rsp)
        movl    $0, 144(%rsp)
#APP
        movl %rcx, %eax   **** This is where the error occurs ****
        movl %esi, %edx
        roll $29, %eax ; roll $3, %eax
        rorl $27, %eax ; rorl $5, %eax
        roll $13, %eax ; roll $19, %eax

The default version of gcc is:

Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man
--libdir=/usr/lib64 --enable-languages=c,c++,f77,objc,java,ada
--disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++
--with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit
x86_64-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)

I have also attempted to compile it from the gcc-3_4-branch and
hammer-3_3-branch, and in both cases the make process stopped in the same place.

Incidentally, it will compile if the -m32 flag is set - it appears to be a code
generation problem only with the x86-64.

-- 
           Summary: [x86-64] Assembler messages: "operands invalid" for mov
                    in kopete 0.8beta2
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: badcataz at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: x86_64-suse-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13781


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]