UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
493 Views
Registered: ‎04-07-2014

Vivado SDK 2018.3 xilffs broken

Dear Xilinx support,

with SDK 2018.3 xilffs 4.0 was added. When use_strfunc is enabled, the BSP compilation fails, because f_gets is declared and defined differently.

ff.c: TCHAR* f_gets (TCHAR* buff, int len,    FIL* fp)

ff.h: TCHAR* f_gets (TCHAR* buff, s32 len, FIL* fp);

ff.c:6103:8: error: conflicting types for 'f_gets'

Please fix this issue.

Kind regards,

Sebastian

 

5 Replies
Xilinx Employee
Xilinx Employee
459 Views
Registered: ‎09-01-2014

Re: Vivado SDK 2018.3 xilffs broken

I set the use_strfunc to 2 from the xilffs tab in "Board Support Package Setting". I don’t see any error.
0 Kudos
Adventurer
Adventurer
445 Views
Registered: ‎04-07-2014

Re: Vivado SDK 2018.3 xilffs broken

Hallo Ritakur,

thanks for your quick reply. This error does not appear with the microblaze compiler toolchain.

These are the messages during my BSP compile, when using the ZC702_hw_platform with xilffs 4.0 and use_strfunc set to 1 or 2:

arm-none-eabi-ar: creating ../../../lib/libxil.a
"Running Make libs in ps7_cortexa9_0/libsrc/xilffs_v4_0/src"
make -C ps7_cortexa9_0/libsrc/xilffs_v4_0/src -s libs  "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nostartfiles -g -Wall -Wextra"
"Compiling XilFFs Library"
ff.c:6103:8: error: conflicting types for 'f_gets'
 TCHAR* f_gets (
        ^~~~~~
In file included from ff.c:59:0:
../../../include/ff.h:335:8: note: previous declaration of 'f_gets' was here
 TCHAR* f_gets (TCHAR* buff, s32 len, FIL* fp);      /* Get a string from the file */
        ^~~~~~
make[1]: *** [Makefile:79: ff.o] Error 1
make[1]: Target 'libs' not remade because of errors.
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/xilffs_v4_0/src/make.libs] Error 2

0 Kudos
Visitor martyo
Visitor
413 Views
Registered: ‎12-12-2018

Re: Vivado SDK 2018.3 xilffs broken

I too am seeing this issue when targeting a ZCU102 with use_strfunc set to either 1 or 2.

Compiling XilFFs Library
ff.c:6103:8: error: conflicting types for 'f_gets'
TCHAR* f_gets (
^~~~~~
In file included from ff.c:59:0:
../../../include/ff.h:335:8: note: previous declaration of 'f_gets' was here
TCHAR* f_gets (TCHAR* buff, s32 len, FIL* fp); /* Get a string from the file */
^~~~~~
make[2]: *** [ff.o] Error 1
make[2]: Target `libs' not remade because of errors.

Adventurer
Adventurer
348 Views
Registered: ‎04-07-2014

Re: Vivado SDK 2018.3 xilffs broken

Hallo Ritakur,

have you been able to reproduce the error?

Your answer is highly appreciated.

Regards,

Sebastian

0 Kudos
Xilinx Employee
Xilinx Employee
337 Views
Registered: ‎09-01-2014

Re: Vivado SDK 2018.3 xilffs broken

I don’t see the error on ZCU102 platform but can see the same error on ZC702 platform.
I will raise this issue to engineering to make it fixed.
0 Kudos