AnsweredAssumed Answered

BF548 buildroot alsa-util compilation error

Question asked by shanbhagm on Jan 28, 2013
Latest reply on Jan 28, 2013 by sonic

Building buildroot for BF548


Initially we downloaded the toolchains:

1) blackfin-toolchain-2012R2-RC2.i386.tar.bz2

2) blackfin-toolchain-elf-gcc-4.3-2012R2-RC2.i386.tar.bz2

3) blackfin-toolchain-uclibc-default-2012R2-RC2.i386.tar.bz2

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

Then we extracted the files and put them in PATH

/home/abc/BF548-2013/BuildRoot/ToolChain/opt/uClinux/bfin-uclinux/bin:/home/abc/BF548-2013/BuildRoot/ToolChain/opt/uClinux/bfin-linux-uclibc/bin:$PATH


We followed all the steps specified in http://docs.blackfin.uclinux.org/doku.php?id=buildroot:build-system:build_a_target#build_a_package for building "buildroot source" from GIT.

Then we did "make bf548-ezkit_defconfig" without any errors and followed it up with "make menuconfig" . The changes we made are listed below:

------------------------------------------------------------------------------------------------------------------

target architecture: Blackfin

target ABI: FDPIC

Target architecture variant: bf548

Target CPU revision: 0.4

Package Selection for the target: BusyBox Configuration file to use: board/AnalogDevices/blackfin/busybox-fdpic.config


Package Selection for the target: Audio and video applications: ALSA utils selection: amixer, alsaconf, aplay/arecord

-----------------------------------------------------------------------------------------------------------------

Then we do "make". But we get errors as:

-----------------------------------------------------------------------------------------------------------------

simple_abst.c:37:19: error: dlfcn.h: No such file or directory

simple_abst.c: In function 'try_open':

simple_abst.c:82: error: 'RTLD_NOW' undeclared (first use in this function)

simple_abst.c:82: error: (Each undeclared identifier is reported only once

simple_abst.c:82: error: for each function it appears in.)

simple_abst.c: In function 'try_open_full':

simple_abst.c:129: error: 'RTLD_NOW' undeclared (first use in this function)

simple_abst.c:129: error: 'RTLD_GLOBAL' undeclared (first use in this function)

make[3]: *** [simple_abst.lo] Error 1

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

make[3]: Leaving directory `/home/abc/BF548-2013/BuildRoot/buildroot/output/build/alsa-lib-1.0.25/src/mixer'

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

make[2]: Leaving directory `/home/abc/BF548-2013/BuildRoot/buildroot/output/build/alsa-lib-1.0.25/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/abc/BF548-2013/BuildRoot/buildroot/output/build/alsa-lib-1.0.25'

make: *** [/home/abc/BF548-2013/BuildRoot/buildroot/output/build/alsa-lib-1.0.25/.stamp_built] Error 2

 

 

-----------------------------------------------------------------------------------------------------------------

Kindly let us know the changes we need to make to get rid of these errors. Thanks in advance.


Outcomes