Return-Path: X-Original-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92B4610996 for ; Wed, 5 Feb 2014 10:17:17 +0000 (UTC) Received: (qmail 38758 invoked by uid 500); 5 Feb 2014 10:17:17 -0000 Delivered-To: apmail-incubator-celix-dev-archive@incubator.apache.org Received: (qmail 38692 invoked by uid 500); 5 Feb 2014 10:17:16 -0000 Mailing-List: contact celix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: celix-dev@incubator.apache.org Delivered-To: mailing list celix-dev@incubator.apache.org Received: (qmail 38684 invoked by uid 99); 5 Feb 2014 10:17:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 10:17:14 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of a.broekhuis@gmail.com designates 209.85.216.50 as permitted sender) Received: from [209.85.216.50] (HELO mail-qa0-f50.google.com) (209.85.216.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 10:17:10 +0000 Received: by mail-qa0-f50.google.com with SMTP id cm18so212866qab.37 for ; Wed, 05 Feb 2014 02:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1TP/RcM/c1e6F/kGPYtU8wY5TOnWHOr3KhDo+9XeQ6A=; b=PFblfzMaQyhezK0c2I9/iB4rzzvHYHe4eo93HHZyOzqa5L9sQbRKiB6tsfGxmJBDcT hAWUdx7Qn1sxpDjHPkHghigFlo6j98jvG+yUfdiEBg9jLQkzTYhNlMFSJpgB3dpzUsoV l5tcMecabwQi8YbIr+RO7tC7HW4Ga/ADICOiZRm4RTVi7erjsjcZ0TjEYjzxPXLIBQIB jSpxFPxHcjc/Vm3ZVV5+G6kr3nN6vL9FtgkTYVNf5Zw68XCdhQFSaez+wNQ+hJnCZFKH TcNl4U5tYRPT8ZMIVl79mko/ZXudVZibzOKcVr91Vm0h4cdj6Y2ozoWQ3vd5gsjjz9z8 5i/A== MIME-Version: 1.0 X-Received: by 10.140.88.180 with SMTP id t49mr789528qgd.97.1391595409344; Wed, 05 Feb 2014 02:16:49 -0800 (PST) Received: by 10.96.14.134 with HTTP; Wed, 5 Feb 2014 02:16:49 -0800 (PST) In-Reply-To: <6EE7D1502C48E44E92DCADF9DD3E0DB9025D4BF8040F@SRV-VS06.TELEVIC.COM> References: <6EE7D1502C48E44E92DCADF9DD3E0DB9025D4BF8040F@SRV-VS06.TELEVIC.COM> Date: Wed, 5 Feb 2014 11:16:49 +0100 Message-ID: Subject: Re: compiling APR on eCos From: Alexander Broekhuis To: celix-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c13b100b8ecd04f1a60eeb X-Virus-Checked: Checked by ClamAV on apache.org --001a11c13b100b8ecd04f1a60eeb Content-Type: text/plain; charset=ISO-8859-1 Hi, I am sorry for the late response, I'll try to find the information for cross compiling, should have it somewhere.. Those instructions should also explain a bit about cross compiling APR. For that work buildroot [1] was used, perhaps it might be a good starting point to look if they support APR as one of the default modules. [1]: http://buildroot.uclibc.org/ 2014-02-05 Quartier Thomas : > Hi, > > I am currently trying to compile Apache Portable Runtime on eCos - ARM9 > for my thesis (porting a C application to the Celix OSGI framework running > on eCos). I don't have a lot of experience with cross compiling. I tried to > configure APR without success. See below for output of the ./config command. > > export PATH=$PATH:/home/thomas/ecos/pr_7336/compiler/bin/ > export PATH=$PATH:/home/thomas/ecos/pr_7336/tools/ > ./configure --build=x86_64-unknown-linux-gnu --host=arm-elf > --target=arm-elf --prefix=/home/thomas/aprCCTest/build &> output.txt > > Output.txt: > checking build system type... x86_64-unknown-linux-gnu > checking host system type... arm-unknown-elf > checking target system type... arm-unknown-elf > Configuring APR library > Platform: arm-unknown-elf > checking for working mkdir -p... yes > APR Version: 1.4.8 > checking for chosen layout... apr > checking for arm-elf-gcc... arm-elf-gcc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... yes > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether arm-elf-gcc accepts -g... yes > checking for arm-elf-gcc option to accept ISO C89... none needed > checking for a sed that does not truncate output... /bin/sed > Applying APR hints file rules for arm-unknown-elf > (Default will be unix) > checking whether make sets $(MAKE)... yes > checking how to run the C preprocessor... arm-elf-gcc -E > checking for gawk... no > checking for mawk... mawk > checking whether ln -s works... yes > checking for arm-elf-ranlib... arm-elf-ranlib > checking for a BSD-compatible install... /usr/bin/install -c > checking for rm... rm > checking for as... as > checking for cpp... cpp > checking for arm-elf-ar... arm-elf-ar > checking for grep that handles long lines and -e... /bin/grep > checking for egrep... /bin/grep -E > checking for ANSI C header files... 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... no > checking for strings.h... no > checking for inttypes.h... no > checking for stdint.h... no > checking for unistd.h... yes > checking minix/config.h usability... no > checking minix/config.h presence... no > checking for minix/config.h... no > checking whether it is safe to define __EXTENSIONS__... yes > checking for library containing strerror... none required > checking whether system uses EBCDIC... no > performing libtool configuration... > checking how to print strings... printf > checking for a sed that does not truncate output... (cached) /bin/sed > checking for fgrep... /bin/grep -F > checking for ld used by arm-elf-gcc... > /home/thomas/ecos/pr_7336/compiler/arm-elf/bin/ld > checking if the linker (/home/thomas/ecos/pr_7336/compiler/arm-elf/bin/ld) > is GNU ld... yes > checking for BSD- or MS-compatible name lister (nm)... > /home/thomas/ecos/pr_7336/compiler/bin//arm-elf-nm -B > checking the name lister > (/home/thomas/ecos/pr_7336/compiler/bin//arm-elf-nm -B) interface... BSD nm > checking the maximum length of command line arguments... 1572864 > checking whether the shell understands some XSI constructs... yes > checking whether the shell understands "+="... yes > checking how to convert x86_64-unknown-linux-gnu file names to > arm-unknown-elf format... func_convert_file_noop > checking how to convert x86_64-unknown-linux-gnu file names to toolchain > format... func_convert_file_noop > checking for /home/thomas/ecos/pr_7336/compiler/arm-elf/bin/ld option to > reload object files... -r > checking for arm-elf-objdump... objdump > checking how to recognize dependent libraries... unknown > checking for arm-elf-dlltool... dlltool > checking how to associate runtime and link libraries... printf %s\n > checking for arm-elf-ar... (cached) arm-elf-ar > checking for archiver @FILE support... no > checking for arm-elf-strip... arm-elf-strip > checking for arm-elf-ranlib... (cached) arm-elf-ranlib > checking command to parse > /home/thomas/ecos/pr_7336/compiler/bin//arm-elf-nm -B output from > arm-elf-gcc object... ok > checking for sysroot... no > checking for arm-elf-mt... no > checking for mt... mt > configure: WARNING: using cross tools not prefixed with host triplet > checking if mt is a manifest tool... no > checking for dlfcn.h... no > checking for objdir... .libs > checking if arm-elf-gcc supports -fno-rtti -fno-exceptions... yes > checking for arm-elf-gcc option to produce PIC... -fPIC -DPIC > checking if arm-elf-gcc PIC flag -fPIC -DPIC works... yes > checking if arm-elf-gcc static flag -static works... yes > checking if arm-elf-gcc supports -c -o file.o... rm: cannot remove > `conftest*': No such file or directory > yes > checking if arm-elf-gcc supports -c -o file.o... (cached) yes > checking whether the arm-elf-gcc linker > (/home/thomas/ecos/pr_7336/compiler/arm-elf/bin/ld) supports shared > libraries... yes > checking whether -lc should be explicitly linked in... rm: cannot remove > `conftest*': No such file or directory > yes > checking dynamic linker characteristics... no > checking how to hardcode library paths into programs... immediate > checking whether stripping libraries is possible... yes > checking if libtool supports shared libraries... no > checking whether to build shared libraries... no > checking whether to build static libraries... yes > > Check for compiler flags... > checking whether the compiler provides atomic builtins... no > checking whether to enable -D_LARGEFILE64_SOURCE... no > > Checking for libraries... > checking for library containing gethostbyname... no > checking for library containing gethostname... no > checking for library containing socket... no > checking for library containing crypt... no > checking for main in -ltruerand... no > checking for library containing modf... none required > > Checking for Threads... > checking pthread.h usability... yes > checking pthread.h presence... yes > checking for pthread.h... yes > checking for CFLAGS needed for pthreads... > checking for LIBS needed for pthreads... > checking for pthread.h... (cached) yes > checking whether pthread_getspecific takes two arguments... no > checking whether pthread_attr_getdetachstate takes one argument... no > checking for recursive mutex support... no > checking for pthread_key_delete... no > checking for pthread_rwlock_init... no > checking for pthread_attr_setguardsize... no > checking for pthread_yield... no > checking sched.h usability... no > checking sched.h presence... no > checking for sched.h... no > checking for sched_yield... no > APR will use threads > checking for readdir in -lc_r... no > checking for gethostbyname in -lc_r... no > checking for gethostbyaddr in -lc_r... no > checking for getservbyname in -lc_r... no > checking for gethostbyname_r... no > checking for gethostbyaddr_r... no > checking for getservbyname_r... no > checking for sigsuspend... no > checking for sigwait... no > checking for poll... no > checking for kqueue... no > checking for port_create... no > checking for epoll support... no > checking for epoll_create1 support... no > checking for dup3 support... no > checking for accept4 support... no > checking for SOCK_CLOEXEC support... no > checking for fdatasync... no > checking for epoll_create1 support... (cached) no > checking for dup3 support... (cached) no > checking for accept4 support... (cached) no > checking for SOCK_CLOEXEC support... (cached) no > checking for getpwnam_r... no > checking for getpwuid_r... no > checking for getgrnam_r... no > checking for getgrgid_r... no > > Checking for Shared Memory Support... > checking for library containing shm_open... no > checking for sys/types.h... (cached) yes > checking sys/mman.h usability... no > checking sys/mman.h presence... no > checking for sys/mman.h... no > checking sys/ipc.h usability... no > checking sys/ipc.h presence... no > checking for sys/ipc.h... no > checking sys/mutex.h usability... no > checking sys/mutex.h presence... no > checking for sys/mutex.h... no > checking sys/shm.h usability... no > checking sys/shm.h presence... no > checking for sys/shm.h... no > checking sys/file.h usability... yes > checking sys/file.h presence... yes > checking for sys/file.h... yes > checking kernel/OS.h usability... no > checking kernel/OS.h presence... no > checking for kernel/OS.h... no > checking os2.h usability... no > checking os2.h presence... no > checking for os2.h... no > checking windows.h usability... no > checking windows.h presence... no > checking for windows.h... no > checking for mmap... no > checking for munmap... no > checking for shm_open... no > checking for shm_unlink... no > checking for shmget... no > checking for shmat... no > checking for shmdt... no > checking for shmctl... no > checking for create_area... no > checking for MAP_ANON in sys/mman.h... no > checking for /dev/zero... configure: error: cannot check for file > existence when cross compiling > > > Any thoughts to push me in the right direction? > > Kind regards, > Thomas > > -- Met vriendelijke groet, Alexander Broekhuis --001a11c13b100b8ecd04f1a60eeb--