Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 433435 (PR54725)

Summary: cross-*/gcc[fortran]: gfortran dies with include location "/usr/include" is unsafe for cross-compilation
Product: Gentoo Linux Reporter: Andrew Aladjev <aladjev.andrew>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: aladjev.andrew
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
URL: http://gcc.gnu.org/PR54725
See Also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54725
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info
gcc stage2 build.log

Description Andrew Aladjev 2012-08-30 12:16:18 UTC
=sys-devel/gcc-4.7.1 failed to build using command:

sudo crossdev --b 2.22.90 --g 4.7.1 --k 3.4-r2 --l 2.15-r2 armv7a-hardfloat-linux-gnueabi

Reproducible: Always

Actual Results:  
Emerging cross-gcc-stage2 failed
Comment 1 Andrew Aladjev 2012-08-30 12:16:37 UTC
Created attachment 322577 [details]
emerge info
Comment 2 Andrew Aladjev 2012-08-30 12:19:16 UTC
Created attachment 322579 [details]
gcc stage2 build.log
Comment 3 Andrew Aladjev 2012-08-30 12:26:25 UTC
(In reply to comment #2)
> Created attachment 322579 [details]

the type of this attachment is application/x-gzip (build.log.gz). unfortunately I have no permissions to change it
Comment 4 Andrew Aladjev 2012-08-30 12:54:38 UTC
=sys-devel/gcc-4.6.3 works perfect
Comment 5 SpanKY gentoo-dev 2012-09-27 05:31:34 UTC
looks like a legit bug ... running the gfortran command directly shows:
 ...
 ignoring nonexistent directory "/usr/local/include"
 ...
 #include <...> search starts here:
 ...
  /usr/include
 ...

fortran shouldn't search /usr/include :)
Comment 6 SpanKY gentoo-dev 2012-09-27 21:02:13 UTC
this might be worked around by removal of -Werror from the libgfortran build
Comment 9 Larry the Git Cow gentoo-dev 2018-10-27 11:46:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f16eb5b72bb49fa1dbdedd08ee85b95eaf67cdd

commit 7f16eb5b72bb49fa1dbdedd08ee85b95eaf67cdd
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-10-27 09:23:45 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-10-27 11:46:08 +0000

    sys-devel/gcc: cut 1.8 patchset for 6.4.0
    
    Eight new patches:
    + 103_all_remove-lieee.patch:
      drop assumed -lieee from -mieee-fp
    + 104_all_libgfortran-Werror.patch:
    + 105_all_libgomp-Werror.patch
    + 106_all_libitm-Werror.patch
    + 107_all_libatomic-Werror.patch
    + 108_all_libbacktrace-Werror.patch
    + 109_all_libsanitizer-libbacktrace-Werror.patch:
      pull in all -Werror patches from 8.2.0
    + 110_all_libstdcxx-no-vtv.patch:
      drop libvtv RPATH from libstdc++
    
    Bug: https://bugs.gentoo.org/667104
    Bug: https://bugs.gentoo.org/475350
    Bug: https://bugs.gentoo.org/229059
    Bug: http://gcc.gnu.org/PR38436
    Bug: https://bugs.gentoo.org/433435
    Bug: http://gcc.gnu.org/PR54724
    Bug: https://bugs.gentoo.org/582524
    Bug: https://gcc.gnu.org/PR85884
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 sys-devel/gcc/Manifest            |  1 +
 sys-devel/gcc/gcc-6.4.0-r5.ebuild | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2277fa55f1dd056891a5c7037741ee753df8f819

commit 2277fa55f1dd056891a5c7037741ee753df8f819
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-10-27 09:15:23 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-10-27 11:46:08 +0000

    sys-devel/gcc: cut 1.8 patchset for 7.3.0
    
    Five new patches:
    + 101_all_remove-lieee.patch:
      drop assumed -lieee from -mieee-fp
    + 102_all_libgfortran-Werror.patch:
    + 103_all_libgomp-Werror.patch
    + 104_all_libitm-Werror.patch
    + 105_all_libatomic-Werror.patch
    + 106_all_libbacktrace-Werror.patch
    + 107_all_libsanitizer-libbacktrace-Werror.patch:
      pull in all -Werror patches from 8.2.0
    + 108_all_libstdcxx-no-vtv.patch:
      drop libvtv RPATH from libstdc++
    
    Bug: https://bugs.gentoo.org/667104
    Bug: https://bugs.gentoo.org/475350
    Bug: https://bugs.gentoo.org/229059
    Bug: http://gcc.gnu.org/PR38436
    Bug: https://bugs.gentoo.org/433435
    Bug: http://gcc.gnu.org/PR54724
    Bug: https://bugs.gentoo.org/582524
    Bug: https://gcc.gnu.org/PR85884
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 sys-devel/gcc/Manifest            |  1 +
 sys-devel/gcc/gcc-7.3.0-r6.ebuild | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2018-10-27 19:22:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84f250076a6a6f33202c022a256b34284d91111

commit c84f250076a6a6f33202c022a256b34284d91111
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-10-27 19:17:52 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-10-27 19:21:54 +0000

    sys-devel/gcc: cut 1.11 patchset for 5.4.0
    
    Eight new patches:
    + 99_all_remove-lieee.patch:
      drop assumed -lieee from -mieee-fp
    + 100_all_libgfortran-Werror.patch:
    + 101_all_libgomp-Werror.patch
    + 102_all_libitm-Werror.patch
    + 103_all_libatomic-Werror.patch
    + 104_all_libbacktrace-Werror.patch
    + 105_all_libsanitizer-libbacktrace-Werror.patch:
      pull in all -Werror patches from 8.2.0
    + 106_all_libstdcxx-no-vtv.patch:
      drop libvtv RPATH from libstdc++
    
    Bug: https://bugs.gentoo.org/667104
    Bug: https://bugs.gentoo.org/475350
    Bug: https://bugs.gentoo.org/229059
    Bug: http://gcc.gnu.org/PR38436
    Bug: https://bugs.gentoo.org/433435
    Bug: http://gcc.gnu.org/PR54724
    Bug: https://bugs.gentoo.org/582524
    Bug: https://gcc.gnu.org/PR85884
    Closes: https://bugs.gentoo.org/621178
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 sys-devel/gcc/Manifest            |  1 +
 sys-devel/gcc/gcc-5.4.0-r6.ebuild | 44 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2020-07-20 22:31:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=36350040e98578b2cd6bffff91b192df1f0c21fa

commit 36350040e98578b2cd6bffff91b192df1f0c21fa
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-07-20 22:30:09 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-07-20 22:30:09 +0000

    11.0.0: drop 16_all_libgfortran-Werror.patch patch
    
    Gentoo does not ship patch with poison system directories anymore.
    Upstream did not accept -Werror removal. Let's drop downstream patch.
    
    We can always reintroduce it back if needed.
    
    Bug: https://bugs.gentoo.org/433435
    Bug: http://gcc.gnu.org/PR54724
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 11.0.0/gentoo/16_all_libgfortran-Werror.patch | 20 --------------------
 11.0.0/gentoo/README.history                  |  3 +++
 2 files changed, 3 insertions(+), 20 deletions(-)