Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940601 - dev-lang/ada-bootstrap-0_p2021-r1 fails to compile: gcc: error: unrecognized command line option -fno-diagnostics-color/var/tmp/portage/dev-lang/ada-bootstrap-0_p2021-r1/work/gnat-gpl-2014-x86_64-linux-bin/bin/gcc -c -O2 -fno-strict-aliasing -O2 -march=x
Summary: dev-lang/ada-bootstrap-0_p2021-r1 fails to compile: gcc: error: unrecognized ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux ADA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-01 08:21 UTC by Agostino Sarubbo
Modified: 2025-01-23 06:41 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,554.66 KB, text/plain)
2024-10-01 08:21 UTC, Agostino Sarubbo
Details
environment (environment,79.49 KB, text/plain)
2024-10-01 09:48 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 2024-10-01 08:21:09 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/ada-bootstrap-0_p2021-r1 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-10-01 08:21:10 UTC
Created attachment 904536 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-10-01 08:21:11 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


checking whether objcopy supports debuglink... objcopy: /tmp/ls123: cannot fill debug link section `x': No such file or directory
*** This configuration is not supported in the following subdirectories:
gcc: error: unrecognized command line option '-fno-diagnostics-color'/var/tmp/portage/dev-lang/ada-bootstrap-0_p2021-r1/work/gnat-gpl-2014-x86_64-linux-bin/bin/gcc -c -O2 -fno-strict-aliasing  -O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0  -W -Wall -I- -I. -Iada/generated -Iada -I/var/tmp/portage/dev-lang/ada-bootstrap-0_p2021-r1/work/gcc-10-2021-20210519-19A74-src/gcc/ada /var/tmp/portage/dev-lang/ada-bootstrap-0_p2021-r1/work/gcc-10-2021-20210519-19A74-src/gcc/ada/atree.adb -o ada/atree.o
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-01 08:22:57 UTC
Can you upload the environment file?
Comment 4 Agostino Sarubbo gentoo-dev 2024-10-01 09:48:19 UTC
Created attachment 904537 [details]
environment

environment
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-01 09:53:04 UTC
declare -x CBUILD="x86_64-pc-linux-gnu"
declare -x CC="/var/tmp/portage/dev-lang/ada-bootstrap-0_p2021-r1/work/gnat-gpl-2014-x86_64-linux-bin/bin/gcc"
[...]
declare -x COMMON_FLAGS="-O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0"
[...]
declare -x CXXFLAGS="-O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fmessage-length=0 -O2 -fno-strict-aliasing"

For some reason, we're stripping from CFLAGS, but not CXXFLAGS and FCFLAGS and so on...
Comment 6 Larry the Git Cow gentoo-dev 2025-01-07 20:01:03 UTC
The bug has been referenced in the following commit(s):

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

commit 76a03786adbf398191760dee58a4a06e44ebc584
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-07 19:59:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-07 19:59:29 +0000

    dev-lang/gnat-gpl: strip unsupported flags as we do in ada-bootstrap
    
    The binhost apparently tried to build gnat-gpl instead of ada-bootstrap
    (why?) and failed with:
    ```
    checking whether the GNU Fortran compiler is working... no
    configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla,
    attaching /var/tmp/portage/dev-lang/gnat-gpl-2021-r5/work/build/x86_64-pc-linux-gnu/libgfortran/config.log
    ```
    
    Let's try use the same stripping-unsupported-flags approach as we do
    in ada-bootstrap until we remove gnat-gpl entirely.
    
    Bug: https://bugs.gentoo.org/938150
    Bug: https://bugs.gentoo.org/940601
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Comment 7 Larry the Git Cow gentoo-dev 2025-01-07 20:09:57 UTC
The bug has been referenced in the following commit(s):

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

commit bac3705f1e4856701675b844bceec9a7ac8705ce
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-07 20:09:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-07 20:09:02 +0000

    dev-lang/ada-bootstrap: strip unsupported CXXFLAGS too
    
    Bug: https://bugs.gentoo.org/938150
    Bug: https://bugs.gentoo.org/940601
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/ada-bootstrap/ada-bootstrap-0_p2021-r1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

commit 6b8e64afee3767d708144c0f7604a1432fe8618b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-07 20:06:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-07 20:06:43 +0000

    dev-lang/gnat-gpl: strip unsupported CXXFLAGS too
    
    Bug: https://bugs.gentoo.org/938150
    Bug: https://bugs.gentoo.org/940601
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-07 20:13:53 UTC
ago, can you let me know if you still hit issues?