2010-07-09 14:12:09     new to Blackfin, trying to build uClinux image but fails

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

2010-07-09 14:12:09     new to Blackfin, trying to build uClinux image but fails

Matt Williams (UNITED STATES)

Message: 91112   

 

Before I started developing code and adding/removing libraries, I wanted to build the standard image without changing the settings.  However, I have not been able to get through the make of image without an error.  I have tried a couple of different source files.

 

The lastest attempt uses the following source files checked out and used the buildscript to build the toolchain.  Saw no errors when building.

 

svn co svn://blackfin.uclinux.org/svn/uclinux-dist/tags/2009R1.1-RC4 uClinux-dist

svn co svn://blackfin.uclinux.org/svn/toolchain/tags/2009R1.1-RC2 toolchain

svn co svn://blackfin.uclinux.org/svn/u-boot/tags/2009R1.1-RC1 u-boot

 

System: Dell computer with Intel Core i5 process

 

OS: Kubuntu 10.04 32-bit

 

AD: Blackfin 537-Stamp Development Board

 

Last lines of output from make command

 

make[4]: Entering directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo'

make[4]: Nothing to be done for `post-build'.

make[4]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo'

/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/tools/cross-fix-root

make[3]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo'

make[2]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib'

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

make[1]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib'

make: *** [subdirs] Error 1

 

 

 

Any help is much appreciated,

 

Matt

QuoteReplyEditDelete

 

 

2010-07-09 14:33:35     Re: new to Blackfin, trying to build uClinux image but fails

Mike Frysinger (UNITED STATES)

Message: 91114   

 

if you're going to use a tag, you might as well download the source tarballs.  not much point in reproducing the binaries we've already posted.

 

if you're going to use svn, you should be using the 2009R1 branches

 

your truncated error message though doesnt include the real error.  you need to scroll up and find it, or disable parallel build with `make single`.

QuoteReplyEditDelete

 

 

2010-07-09 15:39:09     Re: new to Blackfin, trying to build uClinux image but fails

Matt Williams (UNITED STATES)

Message: 91115   

 

Cool, Thanks for the help Mike.  Will give it shot and let you know.

 

 

 

Matt

QuoteReplyEditDelete

 

 

2010-07-10 13:43:26     Re: new to Blackfin, trying to build uClinux image but fails

Matt Williams (UNITED STATES)

Message: 91128   

 

Mike,

 

I rebuilt the toolchain using the following source files;

 

svn checkout svn://blackfin.uclinux.org/toolchain/branches/toolchain_09r1_branch

 

svncheckout svn://blackfin.uclinux.org/uclinux-dist/branches/2009R1

 

svn checkout svn://blackfin.uclinux.org/u-boot/branches/2009R1

 

Here is the last several lines from the the make attempt.  I searched the output strings and didn't see anything that would cause a problem.

 

I have attached a some of the output strings in a file.

 

make[5]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/ncurses/build-ncurses-5.7/c++'

make[4]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/ncurses/build-ncurses-5.7'

make post-build

make[4]: Entering directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/ncurses'

make[4]: Nothing to be done for `post-build'.

make[4]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/ncurses'

/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/tools/cross-fix-root

make[3]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/ncurses'

make[6]: Entering directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02/tests'

make[6]: Nothing to be done for `install-exec-am'.

make[6]: Nothing to be done for `install-data-am'.

make[6]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02/tests'

make[5]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02/tests'

Making install in minilzo

make[5]: Entering directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02/minilzo'

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I../../lzo-2.02/minilzo -I.. -I../../lzo-2.02/include/lzo -I../../lzo-2.02/include -DMINILZO_HAVE_CONFIG_H -DEMBED -D__uClinux__ -I/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist  -mcpu=bf537-0.2 -DLZO_HAVE_CONFIG_H  -pipe -Wall -g -O2      -mcpu=bf537-0.2 -c ../../lzo-2.02/minilzo/testmini.c

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I../../lzo-2.02/minilzo -I.. -I../../lzo-2.02/include/lzo -I../../lzo-2.02/include -DMINILZO_HAVE_CONFIG_H -DEMBED -D__uClinux__ -I/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist  -mcpu=bf537-0.2 -DLZO_HAVE_CONFIG_H  -pipe -Wall -g -O2      -mcpu=bf537-0.2 -c ../../lzo-2.02/minilzo/minilzo.c

/bin/bash ../libtool --tag=CC --mode=link bfin-uclinux-gcc  -pipe -Wall -g -O2      -mcpu=bf537-0.2  -Wl,-elf2flt    -mcpu=bf537-0.2 -o testmini  testmini.o minilzo.o

mkdir .libs

bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -Wl,-elf2flt -mcpu=bf537-0.2 -o testmini testmini.o minilzo.o

make[6]: Entering directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02/minilzo'

make[6]: Nothing to be done for `install-exec-am'.

make[6]: Nothing to be done for `install-data-am'.

make[6]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02/minilzo'

make[5]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02/minilzo'

make[5]: Entering directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02'

make[6]: Entering directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02'

make[6]: Nothing to be done for `install-exec-am'.

make[6]: Nothing to be done for `install-data-am'.

make[6]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02'

make[5]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02'

make[4]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo/build-lzo-2.02'

make post-build

make[4]: Entering directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo'

make[4]: Nothing to be done for `post-build'.

make[4]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo'

/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/tools/cross-fix-root

make[3]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/lzo'

make[2]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib'

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

make[1]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib'

make: *** [subdirs] Error 1

 

Thanks for the assistance.

 

Matt

 

make_attempt2.txt

QuoteReplyEditDelete

 

 

2010-07-11 02:36:57     Re: new to Blackfin, trying to build uClinux image but fails

Mike Frysinger (UNITED STATES)

Message: 91131   

 

you still truncated the log and didnt include the actual error message.  please do what i already suggested.

QuoteReplyEditDelete

 

 

2010-07-12 13:17:04     Re: new to Blackfin, trying to build uClinux image but fails

Matt Williams (UNITED STATES)

Message: 91174   

 

Mike,

 

Here is the truncated output from running make single.  The full stdout/stderr is the in the text file attach. Going to start looking in the to these errors and see what I can fine.  Whatever help you can give is much appreciated.

 

../../src/stlport_prefix.h:20:25: error: stl/_config.h: No such file or directory

../../src/dll_main.cpp:46:17: error: slist: No such file or directory

../../src/dll_main.cpp:48:28: error: stl/_hashtable.h: No such file or directory

../../src/dll_main.cpp:56:18: error: rope: No such file or directory

../../src/dll_main.cpp:91: error: expected constructor, destructor, or type conversion before ‘void’

../../src/dll_main.cpp:95: error: expected initializer before ‘_STLP_CALL’

../../src/dll_main.cpp:99: error: expected initializer before ‘_STLP_CALL’

../../src/dll_main.cpp:103: error: expected initializer before ‘_STLP_CALL’

../../src/dll_main.cpp:107: error: expected initializer before ‘_STLP_CALL’

../../src/dll_main.cpp:152: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __stl_debug_engine’

../../src/dll_main.cpp:152: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:155: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __node_alloc’

../../src/dll_main.cpp:155: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:156: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __node_alloc’

../../src/dll_main.cpp:156: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:157: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __debug_alloc’

../../src/dll_main.cpp:157: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:158: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __debug_alloc’

../../src/dll_main.cpp:158: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:159: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __debug_alloc’

../../src/dll_main.cpp:159: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:160: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __malloc_alloc’

../../src/dll_main.cpp:160: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:174: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:174: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:175: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:175: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:178: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_base’

../../src/dll_main.cpp:178: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:181: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_impl’

../../src/dll_main.cpp:181: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:184: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __WORKAROUND_DBG_RENAME’

../../src/dll_main.cpp:184: error: expected `;' before ‘(’ token

../../src/dll_main.cpp:189: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:189: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:190: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:190: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:191: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_base’

../../src/dll_main.cpp:191: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:193: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_impl’

../../src/dll_main.cpp:193: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:201: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC vector’

../../src/dll_main.cpp:201: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:205: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:205: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:207: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:207: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:208: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_base’

../../src/dll_main.cpp:208: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:209: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_impl’

../../src/dll_main.cpp:209: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:211: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _List_node’

../../src/dll_main.cpp:211: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:212: error: expected initializer before ‘<’ token

../../src/dll_main.cpp:213: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:213: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:214: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:214: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:215: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _List_base’

../../src/dll_main.cpp:215: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:216: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _List_impl’

../../src/dll_main.cpp:216: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:219: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:222: error: expected constructor, destructor, or type conversion before ‘typedef’

../../src/dll_main.cpp:223: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:223: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:226: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:227: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Slist_impl’

../../src/dll_main.cpp:227: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:230: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:231: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:231: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:232: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Deque_iterator’

../../src/dll_main.cpp:232: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:233: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Deque_base’

../../src/dll_main.cpp:233: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:234: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Deque_impl’

../../src/dll_main.cpp:234: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:237: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Rb_global’

../../src/dll_main.cpp:237: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:238: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _List_global’

../../src/dll_main.cpp:238: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:241: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:242: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Stl_prime’

../../src/dll_main.cpp:242: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:245: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:246: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Bs_G’

../../src/dll_main.cpp:246: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:248: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:248: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:249: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:249: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:250: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _String_base’

../../src/dll_main.cpp:250: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:270: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC basic_string’

../../src/dll_main.cpp:270: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:276: error: expected constructor, destructor, or type conversion at end of input

make[5]: *** [obj/gcc/shared/dll_main.o] Error 1

make[5]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/STLport/build/lib'

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

make[4]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib/STLport'

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

make[3]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib'

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

make[2]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist/lib'

make[1]: *** [subdirs] Error 1

make[1]: Leaving directory `/home/user/Projects/Blackfin/blackfin-sources/uClinux-dist'

make: *** [single] Error 2

 

 

 

Matt

 

make_single_attempt.txt

QuoteReplyEditDelete

 

 

2010-07-13 13:42:32     Re: new to Blackfin, trying to build uClinux image but fails

Mike Frysinger (UNITED STATES)

Message: 91206   

 

STL is known to be broken in the last release.  dont enable it.

QuoteReplyEditDelete

 

 

2010-07-13 16:41:07     Re: new to Blackfin, trying to build uClinux image but fails

Matt Williams (UNITED STATES)

Message: 91212   

 

Thank you.  Where do I disable STL?  Went looking in the make menuconfig and disabled STL there, but still errored out.

 

 

 

Matt

QuoteReplyEditDelete

 

 

2010-07-13 16:49:27     Re: new to Blackfin, trying to build uClinux image but fails

Mike Frysinger (UNITED STATES)

Message: 91213   

 

yes, STLport should be in the menuconfig under libraries

 

$ grep STL config/.config

# CONFIG_LIB_STLPORT is not set

QuoteReplyEditDelete

 

 

2010-07-13 17:11:13     Re: new to Blackfin, trying to build uClinux image but fails

Matt Williams (UNITED STATES)

Message: 91214   

 

Thank you, Mike.

 

That fixed STL problem.  Now I have another layer of the onion to peel away (pipechan.cxx:295: error: ‘PSETPGRP’ was not declared in this scope)

QuoteReplyEditDelete

Outcomes