Hi,
I am having problems building a custom application written in C++ for my
T2 target. While this is not strictly a T2-problem maybe someone here
can still give me a push in the right direction.
The host is an Ubuntu 8.x system using GCC 4.2.3. The application has
been developed on that host and builds fine.
When doing the build in T2 I receive the attached ERROR-LOG. It says
::malloc is not defined, which feels pretty basic to me.
I also noted the output from configure saying:
> checking for GNU libc compatible malloc... no
It says "yes" on the host. But then my T2-target is uclibc-based for size.
Any ideas on what I might have broken here?
Ciao, MM
Command Wrapper Debug: running 'i486-t2-linux-uclibc-gcc --version' ..
i486-t2-linux-uclibc-gcc is
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/TOOLCHAIN/tools.cross/wrapper/i486-t2-linux-uclibc-gcc
Old Command: i486-t2-linux-uclibc-gcc --version
ENVPREFIX = 'CMD'
OTHERS = ''
INSERT = '--help?:-pipe -Os -march=i486'
REMOVE = '-O -O[0-9s] -mtune* -march* -mcpu* -g*'
APPEND = '-s'
FILTER = 'sed -e
's,^\(-[LI]\)*\(/\|/usr/\|/usr/[^/]*/\|/opt/[^/]*/\)\(include\|lib\),\1/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross\2\3,''
conditonal arg: --help?:-pipe.
conditonal: --help, lhs: , rhs: -pipe.
Insert: -pipe
Insert: -Os
Insert: -march=i486
Copy: --version
Append: -s
Run Filter: sed -e
's,^\(-[LI]\)*\(/\|/usr/\|/usr/[^/]*/\|/opt/[^/]*/\)\(include\|lib\),\1/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross\2\3,'
Old PATH:
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/TOOLCHAIN/tools.cross/wrapper:/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/TOOLCHAIN/tools.cross/bin:/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/TOOLCHAIN/tools.cross/crosscc:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
New PATH:
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/TOOLCHAIN/tools.cross/bin:/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/TOOLCHAIN/tools.cross/crosscc:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
New Command: i486-t2-linux-uclibc-gcc -pipe -Os -march=i486 --version -s
i486-t2-linux-uclibc-gcc (GCC) 4.3.4
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.
[ writing debug log to
/home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/cmd_wrapper.log ]
`/home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/archdir/kbox3-HEAD.bz2'
-> `/home/kbox/t2/download/mirror/k/kbox3-HEAD.bz2'
Running main build function 'build_this_package' ...
Extracting kbox3-HEAD.bz2 (--use-compress-program=bzip2 -xf) ...
Fixing ownership and permissions ...
Removing CVS, .svn, {arch} and .arch-ids directories ...
Changeing into /home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/kbox3
...
Bootstrapping the GNU autotools...
Apply patch /home/kbox/t2/package/contrib/kbox3/configure.patch ...
patching file configure
Hunk #1 succeeded at 2151 (offset 8 lines).
Creating /home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/<..> if
required ...
Autodetection for option impossible: --disable-debug passed thru.
Autodetection for option impossible: --disable-nls passed thru.
Autodetection for option impossible: --without-libpam passed thru.
Autodetection for option impossible: --without-pam passed thru.
Autodetection for option impossible: --disable-libpam passed thru.
Autodetection for option impossible: --disable-pam passed thru.
Autodetection for option impossible: --enable-efence=no passed thru.
Running ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include
--infodir=/usr/info --mandir=/usr/man --sysconfdir=/etc --localstatedir=/var
--disable-debug --disable-nls --without-libpam --without-pam --disable-libpam
--disable-pam --enable-efence=no --with-sqlite3=yes --bindir=\${root}/mnt/kbox
--build=i686-nocross-linux-gnu --host=i486-t2-linux-uclibc
--cache-file=./config.cache
configure: WARNING: unrecognized options: --disable-debug, --disable-nls,
--without-libpam, --without-pam, --disable-libpam, --disable-pam,
--enable-efence
configure: loading cache ./config.cache
checking build system type... i686-nocross-linux-gnu
checking host system type... i486-t2-linux-uclibc
checking target system type... i486-t2-linux-uclibc
checking whether #! works in shell scripts... yes
checking for gawk... gawk
serial ports... unix
checking for i486-t2-linux-uclibc-gcc... i486-t2-linux-uclibc-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i486-t2-linux-uclibc-gcc accepts -g... yes
checking for i486-t2-linux-uclibc-gcc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether i486-t2-linux-uclibc-g++ accepts -g... yes
checking how to run the C preprocessor... i486-t2-linux-uclibc-cpp
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for strftime... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for strerror... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking if pthread_yield is available... no
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for SQLite3 library >= 3.6.0... yes
checking for gawk... (cached) gawk
checking for curl-config... /usr/local/bin/curl-config
checking for the version of libcurl... 7.19.2
checking for libcurl >= version 7.18.0... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for libssl... found headers in /usr/include/openssl
checking for log4cxx... found headers in /usr/local/include/log4cxx
checking for uuid_generate in -luuid... yes
checking for curlpp-config... /usr/local/bin/curlpp-config
checking for libcurlpp... using /usr/local/bin/curlpp-config
checking for a BSD-compatible install...
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/TOOLCHAIN/tools.cross/wrapper/install
-c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for i486-t2-linux-uclibc-strip... i486-t2-linux-uclibc-strip
checking dependency style of i486-t2-linux-uclibc-gcc... gcc3
checking dependency style of i486-t2-linux-uclibc-g++... gcc3
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --disable-debug, --disable-nls,
--without-libpam, --without-pam, --disable-libpam, --disable-pam,
--enable-efence
Running make -j2 CC=i486-t2-linux-uclibc-gcc CPP=i486-t2-linux-uclibc-cpp
CXX=i486-t2-linux-uclibc-g++ prefix=/usr CC_FOR_BUILD=cc BUILDCC=cc BUILD_CC=cc
HOSTCC=cc HOST_CC=cc STRIP=i486-t2-linux-uclibc-strip
AR=i486-t2-linux-uclibc-ar LD=i486-t2-linux-uclibc-ld
RANLIB=i486-t2-linux-uclibc-ranlib NM=i486-t2-linux-uclibc-nm
make all-recursive
make[1]: Entering directory
`/home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/kbox3'
Making all in .
make[2]: Entering directory
`/home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/kbox3'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory
`/home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/kbox3'
Making all in src
make[2]: Entering directory
`/home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/kbox3/src'
i486-t2-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -pthread
-I/usr/local/include -I/usr/local/include -I/usr/include/openssl -DHAVE_SSL
-I/usr/local/include/log4cxx -DHAVE_LOG4CXX -I/usr/local/include -Wall
-Wextra -MT kbox3Main.o -MD -MP -MF .deps/kbox3Main.Tpo -c -o kbox3Main.o
kbox3Main.cpp
i486-t2-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -pthread
-I/usr/local/include -I/usr/local/include -I/usr/include/openssl -DHAVE_SSL
-I/usr/local/include/log4cxx -DHAVE_LOG4CXX -I/usr/local/include -Wall
-Wextra -MT Thread.o -MD -MP -MF .deps/Thread.Tpo -c -o Thread.o Thread.cpp
In file included from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/c++/4.3.4/bits/stl_algo.h:65,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/c++/4.3.4/algorithm:67,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/log4cxx/helpers/tchar.h:25,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/log4cxx/spi/appenderattachable.h:20,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/log4cxx/helpers/appenderattachableimpl.h:20,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/log4cxx/logger.h:22,
from Log.h:13,
from Exception.h:12,
from Thread.cpp:5:
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/c++/4.3.4/cstdlib:124:
error: '::malloc' has not been declared
In file included from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/c++/4.3.4/bits/stl_algo.h:65,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/c++/4.3.4/algorithm:67,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/log4cxx/helpers/tchar.h:25,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/log4cxx/spi/appenderattachable.h:20,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/log4cxx/helpers/appenderattachableimpl.h:20,
from
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/log4cxx/logger.h:22,
from Log.h:13,
from APServerConnection.h:22,
from kbox3Main.cpp:12:
/home/kbox/t2/build/kbox-8.0-trunk-kbox-x86-i486-cross/usr/include/c++/4.3.4/cstdlib:124:
error: '::malloc' has not been declared
make[2]: *** [Thread.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [kbox3Main.o] Error 1
make[2]: Leaving directory
`/home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/kbox3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/kbox/t2/src.kbox3.kbox.20091022.112940.18451.kboxdev/kbox3'
make: *** [all] Error 2
Due to previous errors, no 1-kbox3.log file!
(Try enabling xtrace in the config to track an error inside the build system.)
--- BUILD ERROR ---
Creating file list and doing final adaptions ...
Searching for orphaned files ...
Found 6 files for this package.
Found 1 orphaned files for this package.
Clear (old) md5sums ...
Creating md5sum files ... done.
Creating package description ...
Making post-install adaptions.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2