Bug 1382733 - arm_neon.h not installed
Summary: arm_neon.h not installed
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: gcc
Version: DTS 6.0 RHEL 7
Hardware: Unspecified
OS: Unspecified
Target Milestone: alpha
: 6.0
Assignee: Jakub Jelinek
QA Contact: Michael Petlan
Depends On:
TreeView+ depends on / blocked
Reported: 2016-10-07 14:26 UTC by Marek Polacek
Modified: 2016-11-15 10:11 UTC (History)
7 users (show)

Fixed In Version: devtoolset-6-gcc-6.2.1-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2016-11-15 10:11:01 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2734 0 normal SHIPPED_LIVE new packages: devtoolset-6-gcc 2016-11-15 14:47:21 UTC

Description Marek Polacek 2016-10-07 14:26:04 UTC
QE reported that a rebuild of devtoolset-6-gcc-6.2.1-2.el7 on aarch64 failed with ../../../libcpp/lex.c:754:22: fatal error: arm_neon.h: No such file or directory
Yet devtoolset-6-gcc-6.2.1-2.el7.aarch64.rpm built in brew just fine.

The problem is that when devtoolset-6-build is installed, the 'scl' macro is defined, so in gcc.spec file we do
so PATH contains DTS6.  This also changes where we look for #include <...>:


But arm_neon.h is only installed with system gcc, where this was fixed in 
https://bugzilla.redhat.com/show_bug.cgi?id=1007490, and not with DTS6 gcc.

Comment 1 Marek Polacek 2016-10-07 14:26:52 UTC
And the patch should be just

--- a/gcc.spec
+++ b/gcc.spec
@@ -6,7 +6,7 @@
 %global gcc_version 6.2.1
 # Note, gcc_release must be integer, if you want to add suffixes to
 # %{release}, append them after %{gcc_release} on Release: line.
-%global gcc_release 2
+%global gcc_release 3
 %global mpc_version 0.8.1
 %global isl_version 0.14
 %global graphviz_version 2.26.0
@@ -2033,6 +2033,9 @@ fi
+%ifarch aarch64
 %ifarch s390 s390x
@@ -2583,6 +2586,9 @@ fi
 %doc rpm.doc/changelogs/libcc1/ChangeLog*
+* Fri Oct  7 2016 Marek Polacek <polacek> 6.2.1-3
+- add arm_neon.h on aarch64 (#1382733)
 * Fri Sep 16 2016 Jakub Jelinek <jakub> 6.2.1-2
 - update from Fedora 6.2.1-2
but I haven't tested it yet.

Comment 2 Michael Petlan 2016-10-19 19:59:31 UTC
It seems it helped. The devtoolset-6-gcc-6.2.1-3.el7 can be rebuilt using itself.

Comment 4 Michael Petlan 2016-11-02 16:10:02 UTC
Works with devtoolset-6-gcc-6.2.1-3.1.el7.aarch64


Comment 6 errata-xmlrpc 2016-11-15 10:11:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.