[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] usb configuration.. plz help
Hi Anuroop,
I had some similar problems some time ago...
> here is the error it shows while "make"
> ----------------------------------------------------------------------------------------------------------------
> mb-gcc -D__KERNEL__ -I/home/anuroop/uClinux/uClinux-2.4.x/include
> -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing
> -fno-common -DPLATFORM=ml401 -O2 -fno-builtin -DNO_MM -DNO_FPU
> -D__ELF__ -DMAGIC_ROM_PTR -DUTS_SYSNAME="uClinux" -D__linux__
> -I/root/mb-compiler/bin/../lib/gcc-lib/microblaze/2.95.3-4/./include
> -mxl-barrel-shift -mno-xl-soft-div -mno-xl-soft-mul -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=hcd -DEXPORT_SYMTAB -o hcd.o
> -c hcd.c
> hcd.c: In function `rh_string':
> hcd.c:312: `uClinux' undeclared (first use in this function)
> hcd.c:312: (Each undeclared identifier is reported only once
> hcd.c:312: for each function it appears in.)
> hcd.c: At top level:
> hcd.c:1514: warning: `used' attribute directive ignored
> hcd.c:1514: warning: `used' attribute directive ignored
> hcd.c:1434: warning: `hcd_operations' defined but not used
> hcd.c:1445: warning: `hcd_irq' defined but not used
The main problem (ignoring the warnings) seems to be the undeclared
'uCLinux'. This results from the erroneous '-DUTS_SYSNAME="uClinux"'
statement in the call of the mb-gcc (see above). The correct statement
should be '-DUTS_SYSNAME=\"uClinux\"'. The backslashes are important!
My hint: try to figure out where the incorrect compiler call is build
and correct the UTS_SYSNAME define. Maybe you can change the hcd.c
file to accept the incorrect definition, but that would be very ugly :-)
I cannot remember where the incorrect statement results from - but if
you or someone else more familiar with the complete build process will
find it, please leave a message...
Regards,
Holger
--
-------------------------------------------------------------------
Holger Pals http://www.iti.uni-luebeck.de
Institute of Computer Engineering pals@xxxxxxxxxxxxxxxxxx
University of Luebeck Tel.: (49) 451/500-3681
Ratzeburger Allee 160 Fax.: (49) 451/500-3687
D-23538 Luebeck (Germany)
-------------------------------------------------------------------
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/