qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Martin Bochnig <mb1x@gmx.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] compiling qemu-0.7.2 on Solaris express (gcc-3.4.4)
Date: Mon, 05 Sep 2005 18:09:28 +0200	[thread overview]
Message-ID: <431C6DB8.4040809@gmx.com> (raw)
In-Reply-To: <431C6A83.4080808@gmx.com>

Martin Bochnig wrote:

 > Ben Taylor wrote:
 >
 >> Assembler: apic.c
 >> "/var/tmp//ccO3Ifuk.s", line 165 : Illegal mnemonic
 >> "/var/tmp//ccO3Ifuk.s", line 165 : Syntax error
 >> gmake: *** [apic.o] Error 1
 >>
 >>
 >> Ideas?
 >
 >
 > Just use "gnu-as" (often called "gas") instead of SUNW's 
"/usr/ccs/bin/as" and (a patched) 0.7.2 will also compile on x86, not 
only on SPARC Solaris.
 > On Solaris10 or 11_nevada it is not required to custom-build gcc for 
doing so anymore, just use "/usr/sfw/bin/gcc". It will then use gas, but 
still not gnu-ld.
 > However, it works.
 >
 >
 > martin


Well known problem. Solaris/x86 (all versions including 2.10) has a 
broken assembler (if not "broken" at least not 100.00% compatible to GNU)

So one must use the GNU assembler in certain cases.

To make it all work, I also had to build a custom gcc in my old x86 days 
which
was configured "--with-gnu-as" (and perhaps also "--with-gnu-ld", I
don't recall). The procedure is described in the gcc sources.
Today one may just use "/usr/sfw/bin/gcc", NOT 
"/opt/csw/gcc[2|3|4]/bin/gcc" !

Here you see the difference:

$ uname -a
SunOS daedal 5.8 Generic_117351-16 i86pc i386 i86pc
$ isainfo -v
32-bit i386 applications
$ /opt/csw/gcc3/bin/gcc -v
Reading specs from /opt/csw/gcc3/lib/gcc/i386-pc-solaris2.8/3.4.4/specs
Configured with: ../sources/gcc-3.4.4/configure --prefix=/opt/csw/gcc3 
--with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as 
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix 
--enable-shared --enable-multilib --enable-nls --with-included-gettext 
--with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib 
--enable-languages=all
Thread model: posix
gcc version 3.4.4
$ ^D
Connection to daedal closed.
$ ssh zeus
Last login: Mon Sep 5 12:08:03 2005 from login
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ uname -a
SunOS zeus 5.10 Generic i86pc i386 i86pc
$ isainfo -v
64-bit amd64 applications
sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc cx8 tsc
fpu
32-bit i386 applications
sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc cx8 tsc
fpu
$ /usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure 
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ 
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
$

      reply	other threads:[~2005-09-05 16:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-05 13:21 [Qemu-devel] compiling qemu-0.7.2 on Solaris express (gcc-3.4.4) Ben Taylor
2005-09-05 15:55 ` Martin Bochnig
2005-09-05 16:09   ` Martin Bochnig [this message]

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=431C6DB8.4040809@gmx.com \
    --to=mb1x@gmx.com \
    --cc=qemu-devel@nongnu.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 NNTP newsgroup(s).