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
Created attachment 904536 [details] build.log build log and emerge --info
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
Can you upload the environment file?
Created attachment 904537 [details] environment environment
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...
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(-)
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(-)
ago, can you let me know if you still hit issues?