[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Test application compile error



Hi Pavel

If you are doing out of tree compile. Try set "CC = $(ROOTDIR)/tools/ucfront/ucfront mb-gcc" see if this fix your problem.

p.s
I don't have "AR=mb-ar" and  "CFLAGS = -mno-xl-soft-mul -mno-xl-soft-div" in my makefile. I am using latest mb-gcc tool-chain

Regards,

Jason


Pavel Ivanchenko wrote:
Hi,
I try change elf to old version, errors don't change :(
May be I not have correct link to some library?
Makefile:
 
ROOTDIR=/usr/src/new1/uClinux-dist
UCLINUX_BUILD_USER=1
include $(ROOTDIR)/.config
LIBCDIR = $(CONFIG_LIBCDIR)
include $(ROOTDIR)/config.arch
CC=mb-gcc
AR=mb-ar
CFLAGS = -mno-xl-soft-mul -mno-xl-soft-div
HELLO = hello
HELLO_OBJ = hello.o
all: $(HELLO)
$(HELLO): $(HELLO_OBJ) :
 $(CC) $(CFLAGS) -o  $@ $(HELLO_OBJ)
clean:
 rm -f *.o *.elf core
%.o: %.c
 $(CC) -c $(CFLAGS) -o $@ $<
Additional, I use two UARTlite core, I manualy cut console descriptions from "xmbserial.c" file (but I try with original settings, result don't change).