[edk2] ARMGCC error building ArmPlatformPkg/ArmVExpressPkg

Subject: [edk2] ARMGCC error building ArmPlatformPkg/ArmVExpressPkg

From: Jenny Smith <smithjenny183@gmail.com>

To: edk2-devel@lists.sourceforge.net

Date: 2012-03-21 18:23:28

  • 2012-03-21 18:23:28  Jenny Smith   [edk2] ARMGCC error building ArmPlatformPkg/ArmVExpressPkg
Hi, I'm trying to build the ARM code as described here:

http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/ArmVExpressPkg

I use the latest Sourcery CodeBench 2011.09-82 for ARM EABI compiler:
# arm-none-eabi-gcc --version
arm-none-eabi-gcc (Sourcery CodeBench 2011.09-82) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

However, the build fails with:

arm-none-eabi-gcc: error: unrecognized option '-combine'

Is the compiler too new for the code? What is -combine used for?
Anyone else encountered this?

Here is the full build log:

$ build -a ARM -p ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc -t ARMGCC

WORKSPACE        = /code/arm/uefi/edk2
ECP_SOURCE       = /code/arm/uefi/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /code/arm/uefi/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /code/arm/uefi/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /code/arm/uefi/edk2/BaseTools


Architecture(s)  = ARM
Build target     = DEBUG
Toolchain        = ARMGCC

Active Platform          =
/code/arm/uefi/edk2/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc
Flash Image Definition   =
/code/arm/uefi/edk2/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.fdf

Processing meta-data .. done!
Building ... /code/arm/uefi/edk2/ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf
[ARM]
"arm-none-eabi-gcc" -mthumb -mcpu=cortex-a9 -mfpu=neon
-I/code/arm/uefi/edk2/ArmPlatformPkg/ArmVExpressPkg/Include
-I/code/arm/uefi/edk2/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4
-g -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror
-Wno-missing-braces -Wno-array-bounds -c -include AutoGen.h
-mword-relocations -mlittle-endian -mabi=aapcs -mapcs -fno-short-enums
-save-temps -fsigned-char -ffunction-sections -fdata-sections
-fomit-frame-pointer -combine -O0 -o
/code/arm/uefi/edk2/Build/ArmVExpress-CTA9x4/DEBUG_ARMGCC/ARM/ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm/OUTPUT/./ScanMem64Wrapper.obj
-I/code/arm/uefi/edk2/ArmPkg/Library/BaseMemoryLibStm/Arm
-I/code/arm/uefi/edk2/ArmPkg/Library/BaseMemoryLibStm
-I/code/arm/uefi/edk2/Build/ArmVExpress-CTA9x4/DEBUG_ARMGCC/ARM/ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm/DEBUG
-I/code/arm/uefi/edk2/MdePkg -I/code/arm/uefi/edk2/MdePkg/Include
-I/code/arm/uefi/edk2/MdePkg/Include/Arm
/code/arm/uefi/edk2/ArmPkg/Library/BaseMemoryLibStm/ScanMem64Wrapper.c
arm-none-eabi-gcc: error: unrecognized option '-combine'
make: *** [/code/arm/uefi/edk2/Build/ArmVExpress-CTA9x4/DEBUG_ARMGCC/ARM/ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm/OUTPUT/ScanMem64Wrapper.obj]
Error 1


build.py...
 : error 7000: Failed to execute command
        make --no-print-directory tbuild
[/code/arm/uefi/edk2/Build/ArmVExpress-CTA9x4/DEBUG_ARMGCC/ARM/ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm]


build.py...
 : error 7000: Failed to execute command
        make --no-print-directory tbuild
[/code/arm/uefi/edk2/Build/ArmVExpress-CTA9x4/DEBUG_ARMGCC/ARM/MdePkg/Library/BasePcdLibNull/BasePcdLibNull]


build.py...
 : error F002: Failed to build module
        /code/arm/uefi/edk2/ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf
[ARM, ARMGCC, DEBUG]

- Failed -
Build end time: 10:15:18, Mar.21 2012
Build total time: 00:00:02

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel