cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
4,182 Views
Registered: ‎01-15-2013

Error in compiling

Hi,

 

I am trying to compile a xilkernel code in sdk 14.6. I get the following error when I compile the project. Could anyone tell me   the cause of this error. Is it because Xilkernel libraries are not included? I have attached the MSS file. 

 

'Building target: gbgfcd.elf'
'Invoking: MicroBlaze gcc linker'
mb-gcc -Wl,-T -Wl,../src/lscript.ld -L../../gbgfcd_bsp/microblaze_0/lib -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v8.50.b -mno-xl-soft-mul -Wl,--no-relax -Wl,--gc-sections -o "gbgfcd.elf" ./src/helloworld.o ./src/platform.o -lxilkernel
c:/xilinx/14.6/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/ld.exe: cannot find -lxilkernel
collect2: ld returned 1 exit status
make: *** [gbgfcd.elf] Error 1

Tags (3)
0 Kudos
3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
4,174 Views
Registered: ‎08-02-2007

Re: Error in compiling

Hi,

 

Can you please check in the SDK settings to make sure that the Software Platform inferred flags is set to "lxilkernel" as shown here in the snapshot attached?

 

--HS.

 

.

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
Capture.PNG
0 Kudos
Highlighted
Adventurer
Adventurer
4,162 Views
Registered: ‎01-15-2013

Re: Error in compiling

Hi,

Thanks for the reply . This configuration is already set by the tool itself. Could there be any other reason?
0 Kudos
Xilinx Employee
Xilinx Employee
4,155 Views
Registered: ‎08-02-2007

Re: Error in compiling

Hi,

 

That is strange to see the error. Can you try to compile the UG758 design to confirm if this is a design specific issue?

 

http://www.xilinx.com/support/documentation/sw_manuals_j/xilinx14_6/ug758.pdf

 

--HS

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos