Poor error handling in `cat nonexistentfile` (was: Re: crosstool 0.38)

Dan Kegel dank@kegel.com
Fri Sep 30 14:35:00 GMT 2005


Greg Chandler wrote:
> While trying to build:
> eval `cat arm-xscale.dat gcc-3.4.2-glibc-20040827.dat` sh all.sh --notest
> 
> I get:
> + TARBALLS_DIR=/home/chandleg/downloads
> + RESULT_TOP=/usr/crosstool
> + export TARBALLS_DIR RESULT_TOP
> + GCC_LANGUAGES=c,c++
> + export GCC_LANGUAGES
> + mkdir -p /usr/crosstool
> ++ cat arm-xscale.dat gcc-3.4.2-glibc-20040827.dat
> cat: gcc-3.4.2-glibc-20040827.dat: No such file or directory
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> + eval 'KERNELCONFIG=`pwd`/arm.config' TARGET=arm-xscale-linux-gnu
> 'TARGET_CFLAGS="-O"' 'GCC_EXTRA_CONFIG="--with-cpu=xscale'
> '--enable-cxx-flags=-mcpu=xscale"' sh all.sh --notest
> +++ pwd
> ++ KERNELCONFIG=/usr/src/crosstool-0.38/arm.config
> ++ TARGET=arm-xscale-linux-gnu
> ++ TARGET_CFLAGS=-O
> ++ GCC_EXTRA_CONFIG=--with-cpu=xscale --enable-cxx-flags=-mcpu=xscale
> ++ sh all.sh --notest
> Please set BINUTILS_DIR to the bare filename of the binutils tarball or
> directory

Yep.  You referenced a file that doesn't exist.

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list