Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883583 - app-emulation/aranym-1.1.0 installs less files with clang stricter
Summary: app-emulation/aranym-1.1.0 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: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on: 900322
Blocks:
  Show dependency tree
 
Reported: 2022-11-29 12:21 UTC by Agostino Sarubbo
Modified: 2023-03-19 02:10 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:21:51 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-emulation/aranym-1.1.0 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 34
- the installed files with clang stricter are 32

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:22:08 UTC
DIFF:
--- /dev/fd/63  2022-11-22 18:28:16.870517607 +0100
+++ /dev/fd/62  2022-11-22 18:28:16.870517607 +0100
@@ -1,5 +1,6 @@
 /usr/bin/aranym
 /usr/bin/aranym-jit
+/usr/bin/aratapif
 /usr/share/applications/aranym-jit.desktop
 /usr/share/applications/aranym.desktop
 /usr/share/aranym/arabridge
@@ -29,4 +30,5 @@
 /usr/share/icons/hicolor/48x48/apps/aranym.png
 /usr/share/man/man1/aranym-jit.1.bz2
 /usr/share/man/man1/aranym.1.bz2
+/usr/share/man/man1/aratapif.1.bz2
 /usr/share/pixmaps/aranym.png
Comment 2 Ionen Wolkens gentoo-dev 2022-11-30 01:45:24 UTC
  if [[ "x$ac_cv_tun_tap_support" = "xyes" ]]; then
    AC_DEFINE([ETHERNET_SUPPORT], 1)
    NEED_ARATAPIF="yes"

...

configure:12364: checking whether TUN/TAP is supported
configure:12398: clang -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types -c -march=native -O2 conftest.c >&5
conftest.c:107:5: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
    memset(&ifr, 0, sizeof(ifr));
    ^
conftest.c:107:5: note: include the header <string.h> or explicitly provide a declaration for 'memset'
1 error generated.
configure:12398: $? = 1
Comment 3 Larry the Git Cow gentoo-dev 2023-03-19 02:10:34 UTC
The bug has been closed via the following commit(s):

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

commit 2bac2b7b6edcd8b849b20578bc9e70302091f6a3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-19 02:04:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-19 02:07:38 +0000

    app-emulation/aranym: fix configure w/ clang 16
    
    Closes: https://bugs.gentoo.org/883583
    Closes: https://bugs.gentoo.org/900322
    Signed-off-by: Sam James <sam@gentoo.org>

 ...{aranym-1.1.0.ebuild => aranym-1.1.0-r1.ebuild} |  1 +
 .../files/aranym-1.1.0-configure-clang16.patch     | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)