cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
2,382 Views
Registered: ‎06-05-2009

multiple definitions of __interrupt_handler

Hi,

it seems  this is an old problem, but I didn't find the answer here.  I am using ISE 10.1

 

The problem appears when I linked in  -lxilkernel, and here is compiler output:

 

Building target: PIB_B.elf
mb-gcc -o PIB_B.elf Idle.o IntHandler.o LCD.o SofTimer.o Uart.o Util.o main.o test_gpio.o   -lxilkernel -mno-xl-soft-mul -mxl-pattern-compare -mcpu=v7.10.d  -L../../microblaze_0_sw_platform/microblaze_0/lib -xl-mode-executable -xl-mode-executable   -T../PIB_B.ld -Dxilinx -lxilkernel -lxil -lxilkernel
../../microblaze_0_sw_platform/microblaze_0/lib/libxil.a(microblaze_interrupt_handler.o): In function `__interrupt_handler':
/cygdrive/c/Software/Xilinx/eval_interrupt/processor_subsystem/SDK_projects/microblaze_0_sw_platform/microblaze_0/libsrc/standalone_v2_00_a/src/microblaze_interrupt_handler.c:79: multiple definition of `_interrupt_handler'
../../microblaze_0_sw_platform/microblaze_0/lib/libxilkernel.a(entry.o):/cygdrive/c/Software/Xilinx/eval_interrupt/processor_subsystem/SDK_projects/microblaze_0_sw_platform/microblaze_0/libsrc/xilkernel_v4_00_a/src/src/arch/microblaze/entry.S:348: first defined here
/cygdrive/c/Xilinx/10.1/EDK/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.1.1/../../../../microblaze-xilinx-elf/bin/ld.real: Disabling relaxation: it will not work with multiple definitions
collect2: ld returned 1 exit status
make: *** [PIB_B.elf] Error 1
Build complete for project PIB_B

 

 Anyone has any ideas?

 

fchpj

0 Kudos