2008-01-23 11:02:34     Unable to built 2008R1 RC1 release

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

2008-01-23 11:02:34     Unable to built 2008R1 RC1 release

Jean Navailles (FRANCE)

Message: 50038   

 

Hi

 

I am unable to built 2008R1 RC1 release.

I use 2008 tool chain.

Please, what I do wrong?

Thanks

Jean

 

[uclinux@localhost uClinux-dist-2008R1-RC1]$ make

rm -f linux-2.6.x/usr/initramfs_data.cpio.gz

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j4 -C linux-2.6.x  || exit 1

make[1]: entrant dans le répertoire « /home/uclinux/uClinux-dist-2008R1-RC1/linux-2.6.x »

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

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

Dans le fichier inclus à partir de include/linux/spinlock.h:53,

          à partir de include/linux/capability.h:47,

          à partir de include/linux/sched.h:46,

          à partir de arch/blackfin/kernel/asm-offsets.c:31:

include/linux/kernel.h:10:20: erreur: stdarg.h : Aucun fichier ou répertoire de ce type

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: erreur: expected declaration specifiers or ‘...’ before ‘va_list’

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

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

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

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

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

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

make[1]: *** [prepare0] Erreur 2

make[1]: quittant le répertoire « /home/uclinux/uClinux-dist-2008R1-RC1/linux-2.6.x »

make: *** [linux] Erreur 1

[uclinux@localhost uClinux-dist-2008R1-RC1]$

 

 

 

 

 

 

 

TranslateQuoteReplyEditDelete

 

 

2008-01-23 12:04:28     Re: Unable to built 2008R1 RC1 release

Jean Navailles (FRANCE)

Message: 50046   

Hi

 

How can I change the search path for bfin-linux-uclibc-gcc?

I a makefile?

 

Thanks

Jean

TranslateQuoteReplyEditDelete

 

 

2008-01-23 13:17:29     Re: Unable to built 2008R1 RC1 release

Bill Fassler (UNITED STATES)

Message: 50052    I didn't even think the 2008R1RC1 release was available yet?!?!

 

Bill

QuoteReplyEditDelete

 

 

2008-01-23 13:58:25     Re: Unable to built 2008R1 RC1 release

Mike Frysinger (UNITED STATES)

Message: 50053    it's in the process of being released ... people arent really supposed to be testing it yet

QuoteReplyEditDelete

 

 

2008-01-23 13:59:11     Re: Unable to built 2008R1 RC1 release

Mike Frysinger (UNITED STATES)

Message: 50054    your toolchain is not installed correctly.  stdarg.h comes from gcc.

QuoteReplyEditDelete

 

 

2008-01-24 03:29:16     Re: Unable to built 2008R1 RC1 release

Jean Navailles (FRANCE)

Message: 50067    Sorry if the release is always in process.

 

If this can help you :

The files downloaded are :

uClinux-dist-2008R1-RC1.tar.bz2

blackfin-toolchain-08r1-6.i386.rpm

blackfin-toolchain-elf-gcc-4.1-08r1-6.i386.rpm

 

I find stdarg.h in the following directories :

/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.1.2/install-tools/include/stdarg.h

/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.1.2/include/stdarg.h

 

Regards

 

Jean

TranslateQuoteReplyEditDelete

 

 

2008-01-24 03:50:51     Re: Unable to built 2008R1 RC1 release

Mike Frysinger (UNITED STATES)

Message: 50069    you need to install one of the uclibc packages too, otherwise you only have the compiler ... no headers and no libs

QuoteReplyEditDelete

 

 

2008-01-24 06:34:57     Re: Unable to built 2008R1 RC1 release

Jean Navailles (FRANCE)

Message: 50091    Hi Mike

 

Thank you, now I can build an image for a BF537 STAMP.

 

I post this question about BLUETECHNIX boards here, because I don't know where I can do it..

 

When I select a CM_BF537E I have this error :

 

make[2]: quittant le répertoire « /home/uclinux/uClinux-dist-2008R1-RC1/vendors/Bluetechnix/CM-BF537E »

make[1]: quittant le répertoire « /home/uclinux/uClinux-dist-2008R1-RC1/vendors »

find /home/uclinux/uClinux-dist-2008R1-RC1/romfs/. -name CVS | xargs -r rm -rf

[ -d /home/uclinux/uClinux-dist-2008R1-RC1/images ] || mkdir /home/uclinux/uClinux-dist-2008R1-RC1/images

make ARCH=blackfin   -C vendors image

make[1]: entrant dans le répertoire « /home/uclinux/uClinux-dist-2008R1-RC1/vendors »

make -C /home/uclinux/uClinux-dist-2008R1-RC1/vendors/Bluetechnix/CM-BF537E/. dir_v=/home/uclinux/uClinux-dist-2008R1-RC1/vendors/Bluetechnix/CM-BF537E/. -f /home/uclinux/uClinux-dist-2008R1-RC1/vendors/vendors-common.mak image

make[2]: entrant dans le répertoire « /home/uclinux/uClinux-dist-2008R1-RC1/vendors/Bluetechnix/CM-BF537E »

mkdir -p /home/uclinux/uClinux-dist-2008R1-RC1/images

rm -rf /home/uclinux/uClinux-dist-2008R1-RC1/images/*

rm -rf /home/uclinux/uClinux-dist-2008R1-RC1/romfs/dev;

cp /home/uclinux/uClinux-dist-2008R1-RC1/linux-2.6.x/linux /home/uclinux/uClinux-dist-2008R1-RC1/images/vmlinux

bfin-linux-uclibc-strip -g /home/uclinux/uClinux-dist-2008R1-RC1/images/vmlinux

set -e ; \

        if [ -x /home/uclinux/uClinux-dist-2008R1-RC1/user/mtd-utils/build/mkfs.jffs2 ] && [ -n "" -o -n "" ]; then \

                /home/uclinux/uClinux-dist-2008R1-RC1/user/mtd-utils/build/mkfs.jffs2 -d /home/uclinux/uClinux-dist-2008R1-RC1/romfs -D device_table-min.txt -o /home/uclinux/uClinux-dist-2008R1-RC1/images/rootfs.jffs2; \

        fi

bfin-linux-uclibc-genext2fs -m 0 -i 1024 -b 5120 -d /home/uclinux/uClinux-dist-2008R1-RC1/romfs -D device_table-min.txt /home/uclinux/uClinux-dist-2008R1-RC1/images/rootfs.ext2

make[2]: *** [image] Erreur de segmentation

make[2]: quittant le répertoire « /home/uclinux/uClinux-dist-2008R1-RC1/vendors/Bluetechnix/CM-BF537E »

make[1]: *** [image] Erreur 2

make[1]: quittant le répertoire « /home/uclinux/uClinux-dist-2008R1-RC1/vendors »

make: *** [image] Erreur 2

[uclinux@localhost uClinux-dist-2008R1-RC1]$                              

 

Thanks

 

Jean

TranslateQuoteReplyEditDelete

 

 

2008-01-24 11:12:05     Re: Unable to built 2008R1 RC1 release

Mike Frysinger (UNITED STATES)

Message: 50099    please read the FAQ as this is covered there:

http://docs.blackfin.uclinux.org/doku.php?id=faq

QuoteReplyEditDelete

 

 

2008-01-30 05:56:35     Re: Unable to built 2008R1 RC1 release

Jean Navailles (FRANCE)

Message: 50347   

 

Hi Mike

 

Thank you for your response.

 

Now I can build my kernel.

 

Next time I will first read FAQ.

 

Thanks again

 

Jean

 

 

TranslateQuoteReplyEditDelete

 

 

2008-01-30 07:55:59     Re: Unable to built 2008R1 RC1 release

Mike Frysinger (UNITED STATES)

Message: 50374    dont feel bad, this isnt documented yet ... this release we're trying something new

QuoteReplyEditDelete

 

 

2008-03-23 22:23:55     Re: Unable to built 2008R1 RC1 release

Danny Marquette (UNITED STATES)

Message: 52950    Mike -- I'm having the same error on a ubuntu installation.

 

can you be more specific about "you need to install one of the uclibc packages"?

 

I tried this:

danny-laptop:~/uCLinux/BF54x/toolchain> apt-cache search uclibc

libuclibc-dev - A small implementation of the C library

libuclibc0 - A small implementation of the C library

uclibc-toolchain - Toolchain alias for building against uclibc

blackfin-toolchain - The GNU toolchain for Blackfin

 

danny-laptop:~/uCLinux/BF54x/toolchain> sudo apt-get install libuclibc0

 

but that must not have been the package I need.

 

Thanks, Danny

QuoteReplyEditDelete

 

 

2008-03-24 01:44:59     Re: Unable to built 2008R1 RC1 release

Mike Frysinger (UNITED STATES)

Message: 52955    please read:

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

QuoteReplyEditDelete

 

 

2008-03-24 11:44:04     Re: Unable to built 2008R1 RC1 release

tang wuke (CHINA)

Message: 52974    HI,

I built 2008R1 RC8

What shall I do?

 

I have installed below files:

blackfin-toolchain                  

blackfin-toolchain-gcc-3.4-addon   

blackfin-toolchain-elf-gcc-4.1      

blackfin-toolchain-elf-gcc-3.4-addon

blackfin-toolchain-uclibc-default               

blackfin-toolchain-uclibc-full                  

having solved the problem about NO stdarg.h file.

But now

 

make[2]: Entering directory `/BFuClinux/uClinux-dist/vendors/AnalogDevices/BF527-EZKIT'

set -e; \

        t=`bfin-linux-uclibc-gcc -mcpu=bf527-0.0 -print-file-name=libc.a`; \

        t=`dirname $t`/../..; \

        for i in $t/lib/*so*; do \

                bn=`basename $i`; \

                if [ -f $i ] ; then \

                        romfs-inst.sh -p 755 $i /lib/$bn; \

                fi; \

        done; \

        for i in $t/lib/*so*; do \

                if [ -h $i -a -e $i ] ; then \

                        j=`readlink $i`; \

                        romfs-inst.sh -s \

                                `basename $j` \

                                /lib/`basename $i`; \

                fi; \

        done; \

        if type bfin-linux-uclibc-ldconfig >/dev/null 2>&1; then \

                bfin-linux-uclibc-ldconfig -r /BFuClinux/uClinux-dist/romfs; \

        fi

/bin/sh: bfin-linux-uclibc-gcc: not found

/bin/sh: bfin-linux-uclibc-gcc: not found

make[2]: *** [romfs.shared.libs] Error 127

make[2]: Leaving directory `/BFuClinux/uClinux-dist/vendors/AnalogDevices/BF527-EZKIT'

make[1]: *** [romfs.post] Error 2

make[1]: Leaving directory `/BFuClinux/uClinux-dist/vendors'

make: *** [romfs.post] Error 2

root@twuking-desktop:/BFuClinux/uClinux-dist#

TranslateQuoteReplyEditDelete

 

 

2008-03-24 13:20:32     Re: Unable to built 2008R1 RC1 release

Robin Getz (UNITED STATES)

Message: 52975    Twuking:

 

>What shall I do?

 

You need to go back and re-read the directions Mike provided - no where does it say to install both blackfin-toolchain-uclibc-default and blackfin-toolchain-uclibc-full You should use one or the other.

 

As for your specific error, check out the docs:

 

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing&s=path#setting_the_path_environment_variable

 

-Robin

QuoteReplyEditDelete

 

 

2008-03-25 03:00:16     Re: Unable to built 2008R1 RC1 release

tang wuke (CHINA)

Message: 52990   

 

Robin ,Thanks for your help!

 

Now  I have built  successfully.

Attachments

    Outcomes