VirtualBox

Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#936 closed defect (fixed)

[PATCH] Fix compilation with gcc 4.3

Reported by: İsmail Dönmez Owned by: Frank Mehnert
Component: host support Version: VirtualBox 1.5.2
Keywords: Cc:
Guest type: other Host type: Linux

Description

Patch taken from OpenSuse.

Attachments (2)

gcc-4.3.patch (3.0 KB ) - added by İsmail Dönmez 17 years ago.
use-o3-to-workaround-gcc-ice.diff (845 bytes ) - added by Dirk Mueller 17 years ago.
patch for spill error

Download all attachments as: .zip

Change History (11)

by İsmail Dönmez, 17 years ago

Attachment: gcc-4.3.patch added

comment:1 by Frank Mehnert, 17 years ago

Owner: set to Frank Mehnert
Status: newassigned

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.

comment:2 by İsmail Dönmez, 17 years ago

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.

comment:3 by Frank Mehnert, 17 years ago

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.

comment:4 by İsmail Dönmez, 17 years ago

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

comment:5 by Dirk Mueller, 17 years ago

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

by Dirk Mueller, 17 years ago

patch for spill error

comment:6 by Frank Mehnert, 17 years ago

Thanks for this update!

comment:7 by Frank Mehnert, 17 years ago

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.

comment:8 by Frank Mehnert, 16 years ago

Component: otherhost support
Host type: otherLinux

comment:9 by Frank Mehnert, 16 years ago

Resolution: fixed
Status: assignedclosed

Finally obsolete since release 2.1.0.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette