This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compiling APR on eCos


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

 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]