Home Forum Developers General discussions How to add a new hardware?

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


Henning
useravatar
User Info

How to add a new hardware?

Hello guys,

some months ago a I bought a bf527-ezkit and started learning (embedded) linux. Unfortunately the "Analog Devices uClinux Dist" does not support asterisk (anymore). After some web-research (rowetel, astfin, switchfin) I decided to give switchfin a try and learn something about makefiles, linux, debugging, porting etc... So I hope this is the right community for my intentions.

I started by following http://forum.astfin.org/viewtopic.php?f=21&t=129 this example.


    copy and paste AnalogDevices/bf527-ezkit to package/uClinux-Dist/vendors
    added new target in config.in
    added new machine in /package/Makefile.in


At first I compiled a "pr1-hardware" to make sure, that my host is set up right. That worked without problems and I got some references for my bf527 approach.

After that I tried to compile for a bf527 and of cause it did not work and still does not. Unfortunately the error message does not help me. :-/

Code:


cp -v package/asterisk/asterisk-1.4.makeopts /home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/asterisk-1.4.42/menuselect.makeopts
`package/asterisk/asterisk-1.4.makeopts' -> `/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/asterisk-1.4.42/menuselect.makeopts'
sed -i 's/\b\S*dahdi\S*\b//g' /home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/asterisk-1.4.42/menuselect.makeopts
cd /home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/asterisk-1.4.42; CFLAGS="-g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/blackfin-linux-dist/staging/usr/include -fno-jump-tables" LDFLAGS="-mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp" GNU_LD=0 ./configure --host=bfin-linux-uclibc --disable-largefile --without-pwlib --without-sdl --without-libcurl --with-ssl --with-crypto --disable-xmldoc --with-dahdi=/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/dahdi-linux-complete-2.5.0.1+2.5.0.1/linux
configure: WARNING: unrecognized options: --without-sdl, --with-crypto, --disable-xmldoc
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... bfin-unknown-linux-uclibc
checking for bfin-linux-uclibc-gcc... bfin-linux-uclibc-gcc
checking whether the C compiler works... no
configure: error: in `/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/asterisk-1.4.42':
configure: error: C compiler cannot create executables
See `config.log' for more details.

So I figured out, that something goes wrong with the asterisk-configure script. Because of that I compared the config.log files from the successful pr1-build and the bf527-build in order to get to know why "checking whether the C compiler works... no" fails. But I have really no idea, maybe because I did not include the hardware correctly?

Any advise would be appreciated.

PS: I tried to attach the config.log, but that did not work (upload error). So here is the config.log:

 Spoiler Show Spoiler / Hide Spoiler
 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by asterisk configure 1.4, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ ./configure --host=bfin-linux-uclibc --disable-largefile --without-pwlib --without-sdl --without-libcurl --with-ssl --with-crypto --disable-xmldoc --with-dahdi=/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/dahdi-linux-complete-2.5.0.1+2.5.0.1/linux

## --------- ##
## Platform. ##
## --------- ##

hostname = FHF-Linix-HH
uname -m = x86_64
uname -r = 2.6.38-13-generic
uname -s = Linux
uname -v = #52-Ubuntu SMP Tue Nov 8 16:53:51 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin
PATH: /home/hh/Projects/IP3/1404/toolchain/bfin-uclinux/bin
PATH: /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:3035: checking build system type
configure:3049: result: x86_64-unknown-linux-gnu
configure:3069: checking host system type
configure:3082: result: bfin-unknown-linux-uclibc
configure:3145: checking for bfin-linux-uclibc-gcc
configure:3161: found /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin/bfin-linux-uclibc-gcc
configure:3172: result: bfin-linux-uclibc-gcc
configure:3441: checking for C compiler version
configure:3450: bfin-linux-uclibc-gcc --version >&5
bfin-linux-uclibc-gcc (ADI) 4.3.5
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3461: $? = 0
configure:3450: bfin-linux-uclibc-gcc -v >&5
Using built-in specs.
Target: bfin-linux-uclibc
Configured with: /home/hh/Projects/IP3/1404/toolchain/src/sources/gcc-4.3/configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=bfin-linux-uclibc --prefix=/home/hh/Projects/IP3/1404/toolchain/src/../bfin-linux-uclibc --enable-threads=posix --enable-shared --with-sysroot=/home/hh/Projects/IP3/1404/toolchain/src/../bfin-linux-uclibc/bfin-linux-uclibc/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI
Thread model: posix
gcc version 4.3.5 (ADI)
configure:3461: $? = 0
configure:3450: bfin-linux-uclibc-gcc -V >&5
bfin-linux-uclibc-gcc: '-V' option must have argument
configure:3461: $? = 1
configure:3450: bfin-linux-uclibc-gcc -qversion >&5
bfin-linux-uclibc-gcc: unrecognized option '-qversion'
bfin-linux-uclibc-gcc: no input files
configure:3461: $? = 1
configure:3481: checking whether the C compiler works
configure:3503: bfin-linux-uclibc-gcc -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/blackfin-linux-dist/staging/usr/include -fno-jump-tables  -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c  >&5
/home/hh/Projects/IP3/1404/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: cannot find -lspeexdsp
collect2: ld returned 1 exit status
configure:3507: $? = 1
configure:3545: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3550: error: in `/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/asterisk-1.4.42':
configure:3554: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/blackfin-linux-dist/staging/usr/include -fno-jump-tables'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=bfin-linux-uclibc
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=bfin-unknown-linux-uclibc
ac_cv_prog_CC=bfin-linux-uclibc-gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALLOCA=''
ALSA_DIR=''
ALSA_INCLUDE=''
ALSA_LIB=''
AR=''
AST_DECLARATION_AFTER_STATEMENT=''
AST_DEVMODE=''
AST_FORTIFY_SOURCE=''
AST_NO_STRICT_OVERFLOW=''
AWK=''
BASENAME=''
BFD_DIR=''
BFD_INCLUDE=''
BFD_LIB=''
BISON=''
BUILD_CPU=''
BUILD_OS=''
BUILD_PLATFORM=''
BUILD_VENDOR=''
CAP_DIR=''
CAP_INCLUDE=''
CAP_LIB=''
CC='bfin-linux-uclibc-gcc'
CFLAGS='-g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/blackfin-linux-dist/staging/usr/include -fno-jump-tables'
CMP=''
COMPRESS=''
CPP=''
CPPFLAGS=''
CURL=''
CURL_INCLUDE=''
CURL_LIB=''
CURSES_DIR=''
CURSES_INCLUDE=''
CURSES_LIB=''
CXX=''
CXXCPP=''
CXXFLAGS=''
DAHDI_DIR=''
DAHDI_INCLUDE=''
DAHDI_LIB=''
DEFS=''
DIRNAME=''
DOT=''
DOWNLOAD=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EDITLINE_LIB=''
EGREP=''
EXEEXT=''
FETCH=''
FIND=''
FLEX=''
FREETDS_DIR=''
FREETDS_INCLUDE=''
FREETDS_LIB=''
GC_CFLAGS=''
GC_LDFLAGS=''
GNUTLS_DIR=''
GNUTLS_INCLUDE=''
GNUTLS_LIB=''
GNU_LD='0'
GNU_MAKE=''
GREP=''
GSM_DIR=''
GSM_INCLUDE=''
GSM_INTERNAL=''
GSM_LIB=''
GTK2_INCLUDE=''
GTK2_LIB=''
GTKCONFIG=''
GTK_INCLUDE=''
GTK_LIB=''
HOST_CPU=''
HOST_OS=''
HOST_PLATFORM=''
HOST_VENDOR=''
IKSEMEL_DIR=''
IKSEMEL_INCLUDE=''
IKSEMEL_LIB=''
IMAP_TK_DIR=''
IMAP_TK_INCLUDE=''
IMAP_TK_LIB=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
ISDNNET_DIR=''
ISDNNET_INCLUDE=''
ISDNNET_LIB=''
KDEDIR=''
KDEINIT=''
KDE_DIR=''
KDE_INCLUDE=''
KDE_LIB=''
LD=''
LDFLAGS='-mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp'
LIBOBJS=''
LIBS=''
LN=''
LN_S=''
LTDL_DIR=''
LTDL_INCLUDE=''
LTDL_LIB=''
LTLIBOBJS=''
MISDN_DIR=''
MISDN_INCLUDE=''
MISDN_LIB=''
NBS_DIR=''
NBS_INCLUDE=''
NBS_LIB=''
NCURSES_DIR=''
NCURSES_INCLUDE=''
NCURSES_LIB=''
NETSNMP_CONFIG=''
NETSNMP_DIR=''
NETSNMP_INCLUDE=''
NETSNMP_LIB=''
NEWT_DIR=''
NEWT_INCLUDE=''
NEWT_LIB=''
OBJEXT=''
OGG_DIR=''
OGG_INCLUDE=''
OGG_LIB=''
OPENAIS_DIR=''
OPENAIS_INCLUDE=''
OPENAIS_LIB=''
OPENH323DIR=''
OPENH323_BUILD=''
OPENH323_DIR=''
OPENH323_INCDIR=''
OPENH323_INCLUDE=''
OPENH323_LIB=''
OPENH323_LIBDIR=''
OPENH323_SUFFIX=''
OPENR2_DIR=''
OPENR2_INCLUDE=''
OPENR2_LIB=''
OPENSSL_DIR=''
OPENSSL_INCLUDE=''
OPENSSL_LIB=''
OSARCH=''
OSPTK_DIR=''
OSPTK_INCLUDE=''
OSPTK_LIB=''
OSS_DIR=''
OSS_INCLUDE=''
OSS_LIB=''
PACKAGE_BUGREPORT='https://issues.asterisk.org'
PACKAGE_NAME='asterisk'
PACKAGE_STRING='asterisk 1.4'
PACKAGE_TARNAME='asterisk'
PACKAGE_URL=''
PACKAGE_VERSION='1.4'
PATH_SEPARATOR=':'
PBX_ALSA=''
PBX_BFD=''
PBX_BISON=''
PBX_CAP=''
PBX_CURL=''
PBX_CURSES=''
PBX_DAHDI=''
PBX_DAHDI_TRANSCODE=''
PBX_DLADDR=''
PBX_FLEX=''
PBX_FREETDS=''
PBX_GNUTLS=''
PBX_GSM=''
PBX_GTK2=''
PBX_GTK=''
PBX_H323=''
PBX_IKSEMEL=''
PBX_IMAP_TK=''
PBX_ISDNNET=''
PBX_IXJUSER=''
PBX_KDE=''
PBX_LTDL=''
PBX_MISDN=''
PBX_NBS=''
PBX_NCURSES=''
PBX_NETSNMP=''
PBX_NEWT=''
PBX_OGG=''
PBX_OPENAIS=''
PBX_OPENH323=''
PBX_OPENR2=''
PBX_OPENSSL=''
PBX_OSPTK=''
PBX_OSREV=''
PBX_OSS=''
PBX_PGSQL=''
PBX_POPT=''
PBX_PRI=''
PBX_PRI_CALL_HOLD=''
PBX_PRI_INBANDDISCONNECT=''
PBX_PRI_VERSION=''
PBX_PWLIB=''
PBX_RADIUS=''
PBX_SPEEX=''
PBX_SPEEXDSP=''
PBX_SPEEX_PREPROCESS=''
PBX_SQLITE=''
PBX_SUPPSERV=''
PBX_TERMCAP=''
PBX_TINFO=''
PBX_TONEZONE=''
PBX_UNIXODBC=''
PBX_USB=''
PBX_VORBIS=''
PBX_VPB=''
PBX_WORKING_FORK=''
PBX_ZAPTEL=''
PBX_ZAPTEL_VLDTMF=''
PBX_ZLIB=''
PGSQL_DIR=''
PGSQL_INCLUDE=''
PGSQL_LIB=''
PG_CONFIG=''
PKGCONFIG=''
POPT_DIR=''
POPT_INCLUDE=''
POPT_LIB=''
POW_LIB=''
PRI_CALL_HOLD_DIR=''
PRI_CALL_HOLD_INCLUDE=''
PRI_CALL_HOLD_LIB=''
PRI_DIR=''
PRI_INBANDDISCONNECT_DIR=''
PRI_INBANDDISCONNECT_INCLUDE=''
PRI_INBANDDISCONNECT_LIB=''
PRI_INCLUDE=''
PRI_LIB=''
PRI_VERSION_DIR=''
PRI_VERSION_INCLUDE=''
PRI_VERSION_LIB=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
PTLIB_CONFIG=''
PWLIBDIR=''
PWLIB_DIR=''
PWLIB_INCDIR=''
PWLIB_INCLUDE=''
PWLIB_LIB=''
PWLIB_LIBDIR=''
PWLIB_PLATFORM=''
RADIUS_DIR=''
RADIUS_INCLUDE=''
RADIUS_LIB=''
RANLIB=''
SED=''
SHELL='/bin/bash'
SOXMIX=''
SPEEXDSP_DIR=''
SPEEXDSP_INCLUDE=''
SPEEXDSP_LIB=''
SPEEX_DIR=''
SPEEX_INCLUDE=''
SPEEX_LIB=''
SPEEX_PREPROCESS_DIR=''
SPEEX_PREPROCESS_INCLUDE=''
SPEEX_PREPROCESS_LIB=''
SQLITE_DIR=''
SQLITE_INCLUDE=''
SQLITE_LIB=''
STRIP=''
SUPPSERV_DIR=''
SUPPSERV_INCLUDE=''
SUPPSERV_LIB=''
TERMCAP_DIR=''
TERMCAP_INCLUDE=''
TERMCAP_LIB=''
TINFO_DIR=''
TINFO_INCLUDE=''
TINFO_LIB=''
TONEZONE_DIR=''
TONEZONE_INCLUDE=''
TONEZONE_LIB=''
UNAME=''
UNIXODBC_DIR=''
UNIXODBC_INCLUDE=''
UNIXODBC_LIB=''
USB_DIR=''
USB_INCLUDE=''
USB_LIB=''
VORBIS_DIR=''
VORBIS_INCLUDE=''
VORBIS_LIB=''
VPB_DIR=''
VPB_INCLUDE=''
VPB_LIB=''
WGET=''
ZAPTEL_DIR=''
ZAPTEL_INCLUDE=''
ZAPTEL_LIB=''
ZLIB_DIR=''
ZLIB_INCLUDE=''
ZLIB_LIB=''
_libcurl_config=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_STRIP=''
acx_pthread_config=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='bfin-unknown-linux-uclibc'
host_alias='bfin-linux-uclibc'
host_cpu='bfin'
host_os='linux-uclibc'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "asterisk"
#define PACKAGE_TARNAME "asterisk"
#define PACKAGE_VERSION "1.4"
#define PACKAGE_STRING "asterisk 1.4"
#define PACKAGE_BUGREPORT "https://issues.asterisk.org"
#define PACKAGE_URL ""

configure: exit 77


Administrator has disabled public posting
Henning
useravatar
User Info

Re: How to add a new hardware?

Config.log


/home/hh/Projects/IP3/1404/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: cannot find -lspeexdsp
collect2: ld returned 1 exit status
Okay, I think this could be part of the problem...hmm


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: How to add a new hardware?

The failure is caused by "cannot find -lspeexdsp". I'm a little confused because I wouldn't expect it to require libraries at this early stage in the configure process but I see that my own config.log has the same thing. I'll see whether I can figure this out later.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: How to add a new hardware?

Okay, I see why it failed at this early stage. package/asterisk/asterisk.mk has a line that defines ASTERISK_LDFLAGS with -lspeexdsp among others. You shouldn't add libraries to LDFLAGS but LIBS instead. I'm not sure why Dimitar felt the need to set these explicitly in the first place as configure should detect them automatically. I don't know why libspeexdsp is missing from your uClinux-dist build though. I see you created a new config for your own hardware so maybe you missed Speex out?


Administrator has disabled public posting
Henning
useravatar
User Info

Re: How to add a new hardware?

Great, it worked after I included libspeex. And to recognize that asterisk depends on uClinux was very important to me, because until now I thought asterisk would compile "standalone" and only depends on uClinux-dist to get blackfin-specs / hardware-specs, but I was not aware, that I have to look into the included uClinux Libs. Thanks for that.  :-)

Just for my understanding, which "config.log info" made you look into /package/asterisk/asterisk.mk? Yesterday I was trying to identify, how the "pr1-build" succeeds in building the libspeex, but I never thought of looking into asterisk.mk.

Anyway, right now the build process is complaining (openSSL) again ;-), but I will try to fix it myself, before I come back asking.

Thanks for your help Chewi :-)


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: How to add a new hardware?

Apart from the root Makefile, the entire build process is controlled by the files in packages. uClinux-dist is a distro in itself but Switchfin builds additional packages around it. It treats uClinux-dist as a package that needs to be built first.

The way in which the makefiles are written leads to big problems unless you start from scratch every single time, which is obviously very time consuming and essentially misses the whole point of using Make. I would also like to reorganise how the hardware-specific stuff is handled to reduce the amount of duplication and avoid installing scripts for packages that haven't been selected. The former problem is a tricky one though and I haven't yet figured out the best way to fix it.


Administrator has disabled public posting
Henning
useravatar
User Info

Re: How to add a new hardware?

After some tinkering with the uClinux "make menuconfig" switchfin complied successfully


Image Name:   bf527-2.6.34.7-ADI-2010R1
Created:      Tue Dec  6 11:05:02 2011
Image Type:   Blackfin Linux Kernel Image (gzip compressed)
Data Size:    6365903 Bytes = 6216.70 kB = 6.07 MB
Load Address: 00001000
Entry Point:  002066ac
.
.
.
Building MD5 embedded distributable image
200704+0 records in
200704+0 records out
6422528 bytes (6.4 MB) copied, 0.216197 s, 29.7 MB/s
dd: you probably want conv=notrunc with oflag=append
1+0 records in
1+0 records out
32 bytes (32 B) copied, 2.5282e-05 s, 1.3 MB/s
and I can enter CLI on my target (bf527-ezkit-V2)

 Spoiler Show Spoiler / Hide Spoiler
 
U-Boot 2010.06-svn278 (ADI-2010R1-RC2) (Nov 15 2011 - 13:00:42)

CPU:   ADSP bf527-0.0 (Detected Rev: 0.2) (parallel flash boot)
Board: ADI BF527 EZ-Kit board
       Support: http://blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz
RAM:   64 MiB
Flash: 4 MiB
In:    serial
Out:   serial
Err:   serial
KGDB:  [on serial] ready
Net:   bfin_mac
Hit any key to stop autoboot:  0
Using bfin_mac device
TFTP from server 192.168.40.34; our IP address is 192.168.40.111
Filename 'uImage.ext2'.
Load address: 0x1000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################################
done
Bytes transferred = 6422528 (620000 hex)
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   bf527-2.6.34.7-ADI-2010R1
   Created:      2011-12-06  10:05:02 UTC
   Image Type:   Blackfin Linux Kernel Image (gzip compressed)
   Data Size:    6365903 Bytes = 6.1 MiB
   Load Address: 00001000
   Entry Point:  002066ac
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Starting Kernel at = 002066ac
Linux version 2.6.34.7-ADI-2010R1 (hh@FHF-Linix-HH) (gcc version 4.3.5 (ADI) ) #4 Tue Dec 6 11:04:58 CET 2011
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart1] enabled
early printk enabled on early_BFuart1
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
  fixedcode = 0x00000400-0x00000490
  text      = 0x00001000-0x00156450
  rodata    = 0x00156450-0x001cc03c
  bss       = 0x001cd000-0x001e18bc
  data      = 0x001e18bc-0x001fc000
    stack   = 0x001fa000-0x001fc000
  init      = 0x001fc000-0x00d26000
  available = 0x00d26000-0x03f00000
  DMA Zone  = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 9
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
  External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
  External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 debug earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600 ip=192.168.40.111:192.1f
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Kernel managed physical pages: 16128
Memory available: 50480k/65536k RAM, (11432k init code, 1365k kernel code, 663k data, 1024k dma, 572k reserved)
Hierarchical RCU implementation.
NR_IRQS:159
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25
Linux version 2.6.34.7-ADI-2010R1 (hh@FHF-Linix-HH) (gcc version 4.3.5 (ADI) ) #4 Tue Dec 6 11:04:58 CET 2011
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart1] enabled
early printk enabled on early_BFuart1
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
  fixedcode = 0x00000400-0x00000490
  text      = 0x00001000-0x00156450
  rodata    = 0x00156450-0x001cc03c
  bss       = 0x001cd000-0x001e18bc
  data      = 0x001e18bc-0x001fc000
    stack   = 0x001fa000-0x001fc000
  init      = 0x001fc000-0x00d26000
  available = 0x00d26000-0x03f00000
  DMA Zone  = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 9
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
boot memmap: 0000000000d26000 - 0000000003f00000 (usable)
On node 0 totalpages: 16128
free_area_init_node: node 0, pgdat 001f7d04, node_mem_map 00d28000
  DMA zone: 126 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 16002 pages, LIFO batch:0
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
  External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
  External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 debug earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600 ip=192.168.40.111:192.1f
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Kernel managed physical pages: 16128
Memory available: 50480k/65536k RAM, (11432k init code, 1365k kernel code, 663k data, 1024k dma, 572k reserved)
Hierarchical RCU implementation.
NR_IRQS:159
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25
console [tty0] enabled
console [ttyBF1] enabled, bootconsole disabled
console [ttyBF1] enabled, bootconsole disabled
Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
SCSI subsystem initialized
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc: ConfigData=0x00 (UTMI-8)
musb_hdrc: HDRC RTL version 1.900
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb_hdrc musb_hdrc.0: USB Host mode controller at ffc03800 using DMA, IRQ 59
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
Setting up Blackfin MMR debugfs
msgmni has been set to 98
io scheduler noop registered
io scheduler cfq registered (default)
dma_alloc_init: dma_page @ 0x02cb4000 - 256 pages at 0x03f00000
Console: switching to colour frame buffer device 40x30
bfin-lq035q1 bfin-lq035q1: 320x240 16-bit RGB FrameBuffer initialized
bfin-otp: initialized
bfin-uart: Blackfin serial driver
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000040000 : "bootloader(spi)"
0x000000040000-0x000000200000 : "linux kernel(spi)"
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: adp5520-keys as /devices/platform/i2c-bfin-twi.0/i2c-0/0-0032/adp5520-keys.5520/input/input0
ad7879 0-002c: Failed to write AD7879 Touchscreen
ad7879: probe of 0-002c failed with error -1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Registered led device: adp5520-led1
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 16:39:32 UTC (59972)
IP-Config: Complete:
     device=eth0, addr=192.168.40.111, mask=255.255.255.0, gw=192.168.40.2,
     host=bf527-ezkit, domain=, nis-domain=(none),
     bootserver=192.168.40.34, rootserver=192.168.40.34, rootpath=
Freeing unused kernel memory: 11432k freed
                           _____________________________________
        a8888b.           / Welcome to the uClinux distribution \
       d888888b.         /       _     _                         \
       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |
       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |
       8'    .88       \        | |   | |  _ \| | | | \  /        |
       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |
      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |
     dP   .    Y8b.       \   For embedded processors including   |
    d8:'  "  `::88b        \    the Analog Devices Blackfin      /
   d8"         'Y88b        \___________________________________/
  :8P    '      :888
   8a.   :     _a88P         For further information, check out:
._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/
\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/
/     \.___.d|    .'           - http://www.uclinux.org/
`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

Have a lot of fun...


BusyBox v1.16.2 (2011-12-06 11:01:20 CET) hush - the humble shell

root:/> PHY: 0:01 - Link is Up - 100/Full

root:/> asterisk -vvvc
Asterisk 1.4.42, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Unable to open logger.conf: No such file or directory; default settings will be used.
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader Starting:
[Jan  1 16:39:41] WARNING[334]: loader.c:918 load_modules: No 'modules.conf' found, no modules will be loaded.
  == Manager registered action Ping
  == Manager registered action Events
  == Manager registered action Logoff
  == Manager registered action Hangup
  == Manager registered action Status
  == Manager registered action Setvar
  == Manager registered action Getvar
  == Manager registered action GetConfig
  == Manager registered action UpdateConfig
  == Manager registered action Redirect
  == Manager registered action Originate
  == Manager registered action Command
  == Manager registered action ExtensionState
  == Manager registered action AbsoluteTimeout
  == Manager registered action MailboxStatus
  == Manager registered action MailboxCount
  == Manager registered action ListCommands
  == Manager registered action UserEvent
  == Manager registered action WaitEvent
[Jan  1 16:39:41] NOTICE[334]: manager.c:3182 init_manager: Unable to open management configuration manager.conf.  Call management disabled.
[Jan  1 16:39:41] NOTICE[334]: cdr.c:1449 do_reload: CDR simple logging enabled.
  == RTP Allocating from port range 5000 -> 31000
  == UDPTL allocating from port range 4500 -> 4999
Asterisk PBX Core Initializing
Registering builtin applications:
[Answer]
  == Registered application 'Answer'
[BackGround]
  == Registered application 'BackGround'
[Busy]
  == Registered application 'Busy'
[Congestion]
  == Registered application 'Congestion'
[Goto]
  == Registered application 'Goto'
[GotoIf]
  == Registered application 'GotoIf'
[GotoIfTime]
  == Registered application 'GotoIfTime'
[ExecIfTime]
  == Registered application 'ExecIfTime'
[Hangup]
  == Registered application 'Hangup'
[NoOp]
  == Registered application 'NoOp'
[Proceeding]
  == Registered application 'Proceeding'
[Progress]
  == Registered application 'Progress'
[ResetCDR]
  == Registered application 'ResetCDR'
[Ringing]
  == Registered application 'Ringing'
[SayNumber]
  == Registered application 'SayNumber'
[SayDigits]
  == Registered application 'SayDigits'
[SayAlpha]
  == Registered application 'SayAlpha'
[SayPhonetic]
  == Registered application 'SayPhonetic'
[SetAMAFlags]
  == Registered application 'SetAMAFlags'
[SetGlobalVar]
  == Registered application 'SetGlobalVar'
[Set]
  == Registered application 'Set'
[ImportVar]
  == Registered application 'ImportVar'
[Wait]
  == Registered application 'Wait'
[WaitExten]
  == Registered application 'WaitExten'
[Jan  1 16:39:41] WARNING[334]: db.c:66 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': No such file or directory
  == Manager registered action DBGet
  == Manager registered action DBPut
Asterisk Dynamic Loader Starting:
[Jan  1 16:39:41] WARNING[334]: loader.c:918 load_modules: No 'modules.conf' found, no modules will be loaded.
Asterisk Ready.
*CLI>
I did not had to change anything in the source except in config.in and /packages/Makefile.in (good for me wink). But config.log is still full of error-entries, so I guess I have to fix that to get asterisk working properly.
 Spoiler Show Spoiler / Hide Spoiler
 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by asterisk configure 1.4, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ ./configure --host=bfin-linux-uclibc --disable-largefile --without-pwlib --without-sdl --without-libcurl --with-ssl --with-crypto --disable-xmldoc --with-dahdi=/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/dahdi-linux-complete-2.5.0.1+2.5.0.1/linux

## --------- ##
## Platform. ##
## --------- ##

hostname = FHF-Linix-HH
uname -m = x86_64
uname -r = 2.6.38-13-generic
uname -s = Linux
uname -v = #52-Ubuntu SMP Tue Nov 8 16:53:51 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin
PATH: /home/hh/Projects/IP3/1404/toolchain/bfin-uclinux/bin
PATH: /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:3035: checking build system type
configure:3049: result: x86_64-unknown-linux-gnu
configure:3069: checking host system type
configure:3082: result: bfin-unknown-linux-uclibc
configure:3145: checking for bfin-linux-uclibc-gcc
configure:3161: found /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin/bfin-linux-uclibc-gcc
configure:3172: result: bfin-linux-uclibc-gcc
configure:3441: checking for C compiler version
configure:3450: bfin-linux-uclibc-gcc --version >&5
bfin-linux-uclibc-gcc (ADI) 4.3.5
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3461: $? = 0
configure:3450: bfin-linux-uclibc-gcc -v >&5
Using built-in specs.
Target: bfin-linux-uclibc
Configured with: /home/hh/Projects/IP3/1404/toolchain/src/sources/gcc-4.3/configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=bfin-linux-uclibc --prefix=/home/hh/Projects/IP3/1404/toolchain/src/../bfin-linux-uclibc --enable-threads=posix --enable-shared --with-sysroot=/home/hh/Projects/IP3/1404/toolchain/src/../bfin-linux-uclibc/bfin-linux-uclibc/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI
Thread model: posix
gcc version 4.3.5 (ADI)
configure:3461: $? = 0
configure:3450: bfin-linux-uclibc-gcc -V >&5
bfin-linux-uclibc-gcc: '-V' option must have argument
configure:3461: $? = 1
configure:3450: bfin-linux-uclibc-gcc -qversion >&5
bfin-linux-uclibc-gcc: unrecognized option '-qversion'
bfin-linux-uclibc-gcc: no input files
configure:3461: $? = 1
configure:3481: checking whether the C compiler works
configure:3503: bfin-linux-uclibc-gcc -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c  >&5
/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib/libsqlite3.so: warning: the use of LEGACY `utimes' is discouraged, use `utime'
configure:3507: $? = 0
configure:3556: result: yes
configure:3559: checking for C compiler default output file name
configure:3561: result: a.out
configure:3567: checking for suffix of executables
configure:3574: bfin-linux-uclibc-gcc -o conftest -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c  >&5
/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib/libsqlite3.so: warning: the use of LEGACY `utimes' is discouraged, use `utime'
configure:3578: $? = 0
configure:3600: result:
configure:3622: checking whether we are cross compiling
configure:3630: bfin-linux-uclibc-gcc -o conftest -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c  >&5
/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib/libsqlite3.so: warning: the use of LEGACY `utimes' is discouraged, use `utime'
configure:3634: $? = 0
configure:3641: ./conftest
./configure: line 3643: ./conftest: cannot execute binary file
configure:3645: $? = 126
configure:3660: result: yes
configure:3665: checking for suffix of object files
configure:3687: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:3691: $? = 0
configure:3712: result: o
configure:3716: checking whether we are using the GNU C compiler
configure:3735: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:3735: $? = 0
configure:3744: result: yes
configure:3753: checking whether bfin-linux-uclibc-gcc accepts -g
configure:3773: bfin-linux-uclibc-gcc -c -g  conftest.c >&5
configure:3773: $? = 0
configure:3814: result: yes
configure:3831: checking for bfin-linux-uclibc-gcc option to accept ISO C89
configure:3895: bfin-linux-uclibc-gcc  -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:3895: $? = 0
configure:3908: result: none needed
configure:3934: checking how to run the C preprocessor
configure:3965: bfin-linux-uclibc-gcc -E  conftest.c
configure:3965: $? = 0
configure:3979: bfin-linux-uclibc-gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3979: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4004: result: bfin-linux-uclibc-gcc -E
configure:4024: bfin-linux-uclibc-gcc -E  conftest.c
configure:4024: $? = 0
configure:4038: bfin-linux-uclibc-gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:4038: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4067: checking for grep that handles long lines and -e
configure:4125: result: /bin/grep
configure:4130: checking for egrep
configure:4192: result: /bin/grep -E
configure:4197: checking for ANSI C header files
configure:4217: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4217: $? = 0
configure:4301: result: yes
configure:4314: checking for sys/types.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4314: checking for sys/stat.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4314: checking for stdlib.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4314: checking for string.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4314: checking for memory.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4314: checking for strings.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4314: checking for inttypes.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4314: checking for stdint.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4314: checking for unistd.h
configure:4314: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4314: $? = 0
configure:4314: result: yes
configure:4328: checking minix/config.h usability
configure:4328: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
conftest.c:52:26: error: minix/config.h: No such file or directory
configure:4328: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:4328: result: no
configure:4328: checking minix/config.h presence
configure:4328: bfin-linux-uclibc-gcc -E  conftest.c
conftest.c:19:26: error: minix/config.h: No such file or directory
configure:4328: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <minix/config.h>
configure:4328: result: no
configure:4328: checking for minix/config.h
configure:4328: result: no
configure:4349: checking whether it is safe to define __EXTENSIONS__
configure:4367: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:4367: $? = 0
configure:4374: result: yes
configure:4470: checking for bfin-linux-uclibc-uname
configure:4503: result: no
configure:4513: checking for uname
configure:4531: found /bin/uname
configure:4543: result: /bin/uname
configure:4555: WARNING: using cross tools not prefixed with host triplet
configure:4580: checking for bfin-linux-uclibc-gcc
configure:4607: result: bfin-linux-uclibc-gcc
configure:4672: checking for bfin-linux-uclibc-g++
configure:4688: found /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin/bfin-linux-uclibc-g++
configure:4699: result: bfin-linux-uclibc-g++
configure:4764: checking for bfin-linux-uclibc-ld
configure:4780: found /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin/bfin-linux-uclibc-ld
configure:4791: result: bfin-linux-uclibc-ld
configure:4856: checking for bfin-linux-uclibc-ranlib
configure:4872: found /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin/bfin-linux-uclibc-ranlib
configure:4883: result: bfin-linux-uclibc-ranlib
configure:4956: checking for bfin-linux-uclibc-gcc
configure:4983: result: bfin-linux-uclibc-gcc
configure:5252: checking for C compiler version
configure:5261: bfin-linux-uclibc-gcc --version >&5
bfin-linux-uclibc-gcc (ADI) 4.3.5
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5272: $? = 0
configure:5261: bfin-linux-uclibc-gcc -v >&5
Using built-in specs.
Target: bfin-linux-uclibc
Configured with: /home/hh/Projects/IP3/1404/toolchain/src/sources/gcc-4.3/configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=bfin-linux-uclibc --prefix=/home/hh/Projects/IP3/1404/toolchain/src/../bfin-linux-uclibc --enable-threads=posix --enable-shared --with-sysroot=/home/hh/Projects/IP3/1404/toolchain/src/../bfin-linux-uclibc/bfin-linux-uclibc/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI
Thread model: posix
gcc version 4.3.5 (ADI)
configure:5272: $? = 0
configure:5261: bfin-linux-uclibc-gcc -V >&5
bfin-linux-uclibc-gcc: '-V' option must have argument
configure:5272: $? = 1
configure:5261: bfin-linux-uclibc-gcc -qversion >&5
bfin-linux-uclibc-gcc: unrecognized option '-qversion'
bfin-linux-uclibc-gcc: no input files
configure:5272: $? = 1
configure:5276: checking whether we are using the GNU C compiler
configure:5304: result: yes
configure:5313: checking whether bfin-linux-uclibc-gcc accepts -g
configure:5374: result: yes
configure:5391: checking for bfin-linux-uclibc-gcc option to accept ISO C89
configure:5468: result: none needed
configure:5600: checking for C++ compiler version
configure:5609: bfin-linux-uclibc-g++ --version >&5
bfin-linux-uclibc-g++ (ADI) 4.3.5
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5620: $? = 0
configure:5609: bfin-linux-uclibc-g++ -v >&5
Using built-in specs.
Target: bfin-linux-uclibc
Configured with: /home/hh/Projects/IP3/1404/toolchain/src/sources/gcc-4.3/configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=bfin-linux-uclibc --prefix=/home/hh/Projects/IP3/1404/toolchain/src/../bfin-linux-uclibc --enable-threads=posix --enable-shared --with-sysroot=/home/hh/Projects/IP3/1404/toolchain/src/../bfin-linux-uclibc/bfin-linux-uclibc/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI
Thread model: posix
gcc version 4.3.5 (ADI)
configure:5620: $? = 0
configure:5609: bfin-linux-uclibc-g++ -V >&5
bfin-linux-uclibc-g++: '-V' option must have argument
configure:5620: $? = 1
configure:5609: bfin-linux-uclibc-g++ -qversion >&5
bfin-linux-uclibc-g++: unrecognized option '-qversion'
bfin-linux-uclibc-g++: no input files
configure:5620: $? = 1
configure:5624: checking whether we are using the GNU C++ compiler
configure:5643: bfin-linux-uclibc-g++ -c   conftest.cpp >&5
configure:5643: $? = 0
configure:5652: result: yes
configure:5661: checking whether bfin-linux-uclibc-g++ accepts -g
configure:5681: bfin-linux-uclibc-g++ -c -g  conftest.cpp >&5
configure:5681: $? = 0
configure:5722: result: yes
configure:5750: checking how to run the C preprocessor
configure:5820: result: bfin-linux-uclibc-gcc -E
configure:5840: bfin-linux-uclibc-gcc -E  conftest.c
configure:5840: $? = 0
configure:5854: bfin-linux-uclibc-gcc -E  conftest.c
conftest.c:24:28: error: ac_nonexistent.h: No such file or directory
configure:5854: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5887: checking how to run the C++ preprocessor
configure:5914: bfin-linux-uclibc-g++ -E  conftest.cpp
configure:5914: $? = 0
configure:5928: bfin-linux-uclibc-g++ -E  conftest.cpp
conftest.cpp:24:28: error: ac_nonexistent.h: No such file or directory
configure:5928: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5953: result: bfin-linux-uclibc-g++ -E
configure:5973: bfin-linux-uclibc-g++ -E  conftest.cpp
configure:5973: $? = 0
configure:5987: bfin-linux-uclibc-g++ -E  conftest.cpp
conftest.cpp:24:28: error: ac_nonexistent.h: No such file or directory
configure:5987: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:6017: checking for a sed that does not truncate output
configure:6081: result: /bin/sed
configure:6086: checking for egrep
configure:6096: result: grep -E
configure:6112: checking for ld used by bfin-linux-uclibc-gcc
configure:6179: result: bfin-linux-uclibc-ld
configure:6186: checking if the linker (bfin-linux-uclibc-ld) is GNU ld
configure:6201: result: yes
configure:6210: checking for gawk
configure:6226: found /usr/bin/gawk
configure:6237: result: gawk
configure:6262: checking for a BSD-compatible install
configure:6330: result: /usr/bin/install -c
configure:6341: checking whether ln -s works
configure:6345: result: yes
configure:6355: checking for bfin-linux-uclibc-ranlib
configure:6382: result: bfin-linux-uclibc-ranlib
configure:6444: checking for GNU make
configure:6463: result: make
configure:6472: checking for egrep
configure:6534: result: /bin/grep -E
configure:6545: checking for bfin-linux-uclibc-strip
configure:6561: found /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin/bfin-linux-uclibc-strip
configure:6572: result: bfin-linux-uclibc-strip
configure:6645: checking for bfin-linux-uclibc-ar
configure:6661: found /home/hh/Projects/IP3/1404/toolchain//bfin-linux-uclibc/bin/bfin-linux-uclibc-ar
configure:6672: result: bfin-linux-uclibc-ar
configure:6749: checking for awk
configure:6767: found /usr/bin/awk
configure:6780: result: /usr/bin/awk
configure:6790: checking for bison
configure:6808: found /usr/bin/bison
configure:6821: result: /usr/bin/bison
configure:6831: checking for cmp
configure:6849: found /usr/bin/cmp
configure:6862: result: /usr/bin/cmp
configure:6872: checking for flex
configure:6890: found /usr/bin/flex
configure:6903: result: /usr/bin/flex
configure:6913: checking for grep
configure:6944: result: /bin/grep
configure:6954: checking for find
configure:6972: found /usr/bin/find
configure:6985: result: /usr/bin/find
configure:6995: checking for compress
configure:7026: result: :
configure:7036: checking for basename
configure:7054: found /usr/bin/basename
configure:7067: result: /usr/bin/basename
configure:7077: checking for dirname
configure:7095: found /usr/bin/dirname
configure:7108: result: /usr/bin/dirname
configure:7118: checking for sh
configure:7149: result: /bin/bash
configure:7159: checking for ln
configure:7177: found /bin/ln
configure:7190: result: /bin/ln
configure:7200: checking for dot
configure:7218: found /usr/bin/dot
configure:7231: result: /usr/bin/dot
configure:7241: checking for wget
configure:7259: found /usr/bin/wget
configure:7272: result: /usr/bin/wget
configure:7282: checking for curl
configure:7313: result: :
configure:7372: checking for bison that supports parse-param
configure:7407: result: /usr/bin/bison
configure:7426: checking for bfin-linux-uclibc-soxmix
configure:7456: result: no
configure:7466: checking for soxmix
configure:7496: result: no
configure:7686: checking for the pthreads library -lpthreads
configure:7719: bfin-linux-uclibc-gcc -o conftest -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables   -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c -lpthreads  >&5
/home/hh/Projects/IP3/1404/toolchain/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
configure:7719: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
|                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
|                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
|   ;
|   return 0;
| }
configure:7728: result: no
configure:7631: checking whether pthreads work without any flags
configure:7719: bfin-linux-uclibc-gcc -o conftest -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables   -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c   >&5
/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib/libsqlite3.so: warning: the use of LEGACY `utimes' is discouraged, use `utime'
configure:7719: $? = 0
configure:7728: result: yes
configure:7747: checking for joinable pthread attribute
configure:7762: bfin-linux-uclibc-gcc -o conftest -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables   -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c   >&5
/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib/libsqlite3.so: warning: the use of LEGACY `utimes' is discouraged, use `utime'
configure:7762: $? = 0
configure:7768: result: PTHREAD_CREATE_JOINABLE
configure:7778: checking if more special flags are required for pthreads
configure:7785: result: no
configure:9578: checking for working alloca.h
configure:9595: bfin-linux-uclibc-gcc -o conftest -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c  >&5
/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib/libsqlite3.so: warning: the use of LEGACY `utimes' is discouraged, use `utime'
configure:9595: $? = 0
configure:9603: result: yes
configure:9611: checking for alloca
configure:9648: bfin-linux-uclibc-gcc -o conftest -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c  >&5
/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib/libsqlite3.so: warning: the use of LEGACY `utimes' is discouraged, use `utime'
configure:9648: $? = 0
configure:9656: result: yes
configure:9769: checking for dirent.h that defines DIR
configure:9788: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:9788: $? = 0
configure:9796: result: yes
configure:9810: checking for library containing opendir
configure:9841: bfin-linux-uclibc-gcc -o conftest -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  -mfdpic -L/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib -lpthread -ldl -ltonezone -lsqlite3 -lspeexdsp conftest.c  >&5
/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/lib/libsqlite3.so: warning: the use of LEGACY `utimes' is discouraged, use `utime'
configure:9841: $? = 0
configure:9858: result: none required
configure:9925: checking for ANSI C header files
configure:10029: result: yes
configure:10037: checking for sys/wait.h that is POSIX.1 compatible
configure:10063: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:10063: $? = 0
configure:10070: result: yes
configure:10081: checking arpa/inet.h usability
configure:10081: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:10081: $? = 0
configure:10081: result: yes
configure:10081: checking arpa/inet.h presence
configure:10081: bfin-linux-uclibc-gcc -E  conftest.c
configure:10081: $? = 0
configure:10081: result: yes
configure:10081: checking for arpa/inet.h
configure:10081: result: yes
configure:10081: checking fcntl.h usability
configure:10081: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
configure:10081: $? = 0
configure:10081: result: yes
configure:10081: checking fcntl.h presence
configure:10081: bfin-linux-uclibc-gcc -E  conftest.c
configure:10081: $? = 0
configure:10081: result: yes
configure:10081: checking for fcntl.h
configure:10081: result: yes
configure:10081: checking for inttypes.h
configure:10081: result: yes
configure:10081: checking libintl.h usability
configure:10081: bfin-linux-uclibc-gcc -c -g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__ -I/home/hh/Projects/IP3/1404/switchfin/branches/1404/build_bf527_ezkit_V2/blackfin-linux-dist/staging/usr/include -fno-jump-tables  conftest.c >&5
conftest.c:66:21: error: libintl.h: No such file or directory
configure:10081: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_PTHREAD 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_INTTYPES_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <libintl.h>
configure:10081: result: no
configure:10081: checking libintl.h presence
configure:10081: bfin-linux-uclibc-gcc -E  conftest.c
conftest.c:33:21: error: libintl.h: No such file or directory
configure:10081: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "asterisk"
| #define PACKAGE_TARNAME "asterisk"
| #define PACKAGE_VERSION "1.4"
| #define PACKAGE_STRING "asterisk 1.4"
| #define PACKAGE_BUGREPORT "https://issues.asterisk.org"
| #define PACKAGE_URL ""
.
.
.
Thanks for your answer regarding Make and Packages. That the uClinux-dist is treated as a "build first package" and the entire process is controlled by the files in packages helped.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: How to add a new hardware?

It is normal for config.log to be full of errors. It is testing whether the system you're building for has certain things or not. If these things are strictly required then it'll abort with an error immediately or, in badly handled cases, the build will fail later on. As long as the build completes and it has enabled all the features you wanted then you have nothing to worry about.


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 133
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked