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

Re: [microblaze-uclinux] patch for uClinux-dist-20040218



Hi Patrick,

Looking more closely, I think I see the problem - it's as you suggested 
but for a different reason.  There shold be no problem with the 
-nostdinc (that's there for a reason, but long forgotten!)

> mb-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  
> -Os  -O1
> -g -DEMBED -fno-builtin -mno-xl-soft-mul -mno-xl-soft-div 
> -mxl-barrel-shift -I/h
> ome/probin/data/uClinux-dist/lib/uClibc/include 
> -I/home/probin/data/uClinux-dist
> -Dlinux -D__linux__ -D__uClinux__ -Dunix 
> -I/home/probin/data/uClinux-dist/linux-2.4.x/include
> -I/include

[snip]

See the -I/include option?  That is supposed to expand into the path to 
the gcc includes.  Look in vendors/Xilinx/common/common-config.arch - 
the expression is (watch the wrap):

GCCDIR = $(shell $(CC) -v 2>&1|grep specs|sed -e 's/.* \(.*\)specs/\1\./')

then

CFLAGS += -I$(GCCDIR)/include

For some reason, the expansion of GCCDIR on your host is failing...  On 
my ReddHat 8.0 box, with the tools in /usr/local/microblaze-elf-tools, 
GCC_DIR expands to:

/usr/local/microblaze-elf-tools/bin/../lib/gcc-lib/microblaze/2.95.3-4/.

Not sure why this might be the case, but it gives you something to go on...

Regards,

John

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/