#2259 closed defect (fixed)

SPARC BSPs (leon2, leon3, and ngmp) fail to build

Reported by: Joel Sherrill Owned by: Daniel Hellstrom
Priority: normal Milestone: 4.11
Component: bsps Version: 4.11
Severity: blocker Keywords:
Cc: Blocked By:
Blocking:

Description

sparc-rtems4.11-gcc --pipe -B../../../../../.././lib/ -B../../../../../.././leon2/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -isystem ../../../../../.././leon2/lib/include -mcpu=cypress -msoft-float -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT grspw_pci.o -MD -MP -MF .deps/grspw_pci.Tpo -c -o grspw_pci.o test -f '../../sparc/shared/spw/grspw_pci.c' || echo '../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/'../../sparc/shared/spw/grspw_pci.c
../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/spw/grspw.c: In function 'grspw_hw_init':
../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/spw/grspw.c:1382:9: warning: implicit declaration of function 'rtems_heap_allocate_aligned_with_boundry' [-Wimplicit-function-declaration]

pDev->rx = (SPACEWIRE_RXBD *) rtems_heap_allocate_aligned_with_boundry( SPACEWIRE_BDTABLE_SIZE, 1024, 0 );

../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/spw/grspw.c:1382:9: warning: nested extern declaration of 'rtems_heap_allocate_aligned_with_boundry' [-Wnested-externs]
../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/spw/grspw.c: In function 'grspw_hw_reset':
../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/spw/grspw.c:1426:22: error: 'pDec' undeclared (first use in this function)

free(pDec->tx);


../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/spw/grspw.c:1426:22: note: each undeclared identifier is reported only once for each function it appears in
gmake[6]: * [grspw.o] Error 1

Change History (3)

comment:1 Changed on Feb 10, 2015 at 6:17:05 PM by Joel Sherrill

Severity: normalblocker

comment:2 Changed on Feb 10, 2015 at 6:19:01 PM by Joel Sherrill

Component: Generalbsps

comment:3 Changed on Feb 12, 2015 at 8:09:12 AM by Daniel Hellstrom

Resolution: fixed
Status: newclosed

DanielC's fix has now been pushed to master.

Note: See TracTickets for help on using tickets.