Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883587 - dev-lang/gnat-gpl-2021-r4 installs less files with clang stricter
Summary: dev-lang/gnat-gpl-2021-r4 installs less files with clang stricter
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: fixed in 2021-r4
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-29 12:34 UTC by Agostino Sarubbo
Modified: 2024-10-29 16:50 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-11-29 12:34:46 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/gnat-gpl-2021-r4 installs less files with clang stricter.
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
To reproduce this issue:
1) Install the package with CC=clang - CXX=clang++
2) Put the list of the installed files into a file ( qlist -e PACKAGE:SLOT | sort | uniq > /tmp/qlist1 )
3) Install the package with CC=clang - CXX=clang++ - CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types
4) Put the list of the installed files into a file ( qlist -e PACKAGE:SLOT | sort | uniq > /tmp/qlist2 )
5) See the diff between the two files ( diff -ru /tmp/qlist_1 /tmp/qlist_2 )

On this machine:
- the installed files with clang are 4111
- the installed files with clang stricter are 4079

This type of report comes from a check that is a bit outside of the tinderbox, that's the reason because build.log was not provided (however in cases like these the build.log doesn't help much) but if you need further help to diagnose this issue feel free to ask.

In any case I'm providing a diff.
Comment 1 Agostino Sarubbo gentoo-dev 2022-11-29 12:35:05 UTC
DIFF:
--- /dev/fd/63  2022-11-27 14:57:52.163423760 +0100
+++ /dev/fd/62  2022-11-27 14:57:52.163423760 +0100
@@ -55,6 +55,11 @@
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/finclude/openacc.mod
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/finclude/openacc_kinds.mod
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/finclude/openacc_lib.h
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libasan.a
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libasan.so
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libasan.so.6
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libasan.so.6.0.0
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libasan_preinit.o
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libatomic.a
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libatomic.la
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libatomic.so
@@ -94,6 +99,10 @@
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libstdc++.so.6.0.28
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libstdc++fs.a
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libsupc++.a
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libubsan.a
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libubsan.so
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libubsan.so.1
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/32/libubsan.so.1.0.0
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/ada_target_properties
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/adainclude/a-assert.adb
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/adainclude/a-assert.ads
@@ -3433,6 +3442,10 @@
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/quadmath_weak.h
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/rdseedintrin.h
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/rtmintrin.h
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/include/sanitizer/asan_interface.h
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/include/sanitizer/common_interface_defs.h
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/include/sanitizer/lsan_interface.h
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/include/sanitizer/tsan_interface.h
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/sgxintrin.h
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/shaintrin.h
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/smmintrin.h
@@ -3462,6 +3475,11 @@
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/xsaveoptintrin.h
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/xsavesintrin.h
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/include/xtestintrin.h
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libasan.a
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libasan.so
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libasan.so.6
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libasan.so.6.0.0
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libasan_preinit.o
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libatomic.a
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libatomic.la
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libatomic.so
@@ -3492,6 +3510,11 @@
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libitm.so.1
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libitm.so.1.0.0
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libitm.spec
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/liblsan.a
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/liblsan.so
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/liblsan.so.0
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/liblsan.so.0.0.0
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/liblsan_preinit.o
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libquadmath.a
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libquadmath.la
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libquadmath.so
@@ -3504,6 +3527,15 @@
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libstdc++.so.6.0.28
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libstdc++fs.a
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/libsupc++.a
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libtsan.a
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libtsan.so
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libtsan.so.0
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libtsan.so.0.0.0
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libtsan_preinit.o
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libubsan.a
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libubsan.so
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libubsan.so.1
+/usr/lib/gcc/x86_64-pc-linux-gnu/10/libubsan.so.1.0.0
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/plugin/gtype.state
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/plugin/include/ada/gcc-interface/ada-tree.def
 /usr/lib/gcc/x86_64-pc-linux-gnu/10/plugin/include/addresses.h
Comment 2 Tupone Alfredo gentoo-dev 2022-11-29 18:15:23 UTC
this package does not support building with clang/clang++.
It is gcc (adapted from adacore) and build only with gcc

It is probably ignoring CC and CXX as the use flag bootstrap is not disabled.
Comment 3 Agostino Sarubbo gentoo-dev 2022-11-30 08:19:02 UTC
I understand, bbut if clang does not work here, let's hang the build process, see:
https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r5.ebuild?id=78b4d4ebbcee12f5ef4c1dfa89f80c98a582db9d#n62

thx
Comment 4 Larry the Git Cow gentoo-dev 2024-03-02 16:24:45 UTC
The bug has been closed via the following commit(s):

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

commit fd3ee0d887453c5e16eb426116ab9c510c796ed8
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2024-03-02 16:23:55 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2024-03-02 16:24:29 +0000

    dev-lang/gnat-gpl: add check for clang
    
    Closes: https://bugs.gentoo.org/883587
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)