error: expected specifier-qualifier-list before '__kernel_old_dev_t' 2008-04-13

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-13 20:30:01     error: expected specifier-qualifier-list before '__kernel_old_dev_t'

zhi shaolong (CHINA)

Message: 54160   

 

i installed blackfin-toolchain-uclibc-default-08r1-8.i386.tar.bz2

 

and compiled U-boot succesfully.

 

but when i comlile kernel

 

error exist :

 

n file included from libbb/loop.c:16:

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/include/linux/loop.h:85: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

make[4]: *** [libbb/loop.o] Error 1

make[3]: *** [libbb] Error 2

make[3]: Leaving directory `/root/uClinux-dist-2008R1-RC8/user/busybox'

make[2]: *** [busybox] Error 2

make[2]: Leaving directory `/root/uClinux-dist-2008R1-RC8/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/root/uClinux-dist-2008R1-RC8/user'

make: *** [subdirs] Error 1

 

could you help me?

QuoteReplyEditDelete

 

 

2008-04-13 20:47:11     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

Mike Frysinger (UNITED STATES)

Message: 54162    that typedef is provided by the kernel headers (asm/posix_types.h), so if your toolchain is properly installed, it should work fine

 

go into user/busybox and run:

make CC=bfin-uclinux-gcc libbb/loop.i

 

then post the loop.i file as an attachment

QuoteReplyEditDelete

 

 

2008-04-13 22:04:48     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

zhi shaolong (CHINA)

Message: 54165   

 

thank you.

 

i have installed blackfin-toolchain-08r1-8 and blackfin-toolchain-uclibc-default-08r1-8, is those enough?

 

and i entered uclinux-dist-2008R1-RC8/usr/busybox

 

entered the command "make CC=bfin-uclinux-gcc libbb/loop.i" ,as you asked me to do.

 

but error exist:

 

colinux:~/uClinux-dist-2008R1-RC8/user/busybox# make CC=bfin-uclinux-gcc libbb/loop.i

  CPP     libbb/loop.i

  cc1: error: unrecognized command line option "-march=i386"

  cc1: error: unrecognized command line option "-mpreferred-stack-boundary=2"

  make[1]: *** [libbb/loop.i] Error 1

  make: *** [libbb/loop.i] Error 2

 

i am new to uclinux,so please do me a favour .

 

waiting for your reply.

QuoteReplyEditDelete

 

 

2008-04-13 22:56:45     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

Mike Frysinger (UNITED STATES)

Message: 54171    add SUBARCH=bfin to the make line

QuoteReplyEditDelete

 

 

2008-04-13 23:22:21     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

zhi shaolong (CHINA)

Message: 54172   

 

what do you mean exactly?

 

should i enter "make CC=bfin-uclinux-gcc libbb/loop.i SUBARCH=bfin"

 

but this command can't be excuted.

 

waiting for your reply?

QuoteReplyEditDelete

 

 

2008-04-14 01:12:12     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

Mike Frysinger (UNITED STATES)

Message: 54173    saying "can't be executed" doesnt tell me anything.  why cant you execute it ?

QuoteReplyEditDelete

 

 

2008-04-14 02:24:01     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

zhi shaolong (CHINA)

Message: 54176   

 

hi

 

i try to enter "make CC=bfin-uclinux-gcc libbb/loop.i SUBARCH=bfin" again

 

and i got loop.i in /uClinux-dist-2008R1-RC8/usr/busybox/libbb

 

please  look at attachment.

 

thanks .

 

loop.i

QuoteReplyEditDelete

 

 

2008-04-14 02:38:06     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

Mike Frysinger (UNITED STATES)

Message: 54177    however you installed your toolchain, it was not right

 

you have include files in /opt/uClinux/bfin-uclinux/bfin-uclinux/include/{linux,asm}/ when there shouldnt be any at all

 

please uninstall the toolchain and follow the directions to install it correctly

QuoteReplyEditDelete

 

 

2008-04-14 02:53:49     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

zhi shaolong (CHINA)

Message: 54179   

 

yes,thank you.

 

i will try to uninstalled the old tools,and install the new ones.

 

i have blackfin-toolchain-08r1-8.i386 and blackfin-toolchain-uclibc-default-08r1-8.i386, is those enough?

QuoteReplyEditDelete

 

 

2008-04-14 02:59:53     Re: error: expected specifier-qualifier-list before '__kernel_old_dev_t'

Mike Frysinger (UNITED STATES)

Message: 54180    this page documents the required packages:

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing#available_packages

Attachments

    Outcomes