2010-07-29 13:32:39     BF548 EzKit - can't build uClinux-dist-2009R1.1-RC4

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

2010-07-29 13:32:39     BF548 EzKit - can't build uClinux-dist-2009R1.1-RC4

Steven Ackerman (UNITED STATES)

Message: 91880   

 

New to linux/uClinux and trying to evaluate BF548 for a product. The stock uImage boots via tftp into the EzKit and runs OK.

 

Trying to build uClinux-dist-2009R1.1-RC4 for the BF548 EzKit so I can eventually add and try the mplayer.

 

The build fails when building libpng. Tried building libpng only with: make lib/libpng_only

 

which of course fails:

 

configure: error: zlib not installed

make[2]: *** [build-libpng-1.2.36/Makefile] Error 1

make[2]: Leaving directory `/home/sja/ucLinux/uClinux-dist/lib/libpng'

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

make[1]: Leaving directory `/home/sja/ucLinux/uClinux-dist/lib'

make: *** [lib/libpng_only] Error 2

 

config.log from this attached.

 

per earlier threads about this same error ran:

 

readelf -s staging/usr/lib/libz.a | grep zlibVersion

 

which produced:

    16: 00000000    18 FUNC    GLOBAL DEFAULT    1 _zlibVersion

 

 

Have no idea how to troubleshoot and fix this - any pointers appreciated.

 

Thank you.

 

config.log

QuoteReplyEditDelete

 

 

2010-07-29 13:36:20     Re: BF548 EzKit - can't build uClinux-dist-2009R1.1-RC4

Mike Frysinger (UNITED STATES)

Message: 91881   

 

if you build with "_only", you're responsible for making sure all dependencies are built.  that target bypasses all dependency mechanisms.

 

if you read the config.log you'll see:

configure:12487: bfin-uclinux-gcc -o conftest -pipe -Wall -g -O2      -mcpu=bf548-0.2 -DEMBED -D__uClinux__ -I/home/sja/ucLinux/uClinux-dist  -mcpu=bf548-0.2  -Wl,-elf2flt    -mcpu=bf548-0.2 conftest.c -lz  -lm  >&5 /home/sja/ucLinux/uClinux-dist/staging/usr/lib/libz.so: could not read symbols: File in wrong format

 

that means you compiled the dist in one format, changed formats in the config, and then tried to build again without cleaning things out.  you need to run `make clean` when changing between FLAT and FDPIC.

QuoteReplyEditDelete

 

 

2010-07-29 15:16:38     Re: BF548 EzKit - can't build uClinux-dist-2009R1.1-RC4

Steven Ackerman (UNITED STATES)

Message: 91886   

 

Thank you Mike.

 

I remember reading about doing a make clean after reading this and was able to find this fact again on the basic compilation page.

 

Doing a make clean followed by a subsequent make did get rid of the zlib not installed error - my bad.

 

I now have a different error in a completely unrelated location, and perhaps I have messed up the menuconfig options. I'm going to nuke the uClinux-dist directory, download it again and start with just the default BF548 EzKit settings - which is what I should've done in the first place.

 

It must get old answering the same newbie questions over and over... my regards and appreciation for your rapid and accurate response.

 

Steven

QuoteReplyEditDelete

 

 

2010-07-29 15:24:39     Re: BF548 EzKit - can't build uClinux-dist-2009R1.1-RC4

Mike Frysinger (UNITED STATES)

Message: 91887   

 

`make distclean` should always get you back to a pristine state.  if it doesnt, then that's a bug we need to fix.

QuoteReplyEditDelete

 

 

2010-07-29 15:33:51     Re: BF548 EzKit - can't build uClinux-dist-2009R1.1-RC4

Steven Ackerman (UNITED STATES)

Message: 91888   

 

OK - thanks Mike - good to know.

 

Steven

Attachments

Outcomes