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

Re: [MiNT] gcc-4.2.2-mint-20080127



Keith Scroggins wrote:
Here is a sample of an error:

sound/libsound.a(ym2612.o): In function `MidiDriver_Emulated::MidiDriver_Emulated(Audio::Mixer*)': /home/Keith/scummvm-build/../scummvm/sound/softsynth/emumidi.h:60: multiple definition of `non-virtual thunk to MidiDriver_Emulated::open()'
sound/libsound.a(adlib.o):
/home/Keith/scummvm-build/../scummvm/sound/softsynth/emumidi.h:60: first defined here

After several days of investigation, I finally found the cause of the problem ! It is a GCC regression from 4.1 to 4.2.
I posted a detailed bug report here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35067

A workaround is to put the following line at the end of the file gcc/config/m68k/mint.h:
#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)

It seems to be OK, but I'm not 100% sure. I may include it in my next GCC patch.

--
Vincent Rivière