VirtualBox

Ticket #936 (assigned defect)

Opened 8 months ago

Last modified 2 weeks ago

[PATCH] Fix compilation with gcc 4.3

Reported by: cartman Assigned to: frank (accepted)
Priority: major Component: host support
Version: VirtualBox 1.5.2 Keywords:
Cc: Guest type: other
Host type: Linux

Description

Patch taken from OpenSuse?.

Attachments

gcc-4.3.patch (3.0 kB) - added by cartman on 12/02/07 13:14:07.
use-o3-to-workaround-gcc-ice.diff (0.8 kB) - added by dmueller on 02/12/08 19:44:56.
patch for spill error

Change History

12/02/07 13:14:07 changed by cartman

  • attachment gcc-4.3.patch added.

12/03/07 10:24:44 changed by frank

  • owner set to frank.
  • status changed from new to assigned.

We have fixed some of these problems ourself, some are still to do. Note that we don't support gcc-4.3 yet. That is VBox compiled with this compiler is not supposed to work well. We will not support gcc-4.3 before it is finally released. Currently I'm observing problems in the recompiler.

12/07/07 11:27:48 changed by cartman

If you find any problems on the compiler side please report them, GCC 4.3 will soon go into regression-only mode and be released as stable from there.

12/07/07 11:34:01 changed by frank

The problem we have with gcc-4.3 is most probably the hacky way the QEmu stuff (the recompiler/ directory was originally taken from Qemu and extended) uses the assembler output of gcc. For instance, gcc-4.0 is known to not work as well. This is less a problem of gcc than of using the generated code.

12/08/07 17:24:08 changed by cartman

Ah qemu problems I see, upstream qemu still doesn't support gcc4 let alone gcc 4.3.

02/12/08 19:44:25 changed by dmueller

changing -O3 seems to fix the helper.c compiler ICE with gcc 4.3, see gcc.gnu.org/bugzilla/show_bug.cgi?id=35135

02/12/08 19:44:56 changed by dmueller

  • attachment use-o3-to-workaround-gcc-ice.diff added.

patch for spill error

02/12/08 20:17:14 changed by frank

Thanks for this update!

05/07/08 15:30:33 changed by frank

Note that we fixed the source a little bit different. But the file op.c still requires gcc <= 4.2. The configure script detects this correctly and asks for a compatibility compiler.

07/10/08 08:39:12 changed by frank

  • host changed from other to Linux.
  • component changed from other to host support.

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy