[Edk2 Dev] Compiling MDE with gcc 4.0.1

Subject: [Edk2 Dev] Compiling MDE with gcc 4.0.1

From: Andrew Fish <afish@apple.com>

To: dev@edk2.tianocore.org

Date: 2008-03-09 18:59:07

  • 2008-03-09 18:59:07  Andrew Fish   [Edk2 Dev] Compiling MDE with gcc 4.0.1
I was experimenting with compiling the EDK II with the Apple Leopard compiler and I've found two issues compiling the MDE Pkg.

1) IfrSupportLIb/R8Lib.c in function R8_HexStringToBuf() I get a warning that Digit is used with out being initialized. If I set Digit = 0; at the beginning of the function this goes away.
2) In the BaseLib Thunk16.S I get the following error:
101:invalid character '(' in mnemonic

    addr16  pushl 36(%si)

I worked around the assembler issue by commenting out Thunk16.S in the inf file. 


Andrew Fish
Work iPhone: 360-259-7562