2009-04-15 09:59:06     problems compiling svn trunk for surveyor srv1

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

2009-04-15 09:59:06     problems compiling svn trunk for surveyor srv1

Ralph Bertelsmann (GERMANY)

Message: 72692   

 

Hello all,

 

i am trying to compile uclinux-dist-trunk-svn-7972 for my surveyor srv1 robot.

 

I was trying to do it as described in uImage-SVN-r7972-srv1.log.

 

 

 

So i did the following:

 

find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig

 

config/mkconfig > Kconfig

 

make Surveyor/SRV1_defconfig > log1.txt 2>&1

 

find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig

 

config/mkconfig > Kconfig

 

cp vendors/Surveyor/SRV1/config.device .config

 

chmod u+x config/setconfig

 

yes "" | config/setconfig defaults

 

make > log2.txt 2>&1

 

 

 

logfiles are attached. (i left the make clean and rm instructions out, because my sources are freshly unpacked)

 

 

 

Compiler i am using:

 

bfin-uclinux-gcc -v

Using built-in specs.

Target: bfin-uclinux

Configured with: /usr/src/packages/BUILD/blackfin-toolchain-08r1.5/../gcc-4.1/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-uclinux --prefix=/opt/uClinux/bfin-uclinux --enable-threads=posix --with-sysroot=/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit

Thread model: posix

gcc version 4.1.2 (ADI svn)

 

 

 

 

The last page of make says:

 

...

 

/bin/bash ../../mpd-0.13.2/mkinstalldirs /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/share/man/man5

mkdir -p -- /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/share/doc/mpd

mkdir -p -- /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/share/man/man5

/usr/bin/install -c -m 644 ../../mpd-0.13.2/doc/COMMANDS /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/share$

/usr/bin/install -c -m 644 ../../mpd-0.13.2/doc/mpdconf.example /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/us$

/usr/bin/install -c -m 644 ../../mpd-0.13.2/doc/mpd.conf.5 /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/sha$

/usr/bin/install -c -m 644 ../../mpd-0.13.2/doc/mpd.1 /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/share/ma$

make[6]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd/build-mpd-0.13.2/doc'

make[5]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd/build-mpd-0.13.2/doc'

make[5]: Entering directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd/build-mpd-0.13.2'

make[6]: Entering directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd/build-mpd-0.13.2'

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

/bin/bash ../mpd-0.13.2/mkinstalldirs /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/share/doc/mpd

/usr/bin/install -c -m 644 ../mpd-0.13.2/README /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/share/doc/mpd/$

/usr/bin/install -c -m 644 ../mpd-0.13.2/UPGRADING /usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/staging/usr/share/doc/m$

make[6]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd/build-mpd-0.13.2'

make[5]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd/build-mpd-0.13.2'

make[4]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd/build-mpd-0.13.2'

make post-build

make[4]: Entering directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd'

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

make[4]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd'

/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/tools/cross-fix-root

make[3]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mpd'

make[2]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user'

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

make[1]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user'

make: *** [subdirs] Error 1

 

 

 

i just can't see what the problem is ...

 

 

 

 

 

as always, i would be very thankful for any help! =)

 

thanks in advance

 

log2.txt

log1.txt

TranslateQuoteReplyEditDelete

 

 

2009-04-15 10:06:02     problems compiling svn trunk for surveyor srv1

Michael Hennerich (GERMANY)

Message: 72694   

 

>i just can't see what the problem is ...

 

That's a parallel build issue.

 

Use:

 

uclinux-dist-trunk> make single

 

or

 

uclinux-dist-trunk> make NON_SMP_BUILD=1

 

-Michael

 

 

QuoteReplyEditDelete

 

 

2009-04-15 10:13:16     Re: problems compiling svn trunk for surveyor srv1

Michael Hennerich (GERMANY)

Message: 72696   

 

Here is your error:

 

Disable mtd-utils.

 

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I../../mpc-0.12.1/src -I.. -DEMBED -D__uClinux__ -I/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972 -mcpu=bf537-0.2 -pipe -Wall -g -O2 -mcpu=bf537-0.2 -Wall -c -o mpc-options.o `test -f 'options.c' || echo '../../mpc-0.12.1/src/'`options.c

compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or directory

compr_lzo.c: In function ‘jffs2_lzo_cmpr’:

compr_lzo.c:51: error: ‘lzo_uint’ undeclared (first use in this function)

compr_lzo.c:51: error: (Each undeclared identifier is reported only once

compr_lzo.c:51: error: for each function it appears in.)

compr_lzo.c:51: error: expected ‘;’ before ‘compress_size’

compr_lzo.c:54: warning: implicit declaration of function ‘lzo1x_999_compress’

compr_lzo.c:54: error: ‘compress_size’ undeclared (first use in this function)

compr_lzo.c:56: error: ‘LZO_E_OK’ undeclared (first use in this function)

compr_lzo.c:49: warning: unused parameter ‘model’

compr_lzo.c: In function ‘jffs2_lzo_decompress’:

compr_lzo.c:72: error: ‘lzo_uint’ undeclared (first use in this function)

compr_lzo.c:72: error: expected ‘;’ before ‘dl’

compr_lzo.c:74: warning: implicit declaration of function ‘lzo1x_decompress_safe’

compr_lzo.c:74: error: ‘dl’ undeclared (first use in this function)

compr_lzo.c:76: error: ‘LZO_E_OK’ undeclared (first use in this function)

compr_lzo.c:69: warning: unused parameter ‘model’

compr_lzo.c: At top level:

compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type

compr_lzo.c: In function ‘jffs2_lzo_init’:

compr_lzo.c:95: error: ‘LZO1X_999_MEM_COMPRESS’ undeclared (first use in this function)

make[4]: *** [/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o] Error 1

make[4]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'

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

make[3]: Leaving directory `/usr/local/src/blackfin/svn/uclinux-dist-trunk-svn-7972/user/mtd-utils'

make[2]: *** [mtd-utils] Error 2

make[2]: *** Waiting for unfinished jobs....

 

QuoteReplyEditDelete

 

 

2009-04-15 10:39:39     Re: problems compiling svn trunk for surveyor srv1

Ralph Bertelsmann (GERMANY)

Message: 72698   

 

Ah okay,

 

I just didn't know what to look for.

 

 

 

I just commented the mtd lines out and a "make single" did it.

 

 

 

Thank you very much!

TranslateQuoteReplyEditDelete

 

 

2009-04-15 10:46:44     Re: problems compiling svn trunk for surveyor srv1

Ralph Bertelsmann (GERMANY)

Message: 72699   

 

A normal make is working too.

 

 

 

I am happy

TranslateQuoteReplyEditDelete

 

 

2009-04-15 12:11:59     Re: problems compiling svn trunk for surveyor srv1

Ralph Bertelsmann (GERMANY)

Message: 72703   

 

Hmm some problems still.

 

 

 

I flashed my new image,

 

its running well EXCEPT that i can't switch to mode character anymore.

 

(telnet session, ctrl+altgr+9 mode char does nothing)

 

 

 

could that possibly have something to do with the outcommented mtd-utils?

TranslateQuoteReplyEditDelete

 

 

2009-04-16 03:40:17     Re: problems compiling svn trunk for surveyor srv1

Michael Hennerich (GERMANY)

Message: 72728    >could that possibly have something to do with the outcommented

mtd-utils?

 

No.

 

Might be some other conifg option!?

 

Mike would know better.

 

I just tried our recent svn trunk and it works fine for me.

 

Trying 10.44.2.39...

 

Connected to 10.44.2.39.

 

Escape character is '^]'.

 

 

BusyBox v1.13.3 (2009-03-27 13:33:55 CET) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/

root:/> version

kernel: Linux release 2.6.28.9-ADI-2009R1-pre-svn6266, build #1489

Wed Apr 15 17:34:52 CEST 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

 

user-dist: release svn-7972, build #2904 Wed Apr 15 17:34:08 CEST 2009

 

root:/

 

telnet> status

 

Connected to 10.44.2.39.

 

Operating in single character mode

Catching signals locally

Remote character echo

Local flow control

Escape character is '^]'.

 

root:/

 

 

QuoteReplyEditDelete

 

 

2009-04-16 04:24:11     Re: problems compiling svn trunk for surveyor srv1

Ralph Bertelsmann (GERMANY)

Message: 72737   

 

Hmm ok,

 

i did another "make single" from scratch.

 

 

 

For me it says:

 

(its # not root)

 

# version

kernel:    Linux release 2.6.28.9-ADI-2009R1-pre, build #1 Thu Apr 16 10:05:25 CEST 2009

toolchain: bfin-uclinux-gcc release gcc-Version 4.1.2 (ADI svn)

user-dist: release 2008R1, build #1 Do 16. Apr 10:08:53 CEST 2009

 

 

telnet> status

Connected to 192.168.0.5.

Escape character is '^]'.

... nothing, i hit enter and i am back at:

 

#

 

 

 

The difference i see is:

 

user-dist: release svn-7972, build #2904  (you)

 

user-dist: release 2008R1, build #1(me)

 

Maybe thats the issue?

 

I am using ubuntu linux and just apt-get'ed the toolchain from

 

deb   download.analog.com/27516/distros/debian stable main

 

 

 

 

 

Greetings and thanks in advance

TranslateQuoteReplyEditDelete

 

 

2009-04-16 08:08:04     Re: problems compiling svn trunk for surveyor srv1

Ralph Bertelsmann (GERMANY)

Message: 72750   

 

Ok, i just replaced my Toolchain with:

 

blackfin-toolchain-uclinux-SVN.i386.tar.bz2

 

blackfin-toolchain-linux-uclibc-SVN.i386.tar.bz2

 

from alpha.

 

 

 

I did a completely new make, still ^]mode char ist not working and still it says:

 

 

 

kernel:    Linux release 2.6.28.9-ADI-2009R1-pre, build #2 Thu Apr 16 13:50:56 CEST 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release 2008R1, build #2 Do 16. Apr 13:52:22 CEST 2009

 

 

I thought at least

 

user-dist: release 2008R1, build #2 Do 16. Apr 13:52:22 CEST 2009

 

would change, but it didn't.

 

 

 

 

 

Any help is welcome. =)

Attachments

Outcomes