public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Joe Pallas <pallas@cs.stanford.edu>
To: gcc-help@gcc.gnu.org
Subject: Problem building gcc4.2.2 on Solaris 10 for x64
Date: Fri, 01 Feb 2008 23:08:00 -0000	[thread overview]
Message-ID: <92BF0C71-DF59-4E3D-8483-FC287F648006@cs.stanford.edu> (raw)

I'm trying to build gcc4.2.2 on Solaris 10 on an AMD machine.  I'm  
using the recommended configure options for as and ld (I have -- 
enable-languages=c,c++ --with-gnu-as --with-as=/usr/local/bin/as -- 
without-gnu-ld --with-ld=/usr/ccs/bin/ld) and I get this scary error  
when it tries to build amd64/gmon.o:

/local/pallas/gcc422build/./gcc/xgcc -B/local/pallas/gcc422build/./ 
gcc/ -B/home/pallas/gcc422/i386-pc-solaris2.10/bin/ -B/home/pallas/ 
gcc422/i386-pc-solaris2.10/lib/ -isystem /home/pallas/gcc422/i386-pc- 
solaris2.10/include -isystem /home/pallas/gcc422/i386-pc-solaris2.10/ 
sys-include -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict- 
prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./ 
include  -I. -Iamd64 -I/home/pallas/tools/gcc-4.2.2/gcc -I/home/ 
pallas/tools/gcc-4.2.2/gcc/amd64 -I/home/pallas/tools/gcc-4.2.2/ 
gcc/../include -I./../intl -I/home/pallas/tools/gcc-4.2.2/gcc/../ 
libcpp/include  -I/home/pallas/tools/gcc-4.2.2/gcc/../libdecnumber - 
I../libdecnumber -m64 \
         -c /home/pallas/tools/gcc-4.2.2/gcc/config/i386/gmon-sol2.c - 
o amd64/gmon.o
/var/tmp//cc3019Gz.s: Assembler messages:
/var/tmp//cc3019Gz.s:291: Error: invalid character '.' in mnemonic
gmake[5]: *** [amd64/gmon.o] Error 1

The reason I find this scary is that it looks as though my new gcc  
has generated output that the assembler doesn't understand.   
Compiling with -v shows:

  /usr/local/bin/as -V -Qy --64 -s -o amd64/gmon.o /var/tmp//ccjLW7Z8.s
GNU assembler version 2.16.1 (i386-pc-solaris2.10) using BFD version  
2.16.1
/var/tmp//ccjLW7Z8.s: Assembler messages:
/var/tmp//ccjLW7Z8.s:291: Error: invalid character '.' in mnemonic

So my assembler is 2.15 or later, as required.  Is there actually  
some other requirement?

The troublesome assembly is:

    289          movl    $65534, %eax
    290          cmpq    $65535, %rdx
    291          cmovq.l tolimit(%rip), %rax
    292          movq    %rax, tolimit(%rip)

I'm not familiar with the amd64 mnemonics, so I don't know if this  
ought to be legal or not.

Any help?
Thanks.
joe

                 reply	other threads:[~2008-02-01 23:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=92BF0C71-DF59-4E3D-8483-FC287F648006@cs.stanford.edu \
    --to=pallas@cs.stanford.edu \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).