Bug 57575 - Can't crossbuild apr-1.5.1 for ARM
Summary: Can't crossbuild apr-1.5.1 for ARM
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: 1.5.1
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 09:12 UTC by Oliver Graute
Modified: 2015-02-17 10:40 UTC (History)
1 user (show)



Attachments
patch for cross compilation (3.27 KB, patch)
2015-02-17 10:40 UTC, Oliver Graute
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Graute 2015-02-12 09:12:45 UTC
My crossbuild of apr-1.5.1 for Arm is faling. Is this a Bug or did i missing a fancy compile option?

Compile Options:

 APR_CONF_ENV := \                                                                                                                                                                     
 $(CROSS_ENV) \                                                                                                                                                                    
      ac_cv_file__dev_zero=yes \                                                                                                                                                        
      ac_cv_sizeof_size_t=4 \                                                                                                                                                           
      ac_cv_sizeof_ssize_t=4 \                                                                                                                                                          
      ac_cv_struct_rlimit=yes \                                                                                                                                                         
      apr_cv_mutex_robust_shared=no \                                                                                                                                                   
      apr_cv_process_shared_works=yes \                                                                                                                                                 
      ac_cv_func_setpgrp_void="yes" \                                                                                                                                                   
      apr_cv_tcp_nodelay_with_cork="yes" \                                                                                                                                              
      ac_cv_sizeof_struct_iovec="8" \                                                                                                                                                   
      apr_cv_mutex_recursive="yes" \                                                                                                                                                    
      apr_cv_pthreads_lib="-lpthread" 

BuildError:

x -I./include/arch/unix -I/ptxdist/platform-dnt3202/build-target/apr-1.5.1/include/arch/unix -I/ptxdist/platform-dnt3202/build-target/
apr-1.5.1/include -I/ptxdist/platform-dnt3202/build-target/apr-1.5.1/include/private -I/ptxdist/platform-dnt3202/build-target/apr-1.5.
1/include/private  exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$/\1/' >> apr.exp
arm-v5te-linux-gnueabi-cpp -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -I./include -I/ptxdist/platform-dnt3202/build-target/apr-1.5.1/include/arch/uni
x -I./include/arch/unix -I/ptxdist/platform-dnt3202/build-target/apr-1.5.1/include/arch/unix -I/ptxdist/platform-dnt3202/build-target/
apr-1.5.1/include -I/ptxdist/platform-dnt3202/build-target/apr-1.5.1/include/private -I/ptxdist/platform-dnt3202/build-target/apr-1.5.1/include/private  export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >> apr.exp
/ptxdist/platform-dnt3202/build-target/apr-1.5.1/build/mkdir.sh include/private
tools/gen_test_char > include/private/apr_escape_test_char.h
/bin/sh: tools/gen_test_char: cannot execute binary file
make[2]: *** [include/private/apr_escape_test_char.h] Error 126
make[2]: Leaving directory `/ptxdist/platform-dnt3202/build-target/apr-1.5.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/ptxdist/platform-dnt3202/build-target/apr-1.5.1'
Comment 1 Oliver Graute 2015-02-17 10:40:31 UTC
Created attachment 32485 [details]
patch for cross compilation

i got it working with the attachted patch. Plkease review and comment...