[OpenWrt-Users] error: C compiler cannot create executables
Jim Redman
jredman at ergotech.com
Tue Mar 25 15:01:36 CET 2008
Robert,
I may have a workaround for this problem. It seems that it's pretty
common on a range of distros (FC8, Debian and Ubuntu at least), but only
with certain targets (atheros, broadcom and NSLU2 - all ARM?):
http://www.google.com/search?hl=en&q=unrecognized+option+Qy+openwrt&btnG=Search
This post has the solution that seems (so far) to work for me
http://forum.openwrt.org/viewtopic.php?pid=61568
"I compiled from latest trunk (revision > 10000) but in the "advanced
configuration option" -> "toolchain options" -> "gcc compiler version" I
set to use gcc 3.4.6 instead of default (gcc 4.1.2)."
Whether the image runs or not is, I suppose, another question...
Jim
PS .configs (current and .old with 4.x) mailed off list, if anyone else
would like a look at them, please let me know.
Robert P. J. Day wrote:
> On Tue, 25 Mar 2008, Jim Redman wrote:
>
>> Georg,
>>
>> Georg Lippold wrote:
>>> Jim Redman wrote:
>>>> I may have some more insight into this problem.
>>>> configure:2229: error: C compiler cannot create executables
>>>>
>>>> So, it seems that the problem is that the option '-Qy' is not understood
>>>> by as. I've been fighting this same problem all day building Angstrom.
>>>> No solution there, only a work-around.
>>>>
>>>> Anyone have any suggestions as to how to solve this?
>>> Pick one:
>>>
>>> [ ] Contact RedHat support
>>> [ ] Compile gcc from scratch
>>> [ ] Install different linux distribution (works for me with Gentoo)
>> Interesting suggestions...
>>
>> Since the complaint is about armeb-linux-uclibc-as:
>>
>> /tmp/openwrt/trunk/staging_dir/toolchain-armeb_gcc4.1.2/bin/armeb-linux-uclibc-as:
>> unrecognized option `-Qy'
>>
>> I'm wondering why you would think that this is a RedHat problem, or
>> a problem with the distro that I'm running. Is there some
>> connection between the options accepted by armeb-linux-uclibc-as and
>> the tools of the OS?
>>
>> armeb-linux-uclibc-as was (presumably) built as part of this
>> toolchain, which involves a whole gcc compile.
>>
>> FC8 would seem to be a pretty mainstream distro. I could play
>> distro bingo and go through options, but that doesn't seem to be the
>> best way to solve a build problem.
>
> i have a fully-updated F8 system here. send me your .config file.
> and which version of openwrt are you using? the latest repository?
>
> rday
> --
>
> ========================================================================
> Robert P. J. Day
> Linux Consulting, Training and Annoying Kernel Pedantry:
> Have classroom, will lecture.
>
> http://crashcourse.ca Waterloo, Ontario, CANADA
> ========================================================================
> _______________________________________________
> openwrt-users mailing list
> openwrt-users at lists.openwrt.org
> http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
--
Jim Redman
(505) 662 5156 x85
http://www.ergotech.com
More information about the openwrt-users
mailing list