CROSS-COMPILE Squid for ARM using ELDk 4.1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

CROSS-COMPILE Squid for ARM using ELDk 4.1

Pietro F. Menna
Hello everybody, I'm trying to cross-compile Squid for
an ARM9 (OMAP). For that I'm using the DenX toolchain
from ELDK.

I got everything set, and installed. I already got
more than 20 packages cross-compiled, but im not being
able to compile squid. I'm sending as a Attachment,
the
logs and my System Environment Vars. My linux
distribution is a Slackware 11.

I tried everything. Also to give only the --prefix
parameter and then modify the Makefile by hand but it
didn't work. Or I get compiled for i386 or i cant even
configure.

Thanks a lot.

Pietro Menna

----
root@cinbi-box:/tcc/target-omap/squid-2.6.STABLE13#
./configure --prefix=/tcc/target-omap/file_sys/usr
--host=arm-linux
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 for a BSD-compatible install...
/usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking whether to enable maintainer-specific
portions of Makefiles... no
checking for arm-linux-gcc... arm-linux-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 arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C...
none needed
checking for style of include used by make... GNU
checking dependency style of arm-linux-gcc... gcc3
checking whether arm-linux-gcc and cc understand -c
and -o together... yes
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for pkg-config... /usr/bin/pkg-config
Store modules built: ufs
Removal policies built: lru
Auth scheme modules built: basic
unlinkd enabled
checking for egrep... grep -E
checking how to run the C preprocessor...
arm-linux-gcc -E
checking for a BSD-compatible install...
/usr/bin/ginstall -c
checking for arm-linux-ranlib... arm-linux-ranlib
checking whether ln -s works... yes
checking for sh... /bin/sh
checking for false... /usr/bin/false
checking for true... /usr/bin/true
checking for rm... /usr/bin/rm
checking for mv... /usr/bin/mv
checking for mkdir... /usr/bin/mkdir
checking for ln... /usr/bin/ln
checking for perl... /usr/bin/perl
checking for ar... /usr/bin/ar
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none
required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for stddef.h... yes
checking for limits.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for netinet/in.h... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for assert.h... yes
checking for bstring.h... no
checking for crypt.h... yes
checking for ctype.h... yes
checking for errno.h... yes
checking for execinfo.h... yes
checking for fcntl.h... yes
checking for fnmatch.h... yes
checking for getopt.h... yes
checking for gnumalloc.h... no
checking for grp.h... yes
checking for libc.h... no
checking for linux/netfilter_ipv4.h... yes
checking for linux/netfilter_ipv4/ip_tproxy.h... no
checking for malloc.h... yes
checking for math.h... yes
checking for memory.h... yes
checking for mount.h... no
checking for net/if.h... yes
checking for net/pfvar.h... no
checking for netdb.h... yes
checking for netinet/if_ether.h... yes
checking for netinet/tcp.h... yes
checking for openssl/err.h... yes
checking for openssl/md5.h... yes
checking for openssl/ssl.h... yes
checking for openssl/engine.h... yes
checking for paths.h... yes
checking for poll.h... yes
checking for pwd.h... yes
checking for regex.h... yes
checking for resolv.h... yes
checking for sched.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for string.h... yes
checking for strings.h.. . yes
checking for sys/bitypes.h... yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/mount.h... yes
checking for sys/msg.h... yes
checking for sys/prctl.h... yes
checking for sys/resource.h... yes
checking for sys/poll.h... yes
checking for sys/select.h... yes
checking for sys/stat.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking for syscall.h... yes
checking for sys/syscall.h... yes
checking for sys/time.h... yes
checking for sys/un.h... yes
checking for sys/vfs.h... yes
checking for sys/wait.h... yes
checking for sys/event.h... no
checking for syslog.h... yes
checking for time.h.. . yes
checking for unistd.h... yes
checking for utime.h... yes
checking for varargs.h... no
checking for byteswap.h... yes
checking for glib.h... no
checking for stdint.h... yes
checking for inttypes.h.. . yes
checking for grp.h... (cached) yes
checking for nss_common.h... no
checking for nss.h... yes
checking for db.h... yes
checking for db_185.h... yes
checking for aio.h... yes
checking for ip_compat.h... no
checking for ip_fil_compat.h... no
checking for ip_fil.h... no
checking for ip_nat.h... no
checking for ipl.h... no
checking for netinet/ip_compat.h... no
checking for netinet/ip_fil_compat.h... no
checking for netinet/ip_fil.h... no
checking for netinet/ip_nat.h... no
checking for netinet/ipl.h... no
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking if ANSI prototypes work... yes
checking for tm->tm_gmtoff... yes
checking for struct mallinfo... yes
checking for extended mallinfo... no
checking for struct rusage... yes
checking for ip->ip_hl... yes
checking for void *... yes
checking size of void *... 4
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking size of int8_t... configure: error: cannot
run test program while cross compiling
See `config.log' for more details.
root@cinbi-box:/tcc/target-omap/squid-2.6.STABLE13#

----------
declare -x CC="arm-linux-gcc"
declare -x COLORTERM=""
declare -x
CPLUS_INCLUDE_PATH="/usr/lib/qt/include:/usr/lib/qt/include"
declare -x CROSS_COMPILE="arm-linux-"
declare -x DESKTOP_SESSION="default"
declare -x DISPLAY=":0.0"
declare -x DM_CONTROL="/var/run/xdmctl"
declare -x GDK_USE_XFT="1"
declare -x GS_LIB="/root/.fonts"
declare -x
GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/root/.gtkrc-2.0:/root/.kde/share/config/gtkrc-2.0"
declare -x
GTK_RC_FILES="/etc/gtk/gtkrc:/root/.gtkrc:/root/.kde/share/config/gtkrc"
declare -x HOME="/root"
declare -x HOSTNAME="cinbi-box.no-ip.org"
declare -x INPUTRC="/etc/inputrc"
declare -x JAVA_HOME="/usr/lib/java"
declare -x KDEDIR="/opt/kde"
declare -x KDE_FULL_SESSION="true"
declare -x KDE_MULTIHEAD="false"
declare -x
KONSOLE_DCOP="DCOPRef(konsole-2587,konsole)"
declare -x
KONSOLE_DCOP_SESSION="DCOPRef(konsole-2587,session-1)"
declare -x LANG="en_US"
declare -x LC_COLLATE="C"
declare -x LESS="-M"
declare -x LESSOPEN="|lesspipe.sh %s"
declare -x LOGNAME="root"
declare -x
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.bat=01;32:*.BAT=01;32:*.btm=01;32:*.BTM=01;32:*.cmd=01;32:*.CMD=01;32:*.com=01;32:*.COM=01;32:*.dll=01;32:*.DLL=01;32:*.exe=01;32:*.EXE=01;32:*.arj=01;31:*.bz2=01;31:*.deb=01;31:*.gz=01;31:*.lzh=01;31:*.rar=01;31:*.RAR=01;31:*.rpm=01;31:*.tar=01;31:*.taz=01;31:*.tb2=01;31:*.tbz2=01;31:*.tbz=01;31:*.tgz=01;31:*.tz2=01;31:*.z=01;31:*.Z=01;31:*.zip=01;31:*.ZIP=01;31:*.zoo=01;31:*.asf=01;35:*.ASF=01;35:*.avi=01;35:*.AVI=01;35:*.bmp=01;35:*.BMP=01;35:*.flac=01;35:*.FLAC=01;35:*.gif=01;35:*.GIF=01;35:*.jpg=01;35:*.JPG=01;35:*.jpeg=01;35:*.JPEG=01;35:*.m2a=01;35:*.M2A=01;35:*.m2v=01;35:*.M2V=01;35:*.m4a=01;35:*.M4A=01;35:*.m4p=01;35:*.M4P=01;35:*.m4v=01;35:*.M4V=01;35:*.mov=01;35:*.MOV=01;35:*.mp3=01;35:*.MP3=01;35:*.mpc=01;35:*.MPC=01;35:*.mpeg=01;35:*.MPEG=01;35:*.mpg=01;35:*.MPG=01;35:*.ogg=01;35:*.OGG=01;35:*.pbm=01;35:
*.pgm=01;35:*.png=01;35:*.PNG=01;35:*.ppm=01;35:*.rm=01;35:*.RM=01;35:*.tga=01;35:*.TGA=01;35:*.tif=01;35:*.TIF=01;35:*.tiff=01;35:*.TIFF=01;35:*.wav=01;35:*.WAV=01;35:*.wma=01;35:*.WMA=01;35:*.wmv=01;35:*.WMV=01;35:*.xbm=01;35:*.xcf=01;35:*.xpm=01;35:*.xwd=01;35:*.XWD=01;35:"
declare -x LS_OPTIONS=" -F -b -T 0 --color=auto "
declare -x
MANPATH="/usr/local/man:/usr/man:/usr/X11R6/man:/usr/lib/java/man:/opt/kde/man:/usr/lib/qt/doc/man:/usr/share/texmf/man"
declare -x MINICOM="-c on"
declare -x
OLDPWD="/tcc/target-omap/squid-2.6.STABLE13"
declare -x
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:/opt/eldk/usr/bin:/opt/eldk/bi"
declare -x
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/kde/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/kde/lib/pkgconfig"
declare -x PS1="\\u@\\h:\\w\\\$ "
declare -x PS2="> "
declare -x PWD="/root"
declare -x QTDIR="/usr/lib/qt"
declare -x
SESSION_MANAGER="local/cinbi-box:/tmp/.ICE-unix/2512"
declare -x SHELL="/bin/bash"
declare -x SHLVL="2"
declare -x
T1LIB_CONFIG="/usr/share/t1lib/t1lib.config"
declare -x TERM="xterm"
declare -x USER="root"
declare -x WINDOWID="35651589"
declare -x XCURSOR_THEME="default"
declare -x XDG_CONFIG_DIRS="/opt/kde/etc/xdg"
declare -x
XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic"


Apagar Responder Encaminhar Transferir
Anterior | Próxima | Voltar às mensagens

Apagar Responder Encaminhar Transferir
Anterior | Próxima | Voltar às mensagens