qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] compiling qemu-0.7.2 on Solaris express (gcc-3.4.4)


From: Martin Bochnig
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
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20050614

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 via email to

[Prev in Thread] Current Thread [Next in Thread]