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!

AR# 54143

Kintex-7 FPGA Embedded Kit - Compiling webserver application cannot find “lmfsimage”


The Kintex-7 FPGA Embedded Kit design files compile "out of the box". However, when I attempt to rebuild the Webserver application for KC705 Embedded Kit, the following error occurs:
"Building target: board_test_app_Webserver.elf
 Invoking: MicroBlaze gcc linker 
 mb-gcc -Wl,--no-relax -L../../memfs -Wl,-T -Wl,../src/lscript.ld -L../../board_test_app_Webserver_platform/microblaze_0/
lib -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v8.40.b -mno-xl-soft-mul 
 -o"board_test_app_Webserver.elf"  ./src/bram_mem_test_example.o ./src/ddrx_mem_test_example.o ./src/
dispatch.o ./src/example_simple_intr.o ./src/hello_flash.o ./src/hello_uart.o ./src/http_response.o  ./src/
lcd_complete.o ./src/lcd_simple.o ./src/main.o ./src/menu.o ./src/platform.o ./src/platform_fs.o ./src/
platform_gpio.o ./src/push_button_test.o ./src/rotary_simple.o ./src/sd_funcs.o ./src/sd_test.o
 ./src/web_utils.o ./src/webserver.o ./src/xaxiethernet_example_intr_sgdma.o ./src/
xaxiethernet_example_util.o ./src/xgpio_tapp_example.o ./src/xiic_eeprom_example.o ./
 ./src/xsysmon_intr_example.o ./src/xsysmon_single_ch_intr_example.o ./src/xtmrctr_intr_example.o   -lmfsimage -lxilkernel -Wl,--start-group,-lxil,-llwip4,-lgcc,-lc,--end-group -lxilflash
 c:/xilinx/14.3/ise_ds/edk/gnu/microblaze/nt64/bin/../lib/gcc/microblaze-xilinx-elf/4.6.2/../../../../microblaze-xilinx-elf/bin/ld.exe: cannot find -lmfsimage
 collect2: ld returned 1 exit status
 make: *** [board_test_app_Webserver.elf] Error 1" 

How can I resolve this issue?


If this error is seen when recompiling, the library search path is not set to the memfs folder. To resolve this, follow these steps in SDK:

  1. Right-click over the board_test_app_Webserver project > Project settings.
  2. Go to Settings -> Microblaze gcc linker -> Libraries.
  3. The -l switch should point to "mfsimage".
  4. The -L switch should point to the memfs folder location.
  5. Click OK. This will compile the webserver application without any errors.
AR# 54143
Date Created 02/05/2013
Last Updated 03/25/2013
Status Active
Type General Article
Boards & Kits
  • Kintex-7 FPGA Embedded Kit