Hi,

Is this perchance related to the problem I mentioned the other day? I cannot 
get the grub package (stage 2) to build - I get the __stack_chk_fail error, 
even though -fno-stack-protector is definitely set. I am not using the host 
toolchain, just the standard, out of the box toolchain built from an OWRT svn 
checkout (r 23210). I do have a working copy of grub on my host Ubuntu box 
which I can use, but this is a pain in the butt. The standard Kamikaze 8.09.2 
built from the source tarball works just fine however. I get exactly this same 
problem when I try to build on my iMac (8.09.2 build works fine though). I've 
spent hours and hours on this one, and am still no nearer understanding what is 
going on.

best regards

Steve

On 11 Oct 2010, at 12:59, Florian Fainelli wrote:

> Hi,
> 
> On Monday 11 October 2010 13:52:12 Roberto Riggio wrote:
>>  Il 11/10/2010 13:30, Florian Fainelli ha scritto:
>>> Hello Roberto,
>> 
>> Hi
>> 
>>> I just reviewed this part of the patch, and it is enclosed with an
>>> ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
>>> 
>>> which is evaluated to true, in the case of a non-external toolchain
>>> build, so your patch also removes -fhonour-opts for non-external
>>> toolchain builds, unless I got this part wrong?
>> 
>> Probably I've misunderstood a suggest of yours in a a previous email.
> 
> I asked you if you were using an external toolchain and you seem to have said 
> yes, I guess both of us misunderstood each other.
> 
>> 
>> I'm not using an external toolchain, however I'm getting this error:
>> 
>> cc1plus: error: unrecognized command line option "-fhonour-copts"
> 
> Ok, but that means you have patched your toolchain not to include the -
> fhonour-opts patch right?
> 
>> 
>> when I try to compile a package. The makefile that I'm using is very
>> lightweight:
>> 
>> EXTRA_CFLAGS=-MD -fno-stack-protector
>> 
>> 
>> CONFIGURE_ARGS += \
>>     --enable-userlevel \
>>     --enable-wifi \
>>     --enable-wing \
>>     --disable-linuxmodule \
>>     --disable-dynamic-linking \
>> 
>> and then the default compile and configure.
>> 
>> This when building from trunk with either gcc 4.1.2 (the default one) and
>> 4.4.4.
> 
> Unless this is either the fhonour-copts patch missing in gcc-4.4.4 or, a 
> porting bug which prevents its use when -fno-stack-protector, I do not see 
> what is wrong.
> --
> Florian
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to