Multiple PowerPC BSP build failures

Joel Sherrill joel.sherrill at oarcorp.com
Tue Dec 30 23:20:49 UTC 2014


Hi

Checking the head of gcc, binutils, and newlib, a lot of PowerPC BSPs
end with an error. This is from the icecube. There are lots of Any ideas
on how to
fix this?

powerpc-rtems4.11-gcc --pipe -B../../../../.././lib/
-B../../../../.././icecube/lib/ -specs bsp_specs -qrtems
-DPACKAGE_NAME=\"rtems-c-src-lib-libcpu-powerpc\"
-DPACKAGE_TARNAME=\"rtems-c-src-lib-libcpu-powerpc\"
-DPACKAGE_VERSION=\"4.10.99.0\"
-DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\ 4.10.99.0\"
-DPACKAGE_BUGREPORT=\"https://devel.rtems.org/newticket\"
-DPACKAGE_URL=\"\" -I.
-I../../../../../../../rtems/c/src/lib/libcpu/powerpc  -isystem
../../../../.././icecube/lib/include   -mcpu=603e -mstrict-align -meabi
-msdata=sysv -fno-common -O2 -g -fno-keep-inline-functions -Wall
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
-Wnested-externs -MT mpc6xx/mmu/mpc6xx_mmu_rel-bat.o -MD -MP -MF
mpc6xx/mmu/.deps/mpc6xx_mmu_rel-bat.Tpo -c -o
mpc6xx/mmu/mpc6xx_mmu_rel-bat.o `test -f 'mpc6xx/mmu/bat.c' || echo
'../../../../../../../rtems/c/src/lib/libcpu/powerpc/'`mpc6xx/mmu/bat.c
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:62:36:
error: '#' is not followed by a macro parameter
 #define SETBAT_ASM(batu, batl, u, l)\
                                    ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat0':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:100:1:
note: in expansion of macro 'DECL_SETBAT'
 DECL_SETBAT (dbat0, DBAT0)
 ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat1':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:101:1:
note: in expansion of macro 'DECL_SETBAT'
 DECL_SETBAT (dbat1, DBAT1)
 ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat2':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:102:1:
note: in expansion of macro 'DECL_SETBAT'
 DECL_SETBAT (dbat2, DBAT2)
 ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat3':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:103:1:
note: in expansion of macro 'DECL_SETBAT'
 DECL_SETBAT (dbat3, DBAT3)
 ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat4':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:105:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (dbat4, DBAT4)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat5':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:106:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (dbat5, DBAT5)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat6':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:107:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (dbat6, DBAT6)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setdbat7':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:108:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (dbat7, DBAT7)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat0':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:110:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat0, IBAT0)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat1':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:111:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat1, IBAT1)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat2':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:112:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat2, IBAT2)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat3':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:113:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat3, IBAT3)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat4':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:114:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat4, IBAT4)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat5':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:115:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat5, IBAT5)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat6':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:116:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat6, IBAT6)
        ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c: In
function 'asm_setibat7':
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:91:2:
error: expected ':' or ')' before 'SETBAT_ASM'
  SETBAT_ASM(%0,%1,%2,%3)   \
  ^
../../../../../../../rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:117:8:
note: in expansion of macro 'DECL_SETBAT'
 static DECL_SETBAT (ibat7, IBAT7)
        ^
gmake[5]: *** [mpc6xx/mmu/mpc6xx_mmu_rel-bat.o] Error 1

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the devel mailing list