Re: r288669 breaks ports building with USE_GCC=yes

From: Pedro Giffuni <pfg_at_FreeBSD.org>
Date: Mon, 12 Oct 2015 15:46:09 -0500
(CCing Gerald as this may involve a g++ bug as well.)

Hello;

On 12/10/2015 03:33 p.m., Justin Hibbits wrote:
> Hi Pedro,
>
> On Mon, Oct 12, 2015 at 3:28 PM, Pedro Giffuni <pfg_at_freebsd.org> wrote:
>> Hi again;
>>
>> On 12/10/2015 03:16 p.m., Pedro Giffuni wrote:
>>> Hello;
>>>
>>> On 12/10/2015 02:56 p.m., Justin Hibbits wrote:
>>>> The default ports gcc for USE_GCC is still 4.8, which does not support
>>>> -fstack-protector-strong.  This breaks several ports including (from
>>>> my poudriere run): libfpx and qt4-sqlite3-plugin.
>>>>
>>>> - Justin
>>>
>>> r288669 only applies to base. It was tested with an exp-run and there were
>>> no
>>> failures so this is something wrong in your setup.
>>>
>> Ugh ... now that I remember, we actually used -stack-protector-all for the
>> exp-run
>> (which is supported in pretty much every gcc).
>>
>> Still, the change should only apply to the base system and not ports, and
>> -stack-protector-strong appears to have been backported to gcc48
>> last year (see PR 186852).
>>
>> cheers,
>>
>> Pedro.
>>
> All I can say is building with USE_GCC=yes, I see the following error:
>
> g++48: error: unrecognized command line option '-fstack-protector-strong'
>
> This is using the latest gcc48 in ports (full tree updated yesterday).

Well ... gcc48 carries the stack-protector-strong patches:

https://svnweb.freebsd.org/ports/head/lang/gcc48/files/

I will try to reproduce locally.

Pedro.
Received on Mon Oct 12 2015 - 18:46:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:00 UTC