On Tuesday, 27. October 2009 19:14:33 Denys Vlasenko wrote: > On Tue, Oct 27, 2009 at 5:43 PM, Reinhard Thies <[email protected]> wrote: > > On Tuesday, 27. October 2009 16:04:50 Denys Vlasenko wrote: > >> On Tue, Oct 27, 2009 at 3:23 PM, Reinhard Thies <[email protected]> > > > > wrote: > >> > Hi, > >> > > >> > I am trying to cross-compile busybox using ELDK 4.2. > >> > When I try make I get the following error: > >> > ppc_6xx-gcc -Wall -Wshadow -Wwrite-strings -Wundef > >> > -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function > >> > -Wunused-value > >> > -Wmissing-prototypes -Wmissing-declarations > >> > -Wdeclaration-after-statement -Wold-style-definition > >> > -fno-builtin-strlen -finline-limit=0 > >> > -fomit-frame-pointer -ffunction-sections -fdata-sections > >> > -fno-guess-branch-probability -funsigned-char -static-libgcc > >> > -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 > >> > -Os -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h > >> > -D_GNU_SOURCE -DNDEBUG -D"BB_VER=KBUILD_STR(1.16.0.git)" > >> > -DBB_BT=AUTOCONF_TIMESTAMP applets/usage_pod.c m crypt -o > >> > applets/usage_pod > >> > ppc_6xx-gcc: m: No such file or directory > >> > ppc_6xx-gcc: crypt: No such file or directory > >> > > >> > Any ideas ? > >> > >> You have some environment variable (LDLIBS or some such) > >> which gets inserted into compile command and breaks it. > >> > >> Try "env - PATH=$PATH make". If it works, then this is it. > >> -- > >> vda > > > > Denys, > > > > thanks its compiling now. > > You just ran "env - PATH=$PATH make" without trying to figure out > what's wrong, right? > > You need to find out how your environment ended up polluted, > not just blindly use a workaround.
I have not really an idea whats wrong. I would apreciate if you could have a look to the attached file and tell me whats wrong with the environment. Thx, Reinhard
declare -x ACROBAT_PATH="/usr/local/Adobe/Acrobat7.0" declare -x COLORTERM="" declare -x CVSROOT=":pserver:devserver:/var/REP/CVS" declare -x CVSUMASK="003" declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-nkoqob9OYF,guid=13067bfe804b5e96411f5b1f4ae71818" declare -x DESKTOP_SESSION="kde" declare -x DISPLAY=":0" declare -x DM_CONTROL="/var/run/xdmctl" declare -x EDITOR="vim" declare -x GREP_OPTIONS="--color=auto" declare -x GS_LIB="/home/reithi/.fonts" declare -x GTK2_RC_FILES="/home/reithi/.gtkrc-2.0-kde:/home/reithi/.kde/share/config/gtkrc-2.0" declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/reithi/.gtkrc:/home/reithi/.kde/share/config/gtkrc" declare -x HISTCONTROL="ignoredups" declare -x HOME="/home/reithi" declare -x KDE_FULL_SESSION="true" declare -x KDE_MULTIHEAD="false" declare -x KDE_SESSION_UID="1000" declare -x KONSOLE_DCOP="DCOPRef(konsole-3781,konsole)" declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-3781,session-1)" declare -x LANG="en_US.UTF-8" declare -x LESSCLOSE="/usr/bin/lesspipe %s %s" declare -x LESSOPEN="| /usr/bin/lesspipe %s" declare -x LOGNAME="reithi" declare -x LS_COLORS="no=00:fi=00:di=01;36: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" declare -x OLDPWD="/home/bluepro" declare -x PATH="/opt/eldk/4.2/usr/bin:/opt/eldk/4.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/home/reithi/bin:/usr/local/Trolltech/Qt-4.3.2/bin:/opt/t32/bin:/opt/vispro/bin" declare -x PWD="/home/bluepro/busybox" declare -x PYTHONPATH="/home/reithi/python/tools/cam" declare -x SESSION_MANAGER="local/targa:@/tmp/.ICE-unix/3746,unix/targa:/tmp/.ICE-unix/3746" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x SSH_AGENT_PID="3692" declare -x SSH_AUTH_SOCK="/tmp/ssh-jkYCDj3661/agent.3661" declare -x T32ID="T32" declare -x T32SYS="/opt/t32" declare -x T32TMP="/tmp" declare -x TERM="xterm" declare -x USER="reithi" declare -x WINDOWID="37748744" declare -x XCURSOR_THEME="DMZ-White" declare -x XDG_SESSION_COOKIE="421c7cc04ef01e61bef737a049aacb9d-1256658967.649897-375881966" declare -x XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic"
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
