pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/53436: firefox 61.0.1 build failure on NetBSD/i386 8.0_RC2



* On 2018-07-09 at 16:05 BST, Izumi Tsutsui wrote:

> I wonder if there is an i386 specific -fstack-protector problem,
> especially in the following function in gcc-6.4.0/gcc/config/i386/i386.c:
> 
> ---
> /* For 32-bit code we can save PIC register setup by using
>    __stack_chk_fail_local hidden function instead of calling
>    __stack_chk_fail directly.  64-bit code doesn't need to setup any PIC
>    register, so it is better to call __stack_chk_fail directly.  */
> 
> static tree ATTRIBUTE_UNUSED
> ix86_stack_protect_fail (void)
> {
>   return TARGET_64BIT
>          ? default_external_stack_protect_fail ()
>          : default_hidden_stack_protect_fail ();
> }

We used to see something similar on SunOS where i386 had stack
protector issues whereas x86_64 was fine, until I applied this patch:

  https://github.com/joyent/pkgsrc/commit/10aee3e4aef98c2bd8512ef4cb4278d0c7102d13#diff-88dca29c55d4e66af367aeefadf55a7a

Something similar might help you too.

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index