[OpenWrt-Users] error: C compiler cannot create executables

Robert P. J. Day rpjday at crashcourse.ca
Mon Mar 24 19:21:15 CET 2008


On Mon, 24 Mar 2008, Jim Redman wrote:

> I'm trying to build OpenWrt for the NSLU2.  I'm doing this because I
> want to try and build RXTX (http://www.rxtx.org) for OpenWrt/NSLU2.
> Since I'm new to OpenWrt and suggestions, comments, help, etc. would be
> much appreciated.
>
> When building the trunk or the source I get to here:
>
>   make[3] -C toolchain/binutils install
>   make[3] -C toolchain/gcc prepare
>   make[3] -C toolchain/gcc compile
>   make[3] -C toolchain/uClibc compile
>   make[3] -C toolchain/gcc install
> make -r world: build failed. Please re-run make with V=99 to see what's
> going on
> make: *** [world] Error 1
>
> when I run with V=99 I get:
>
> checking GCC_EXEC_PREFIX variable... ok
> checking whether to place generated files in the source directory... no
> checking whether a default linker was specified... no
> checking whether a default assembler was specified... no
> checking for i386-redhat-linux-gcc... (cached) gcc
> checking for C compiler default output file name... configure: error: C
> compiler cannot create executables
> See `config.log' for more details.
> make[5]: *** [configure-gcc] Error 1
> make[5]: Leaving directory
> `/tmp/openwrt/trunk/build_dir/toolchain-armeb_gcc4.1.2/gcc-4.1.2-final'
> make[4]: *** [all] Error 2
> make[4]: Leaving directory
> `/tmp/openwrt/trunk/build_dir/toolchain-armeb_gcc4.1.2/gcc-4.1.2-final'
> make[3]: ***
> [/tmp/openwrt/trunk/staging_dir/toolchain-armeb_gcc4.1.2/stamp/.gcc_installed]
>
> Error 2

are you by chance using "ccache"?

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================


More information about the openwrt-users mailing list