cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rsclancy
Contributor
Contributor
10,818 Views
Registered: ‎11-25-2013

uBlaze, FreeRTOS 8.2.3, lwIP, SDK 215.4, BSP build failing

Jump to solution

Using the design from the FreeRTOS directory: 

 

FreeRTOS\FreeRTOSV8.2.3\FreeRTOS\Demo\MicroBlaze_Kintex7_EthernetLite

 

I am unable to build a BSP using FreeRTOS 8.2.3, with lwIP AND the Socket API selected.

I get the same build errors in my own design, but reference the FreeRTOS demo for the general audience. Listed below is the relevant part of the console log with the errors:

 

"Running Make libs in microblaze_0/libsrc/lwip141_v1_3/src"
make -C microblaze_0/libsrc/lwip141_v1_3/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g"
"Compiling lwip src and adapter files"
In file included from contrib/ports/xilinx/sys_arch.c:472:0:
../../../include/lwip/sys.h:107:58: error: expected declaration specifiers or '...' before numeric constant
#define sys_mutex_new(mutex) sys_sem_new(mutex, 1)
^
contrib/ports/xilinx/sys_arch.c:874:7: note: in expansion of macro 'sys_mutex_new'
err_t sys_mutex_new( sys_mutex_t *pxMutex )
^
../../../include/lwip/sys.h:159:67: error: expected declaration specifiers or '...' before numeric constant
#define sys_sem_wait(sem) sys_arch_sem_wait(sem, 0)
^
../../../include/lwip/sys.h:108:39: note: in expansion of macro 'sys_sem_wait'
#define sys_mutex_lock(mutex) sys_sem_wait(mutex)
^
contrib/ports/xilinx/sys_arch.c:896:6: note: in expansion of macro 'sys_mutex_lock'
void sys_mutex_lock( sys_mutex_t *pxMutex )
^
contrib/ports/xilinx/sys_arch.c:941:6: error: redefinition of 'sys_sem_signal'
void sys_sem_signal( sys_sem_t *pxSemaphore )
^
In file included from contrib/ports/xilinx/sys_arch.c:472:0:
../../../include/lwip/sys.h:109:39: note: previous definition of 'sys_sem_signal' was here
#define sys_mutex_unlock(mutex) sys_sem_signal(mutex)
^
contrib/ports/xilinx/sys_arch.c:911:6: note: in expansion of macro 'sys_mutex_unlock'
void sys_mutex_unlock(sys_mutex_t *pxMutex )
^
contrib/ports/xilinx/sys_arch.c:966:6: error: redefinition of 'sys_sem_free'
void sys_sem_free( sys_sem_t *pxSemaphore )
^
In file included from contrib/ports/xilinx/sys_arch.c:472:0:
../../../include/lwip/sys.h:110:39: note: previous definition of 'sys_sem_free' was here
#define sys_mutex_free(mutex) sys_sem_free(mutex)
^
contrib/ports/xilinx/sys_arch.c:926:6: note: in expansion of macro 'sys_mutex_free'
void sys_mutex_free( sys_mutex_t *pxMutex )
^
make[1]: *** [sys_arch.o] Error 1
contrib/ports/xilinx/netif/xemacliteif.c:55:17: fatal error: xmk.h: No such file or directory
#include "xmk.h"
^
compilation terminated.
make[1]: *** [xemacliteif.o] Error 1
make[1]: Target `libs' not remade because of errors.
make: *** [microblaze_0/libsrc/lwip141_v1_3/src/make.libs] Error 2
"Running Make libs in microblaze_0/libsrc/tmrctr_v4_0/src"
make -C microblaze_0/libsrc/tmrctr_v4_0/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g"
"Compiling tmrctr"
"Running Make libs in microblaze_0/libsrc/uartlite_v3_1/src"
make -C microblaze_0/libsrc/uartlite_v3_1/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g"
"Compiling uartlite"
make: Target `all' not remade because of errors.

14:15:21 Build Finished (took 10s.917ms)

 

 

0 Kudos
1 Solution
1 Reply