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!

Showing results for 
Search instead for 
Did you mean: 
Registered: ‎02-12-2018

SDSoC compile error: cannot find -lxilffs



I created a custom hw platform with some platform sample designs. The examples work fine in SDK but when I test them in SDSoC I get the following error: 


Description	Resource	Path	Location	Type
cannot find -lxilffs	test1		 	C/C++ Problem

Description Resource Path Location Type
Common 17-39: 'generate_bsp' failed due to earlier errors. test1 C/C++ Problem

why is this?


thank you

0 Kudos
3 Replies
Scholar hbucher
Registered: ‎03-22-2016

Re: SDSoC compile error: cannot find -lxilffs


Check that the BSP has xilffs included.

The default SDSOC BSP should have xilffs included. That is the SD card library.


vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
0 Kudos
Registered: ‎02-12-2018

Re: SDSoC compile error: cannot find -lxilffs

hello @hbucher,


actually I cannot do that because BSP generation fails due to missing lxilffs:


ERROR: [Hsi 55-1450] Error: running generate_bsp.


Here is the console output: 


10:53:46 **** Incremental Build of configuration Release for project test1 ****
make pre-build main-build 
sdsoc_make_clean Release
Building target: test1.elf
Invoking: SDS++ Linker
sds++ --remote_ip_cache D:/SDSoC/ip_cache -o "test1.elf"  ./src/helloworld.o ./src/platform.o    -dmclkid 0  -mno-boot-files  -sds-sys-config config0_0 -sds-proc a9_0 -sds-pf "D:\SDSoC\platforms\MY_PLATFORM"
Validating feature ap_sdsoc
License available for feature ap_sdsoc
Removing implementation files from previous run
Analyzing object files
... D:/SDSoC/test1/Release/src/helloworld.o
... D:/SDSoC/test1/Release/src/platform.o
Generating data motion network

D:\SDSoC\test1\Release>C:\Xilinx\SDx\2017.4\llvm-clang\win64\llvm\bin\llvm-link.exe -o D:/SDSoC/test1/Release/_sds/.llvm/sds_all.o D:/SDSoC/test1/Release/_sds/.llvm/./src/helloworld.s D:/SDSoC/test1/Release/_sds/.llvm/./src/platform.s 

D:\SDSoC\test1\Release>exit /b 0 

D:\SDSoC\test1\Release\_sds\.llvm>opt -disable-output -mem2reg -basicaa -XidanePass --platform MY_PLATFORM --dmclkid 0 --repo D:/SDSoC/test1/Release/_sds/.cdb/xd_ip_db.xml --dmdb C:/Xilinx/SDx/2017.4/data/DM.db -os standalone -processor cortex-a9  0<sds_all.o 
INFO: [DMAnalysis 83-4494] Analyzing hardware accelerators...
INFO: [DMAnalysis 83-4496] No hardware accelerators specified.
Skipping block diagram (BD), address map, port information and device registration for partition 0
Rewrite caller functions
Prepare hardware access API functions
Create accelerator stub functions
Compile hardware access API functions
Compile accelerator stub functions
Enable generation of hardware programming files
Software tracing enabled
Compile hardware access API functions
Create board support package library
ERROR: [#UNDEF] Running Make Failed
ERROR: [Hsi 55-1444] Error(s) while running make
ERROR: [Hsi 55-1450] Error: running generate_bsp.
generate_bsp: Time (s): cpu = 00:00:01 ; elapsed = 00:00:20 . Memory (MB): peak = 154.402 ; gain = 3.863
ERROR: [Common 17-39] 'generate_bsp' failed due to earlier errors.

    while executing
"hsi::generate_bsp -dir D:/SDSoC/test1/Release/_sds/swstubs/standalone_bsp -compile"
    (file "D:/SDSoC/test1/Release/_sds/swstubs/standalone_bsp/create_bsp_post.tcl" line 7)
Link application ELF file
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lxilffs
collect2.exe: error: ld returned 1 exit status
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'arm-none-eabi-g++ -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -Wl,--build-id=none -specs=C:/Xilinx/SDx/2017.4/data/toolchain/aarch32-none.spec -Wl,-T -Wl,D:/SDSoC/platforms/MY_PLATFORM/sw/config0_0/lscript.ld   D:/SDSoC/test1/Release/src/helloworld.o D:/SDSoC/test1/Release/src/platform.o D:/SDSoC/test1/Release/_sds/swstubs/portinfo.o  -L D:/SDSoC/test1/Release/_sds/swstubs/standalone_bsp/ps7_cortexa9_0/lib  -L C:/Xilinx/SDx/2017.4/target/aarch32-none/lib -LD:/SDSoC/test1/Release/_sds/swstubs -Wl,--start-group -lxilffs -lgcc -lc -lstdc++ -Wl,--end-group -Wl,--start-group   -lxilffs -lxil  -lgcc -lc  -lsds_lib -lxlnk_stub -lgcc -lc -Wl,--end-group -o D:/SDSoC/test1/Release/_sds/swstubs/test1.elf'
sds++ log file saved as D:/SDSoC/test1/Release/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed

make: *** [test1.elf] Fehler 1

10:54:30 Build Finished (took 43s.347ms)


0 Kudos
Newbie duclongle
Registered: ‎07-10-2018

Re: SDSoC compile error: cannot find -lxilffs



You can easy to build library for xilffs from this website http://www.wiki.xilinx.com/xilffs

And after that include your own lib xilffs into your project.




0 Kudos