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

Jim Redman jredman at ergotech.com
Mon Mar 24 20:00:33 CET 2008



Robert P. J. Day wrote:
> On Mon, 24 Mar 2008, Jim Redman wrote:
> 
>>
>> Robert P. J. Day wrote:
>>> On Mon, 24 Mar 2008, Jim Redman wrote:
>>>> [...]
>>>> 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]
>>>>
>>> are you by chance using "ccache"?
>> Understanding that there are no stupid questions, but this is
>> pushing the envelope...
>>
>> How would I know, and what should I do to enable/disable it to solve
>> the problem?
> 
> check your package list -- what distro are you building on?  and i
> think you can run:
> 
>   $ ls -l /usr/bin/gcc
> 
> if that's a link to ccache, try taking ccache out and see what
> happens.  this is all just speculation.

The system is FC8

$ file /usr/bin/gcc
/usr/bin/gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

there is no file called ccache (locate finds only the yum headers).

]$ /usr/bin/gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada 
--enable-java-awt=gtk --disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic 
--host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)

Is there an easier way to build just a single package?  Is there a 
package for RXTX that already exists (if so I haven't found it).

Thanks,

Jim

-- 
Jim Redman
(505) 662 5156 x85
http://www.ergotech.com


More information about the openwrt-users mailing list