Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713904 - net-misc/dropbear fails to compile on ia64
Summary: net-misc/dropbear fails to compile on ia64
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2018-15599
  Show dependency tree
 
Reported: 2020-03-22 09:02 UTC by Agostino Sarubbo
Modified: 2023-04-18 03:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,213.55 KB, text/plain)
2020-03-22 09:02 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-03-22 09:02:07 UTC
This is an auto-filled bug because net-misc/dropbear fails to compile on ia64. Feel free to adjust the summary to clarify the exact issue. Attached build log and emerge --info
Comment 1 Agostino Sarubbo gentoo-dev 2020-03-22 09:02:17 UTC
Created attachment 624148 [details]
build.log

build log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-03-22 18:52:10 UTC
Key parts:

bn_fast_mp_invmod.c: In function ‘fast_mp_invmod’:
bn_fast_mp_invmod.c:143:1: internal compiler error: in sel_target_adjust_priority, at sel-sched.c:3334
  143 | }
      | ^
   * ia64-unknown-linux-gnu-gcc bn_fast_mp_montgomery_reduce.o
   * ia64-unknown-linux-gnu-gcc bn_fast_s_mp_mul_digs.o
...
bn_fast_s_mp_mul_high_digs.c: In function ‘fast_s_mp_mul_high_digs’:
bn_fast_s_mp_mul_high_digs.c:93:1: internal compiler error: in sel_target_adjust_priority, at sel-sched.c:3334
   93 | }
      | ^
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-03-22 18:56:11 UTC
(side note: may be worth devendoring libtommath/crypto).
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-03-22 19:10:59 UTC
(In reply to sam_c (Security Padawan) from comment #2)
> Key parts:
> 
> bn_fast_mp_invmod.c: In function ‘fast_mp_invmod’:
> bn_fast_mp_invmod.c:143:1: internal compiler error: in
> sel_target_adjust_priority, at sel-sched.c:3334

slyfox pointed out this is a known gcc bug (https://gcc.gnu.org/PR88879).

The patch there looks like it is already in Gentoo (bug 707958):
https://gitweb.gentoo.org/proj/gcc-patches.git/tree/9.2.0/gentoo/34_all_ia64-neg-insn-cost.patch.

The patch is in gcc 9.2.0-r4, can you update to this and try again?
Comment 5 Agostino Sarubbo gentoo-dev 2020-03-28 08:47:16 UTC
it works with that gcc version
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-18 18:11:23 UTC
(In reply to Agostino Sarubbo from comment #5)
> it works with that gcc version

Cool, thanks!