Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 474686 Details for
Bug 549546
dev-lang/gnat-gcc-4.3.6 - checking for C compiler default output file name... configure: error: C compiler cannot create executables
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes C compiler check faiilure in compile stage
gnatbuild_eclass.patch (text/plain), 1.02 KB, created by
Rafal Lalik
on 2017-05-30 09:46:23 UTC
(
hide
)
Description:
Fixes C compiler check faiilure in compile stage
Filename:
MIME Type:
Creator:
Rafal Lalik
Created:
2017-05-30 09:46:23 UTC
Size:
1.02 KB
patch
obsolete
>--- a/gnatbuild.eclass 2017-02-28 21:27:04.000000000 +0100 >+++ b/gnatbuild.eclass 2017-05-30 11:42:19.346471147 +0200 >@@ -468,6 +468,23 @@ > fi > > export CC="${GNATBOOT}/bin/gnatgcc" >+ >+ # See bug #549546 >+ # If user has march/mtune/mcpu set to value not suppirted by the requested gnatgcc version >+ # then checking for C compiler will fail. Therefore, replace with the native architecture. >+ einfo "Checking for CFLAGS compatibility" >+ if [[ $(echo "" | ${CC} -fsyntax-only ${CFLAGS} -xc - &> /dev/null) != 0 ]]; then >+ ewarn "CFLAGS=\"${CFLAGS}\" not supported, replacing with -march|-mtune|-mcpu=native" >+ replace-flags -march=* -march=native >+ replace-flags -mtune=* -mtune=native >+ replace-flags -mcpu=* -mcpu=native >+ ewarn "New CFLAGS=\"${CFLAGS}\"" >+ ewarn "New CXXFLAGS=\"${CFLAGS}\"" >+ else >+ export CFLAGS="${CFLAGS}" >+ export CXXFLAGS="${CFLAGS}" >+ fi >+ > # CPATH is supposed to be applied for any language, thus > # superceding either of C/CPLUS/OBJC_INCLUDE_PATHs > export CPATH="${GNATLIB}/include"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 549546
: 474686