qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] 64-bit toolchain for Solaris 10 on amd64?
@ 2006-11-07 17:11 Leonardo Reiter
  0 siblings, 0 replies; 5+ messages in thread
From: Leonardo Reiter @ 2006-11-07 17:11 UTC (permalink / raw)
  To: QEMU Developers Mailing List

Hello,

I apologize in advance if this was already discussed, but I cannot
find any information on it.  I am trying to compile QEMU (CVS) on a
64-bit Solaris 10 host (amd64), as a 64-bit binary.  This is
"official" Sun Solaris 10, not OpenSolaris.  I used the existing
"port" from the Open Solaris project as a guide.  I have also tried to
compile that one on its own without modifications, and despite having
the blastwave toolchain installed as suggested, the gcc 3.4.5 still
does not support -m64.  For example, when compiling a simple test
program (with just an empty main() function):

$ /opt/csw/gcc3/bin/gcc -m64 /tmp/test.c
/tmp/test.c:1: sorry, unimplemented: 64-bit mode not compiled in

this is also of course true with the default gcc that comes with
Solaris, the one from sunfreeware, as well as any GCC that I can
possibly compile myself (even trying to enable bi-arch support, but
with dubious understanding of this.)

I understand that the Open Solaris project has binaries already
compiled, but I need to build QEMU from source on my own on this
platform, and it has to be a 64-bit binary.

Can someone point out where the 64-bit toolchains (gcc mainly) can be
found, or if not, any special trick to get the blastwave package to
install whatever 64-bit support is needed, if any?  Obviously the QEMU
binaries were built somehow by the Open Solaris project, but it's not
clear what tool chain they used.  The blastwave compiler they refer to
in the configure script of the package does not support -m64 as
expected, so I'm not sure how/what they used to build this.
Alternatively, some hints on building my own gcc (i.e. what configure
options to pass) would help, even if it means adding 3rd-party
patches.  I believe there is a SunSolve patch for gcc but was hoping
to find a pre-built solution if possible.

note that I am not concerned about the host fixes needed to the QEMU
code itself, just the toolchain issues.  In fact, I'd be delighted to
be able to compile the source from this Open Solaris tarball on a Sun
Solaris 10 amd64 host:

http://opensolaris.org/os/project/qemu/downloads/qemu-0.8.2-solaris_src_20061013fri.tar.bz2

This tarball already has the changes needed to get QEMU to compile on
a Solaris host, but again, it assumes a gcc toolchain that supports
-m64, which I cannot find.

Thank you very much in advance,

Leo Reiter

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] 64-bit toolchain for Solaris 10 on amd64?
@ 2006-11-09 17:49 Eric Lowe
  2006-11-09 17:56 ` Leonardo E. Reiter
  2006-11-09 18:04 ` Leonardo Reiter
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Lowe @ 2006-11-09 17:49 UTC (permalink / raw)
  To: qemu-devel

> the blastwave toolchain installed as suggested, the gcc 3.4.5 still
> does not support -m64.  For example, when compiling a simple test
> program (with just an empty main() function):

$ /opt/csw/gcc3/bin/gcc -m64 /tmp/test.c
/tmp/test.c:1: sorry, unimplemented: 64-bit mode not compiled in

Hmph. I would suggest you take this up with the maintainer of the gcc packages on Blastwave.

> this is also of course true with the default gcc that comes with
> Solaris, the one from sunfreeware, as well as any GCC that I can

I do not know if the latest S10 update release gcc in /usr/sfw/bin has all of the fixes needed to compile QEMU correctly, but I do know that compiler does have 64-bit support.

> I understand that the Open Solaris project has binaries already
> compiled, but I need to build QEMU from source on my own on this
> platform, and it has to be a 64-bit binary.

The binaries I built originally were built using the /usr/sfw/bin/gcc on OpenSolaris build 46... no magic. I do not recall which toolchain was used by Martin to build the packages. Hopefully Martin is watching this and will respond on what he did to build the packages. ;)

- Eric






 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] 64-bit toolchain for Solaris 10 on amd64?
  2006-11-09 17:49 Eric Lowe
@ 2006-11-09 17:56 ` Leonardo E. Reiter
  2006-11-09 18:04 ` Leonardo Reiter
  1 sibling, 0 replies; 5+ messages in thread
From: Leonardo E. Reiter @ 2006-11-09 17:56 UTC (permalink / raw)
  To: Eric Lowe, qemu-devel

Fantastic, thank you.  I did indeed try the sfw gcc and it compiles
okay with -m64, but it does not use GNU ld and has problems linking.
I need to revisit that because I think there is a solution that I am
missing.  I also did send email to the blastwave maintainers but have
not received a response yet.

Thanks again for your help,

Leo Reiter

On 11/9/06, Eric Lowe <elowe8@yahoo.com> wrote:
> > the blastwave toolchain installed as suggested, the gcc 3.4.5 still
> > does not support -m64.  For example, when compiling a simple test
> > program (with just an empty main() function):
>
> $ /opt/csw/gcc3/bin/gcc -m64 /tmp/test.c
> /tmp/test.c:1: sorry, unimplemented: 64-bit mode not compiled in
>
> Hmph. I would suggest you take this up with the maintainer of the gcc packages on Blastwave.
>
> > this is also of course true with the default gcc that comes with
> > Solaris, the one from sunfreeware, as well as any GCC that I can
>
> I do not know if the latest S10 update release gcc in /usr/sfw/bin has all of the fixes needed to compile QEMU correctly, but I do know that compiler does have 64-bit support.
>
> > I understand that the Open Solaris project has binaries already
> > compiled, but I need to build QEMU from source on my own on this
> > platform, and it has to be a 64-bit binary.
>
> The binaries I built originally were built using the /usr/sfw/bin/gcc on OpenSolaris build 46... no magic. I do not recall which toolchain was used by Martin to build the packages. Hopefully Martin is watching this and will respond on what he did to build the packages. ;)
>
> - Eric
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Want to start your own business?
> Learn how on Yahoo! Small Business.
> http://smallbusiness.yahoo.com/r-index
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] 64-bit toolchain for Solaris 10 on amd64?
  2006-11-09 17:49 Eric Lowe
  2006-11-09 17:56 ` Leonardo E. Reiter
@ 2006-11-09 18:04 ` Leonardo Reiter
  1 sibling, 0 replies; 5+ messages in thread
From: Leonardo Reiter @ 2006-11-09 18:04 UTC (permalink / raw)
  To: qemu-devel

Fantastic, thank you.  I did indeed try the sfw gcc and it compiles
okay with -m64, but it does not use GNU ld and has problems linking.
I need to revisit that because I think there is a solution that I am
missing.  I also did send email to the blastwave maintainers but have
not received a response yet.

Thanks again for your help,

Leo Reiter

On 11/9/06, Eric Lowe <elowe8@yahoo.com> wrote:
> > the blastwave toolchain installed as suggested, the gcc 3.4.5 still
> > does not support -m64.  For example, when compiling a simple test
> > program (with just an empty main() function):
>
> $ /opt/csw/gcc3/bin/gcc -m64 /tmp/test.c
> /tmp/test.c:1: sorry, unimplemented: 64-bit mode not compiled in
>
> Hmph. I would suggest you take this up with the maintainer of the gcc packages on Blastwave.
>
> > this is also of course true with the default gcc that comes with
> > Solaris, the one from sunfreeware, as well as any GCC that I can
>
> I do not know if the latest S10 update release gcc in /usr/sfw/bin has all of the fixes needed to compile QEMU correctly, but I do know that compiler does have 64-bit support.
>
> > I understand that the Open Solaris project has binaries already
> > compiled, but I need to build QEMU from source on my own on this
> > platform, and it has to be a 64-bit binary.
>
> The binaries I built originally were built using the /usr/sfw/bin/gcc on OpenSolaris build 46... no magic. I do not recall which toolchain was used by Martin to build the packages. Hopefully Martin is watching this and will respond on what he did to build the packages. ;)
>
> - Eric
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Want to start your own business?
> Learn how on Yahoo! Small Business.
> http://smallbusiness.yahoo.com/r-index
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] 64-bit toolchain for Solaris 10 on amd64?
@ 2006-11-10 14:09 Jürgen Zimmermann
  0 siblings, 0 replies; 5+ messages in thread
From: Jürgen Zimmermann @ 2006-11-10 14:09 UTC (permalink / raw)
  To: qemu-devel

Hello,
I did built the 64-bit binaries on Solaris 10 with the OpenSolaris (Nevada) /usr/sfw/bin/gcc-stuff.
However, I did not use the gcc binaries from nevada but pulled the (heavily modified) sources 
out of the GNU's GCC CVS (csl-sol210-3_4-branch) and bootstrapped gcc-3.4.3 by myself.
That worked.

Currently I'm looking into getting only the 'multilib' support into gcc-3.4.6 for Solaris 10 (and onwards), 
but that's not that easy as I hit an internal compiler error during bootstrap there.

Regards,
  Juergen
_______________________________________________________________________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-10 14:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-10 14:09 [Qemu-devel] 64-bit toolchain for Solaris 10 on amd64? Jürgen Zimmermann
  -- strict thread matches above, loose matches on Subject: below --
2006-11-09 17:49 Eric Lowe
2006-11-09 17:56 ` Leonardo E. Reiter
2006-11-09 18:04 ` Leonardo Reiter
2006-11-07 17:11 Leonardo Reiter

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).