2008-04-08 23:51:10     compile question

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

2008-04-08 23:51:10     compile question

zhi shaolong (CHINA)

Message: 53870   

 

when i compile the kernel,

 

after i enter "make dep"

 

then i enter "make".but error exist:

 

 

 

make[1]: Entering directory `/home/kning/uClinux-dist<wbr></wbr>-2008R1-RC1/linux-2.6.x'

CHK     include/linux/version.h

CHK     include/linux/utsrelease.h

CC      arch/blackfin/kernel/asm-offsets.s

In file included from include/linux/spinlock.h:53,

                from include/linux/capability.h:47,

                from include/linux/sched.h:46,

                from arch/blackfin/kernel/asm-offsets.c:31:

include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

In file included from include/linux/spinlock.h:53,

                from include/linux/capability.h:47,

                from include/linux/sched.h:46,

                from arch/blackfin/kernel/asm-offsets.c:31:

include/linux/kernel.h:123: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:127: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:131: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:135: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:139: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:155: error: expected declaration specifiers or ‘...’ before ‘va_list’

make[2]: *** [arch/blackfin/kernel/asm-offsets.s] Error 1

 

 

 

what shoule i do?

 

thanks

QuoteReplyEditDelete

 

 

2008-04-09 00:01:04     Re: compile question

Mike Frysinger (UNITED STATES)

Message: 53871    you should not be using RC1.  please use the latest version that was actually released.

 

as for the error, please search the forums.  you didnt install one of the uclibc packages.

QuoteReplyEditDelete

 

 

2008-04-09 00:33:49     Re: compile question

zhi shaolong (CHINA)

Message: 53873   

 

yes,i install 2008R1-RC8,i think it is the lastest version.

 

and ,i have install blackfin-toolchain-08r1-8,

 

there are two uclib in the list:uclib-full and uclib -default, which one should i choose to install?

 

and could you please show me  how to install the uclib?

 

thanks!

QuoteReplyEditDelete

 

 

2008-04-09 01:43:11     Re: compile question

Mike Frysinger (UNITED STATES)

Message: 53875    consult the release notes:

http://blackfin.uclinux.org/gf/project/toolchain/frs/?action=FrsReleaseView&release_id=375

QuoteReplyEditDelete

 

 

2008-04-09 03:16:06     Re: compile question

zhi shaolong (CHINA)

Message: 53878   

 

thank you ! i have downloaded the uclibc-default .

 

and how to use the uclibc?

 

in my kernel/library/default selection

 

there is :

 

---kernel is linux-2.6.x

 

---libc is none

 

the normal is

 

---kernel is linux-2.6.x

 

(ulibc) libc version

 

so how can i make libc is uclibc?

 

thanks again!

QuoteReplyEditDelete

 

 

2008-04-09 04:11:14     Re: compile question

Yi Li (CHINA)

Message: 53886    Select Libc Version (None).

 

You may refer to: http://docs.blackfin.uclinux.org/doku.php?id=basic_compilation

 

But the doc need to be updated.

QuoteReplyEditDelete

 

 

2008-04-09 04:36:55     Re: compile question

zhi shaolong (CHINA)

Message: 53902   

 

---libc is none

 

can't be selected.

 

what can i do then?

QuoteReplyEditDelete

 

 

2008-04-09 04:46:05     Re: compile question

Yi Li (CHINA)

Message: 53903    Do nothing. You don't need to configure Libc version (keep it as none). uClibc is part of the toolchain.

 

Just configure other options of the kernel and build.

 

I am updating the doc: http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing

QuoteReplyEditDelete

 

 

2008-04-09 09:07:23     Re: compile question

zhi shaolong (CHINA)

Message: 53922   

 

i saw the changes in the http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing.

 

thank you.

 

but lack of uclibc really doesn't affect the configuration?

 

BTW,can your "libc version(none)" be selected  in order to selece a lib(uclibc, for example) ?

QuoteReplyEditDelete

 

 

2008-04-09 09:25:45     Re: compile question

zhi shaolong (CHINA)

Message: 53923   

 

and i leave libc version none.

 

enter "make"

 

wait for about 20 minutes,but in the directory ,there is not file images.

 

and the error report:

 

10.bmp

QuoteReplyEditDelete

 

 

2008-04-09 11:15:29     Re: compile question

Mike Frysinger (UNITED STATES)

Message: 53930    please do not post any more screenshots.  copy and paste the actual text.

QuoteReplyEditDelete

 

 

2008-04-10 00:54:53     Re: compile question

zhi shaolong (CHINA)

Message: 53964   

 

i leave ---libc is none

 

and continue to do the next configuration.

 

after 20minites,a error occurs:

 

invalid option 'cpu=bf533-0.3'

 

what is this mean?

 

thx!

QuoteReplyEditDelete

 

 

2008-04-10 01:14:25     Re: compile question

Mike Frysinger (UNITED STATES)

Message: 53967    do not post the same question multiple times, especially when you've already searched the forums and found the answer.

QuoteReplyEditDelete

 

 

2008-04-10 06:37:07     Re: compile question

Bing Han (CHINA)

Message: 54026    that relates with your OS and you must ensure that you have installed the bfin-uclinux-gcc,bfin-elf-gcc and bfin-linux-uclibc.

TranslateQuoteReplyEditDelete

 

 

2008-04-10 10:01:32     Re: compile question

zhi shaolong (CHINA)

Message: 54032   

 

i have installed blackfin-toolchain-08r1-8.i386.i put it in the /usr/local.

 

it contains bfin-uclinux/bin and bfin-linux-uclibc/bin .

 

i also find bfin-elf in the /opt/uClinux/bfin-uclinux.

 

so  i enter export PATH=usr/local/opt/uClinux/bfin-uclinux/bin:usr/local/opt/uClinux/bfin-linux-uclibc/bin:/opt/uClinux/bfin-elf/bin:$PATH

 

but it doesn't work.

 

i don't kown why?could you please point it out to me?

QuoteReplyEditDelete

 

 

2008-04-10 16:58:46     Re: compile question

Mike Frysinger (UNITED STATES)

Message: 54047    the directions assume the default install point of /opt/uClinux/.  if you choose to put it somewhere else, you need to change the documentation details to suite your choices.

 

none of the documentation shows relative paths, they are all absolute.  i dont know why you're dropping the leading /, but without that, you have relative paths, not absolute.

QuoteReplyEditDelete

 

 

2008-04-10 21:57:11     Re: compile question

Bing Han (CHINA)

Message: 54058    please install blackfin-toolchain-uclibc-default-08r1-8.i386.rpm

Attachments

Outcomes