Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811723 - dev-util/clazy-1.10 fails tests: - 1 - assert-with-side-effects (Failed)
Summary: dev-util/clazy-1.10 fails tests: - 1 - assert-with-side-effects (Failed)
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: TESTFAILURE
: 834898 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-09-05 08:56 UTC by Toralf Förster
Modified: 2024-09-21 13:34 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.06 KB, text/plain)
2021-09-05 08:56 UTC, Toralf Förster
Details
LastTest.log (LastTest.log,97.84 KB, text/plain)
2021-09-05 08:56 UTC, Toralf Förster
Details
dev-util:clazy-1.10:20210905-083909.log (dev-util:clazy-1.10:20210905-083909.log,146.73 KB, text/plain)
2021-09-05 08:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,65.76 KB, text/plain)
2021-09-05 08:56 UTC, Toralf Förster
Details
environment (environment,87.95 KB, text/plain)
2021-09-05 08:57 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.07 KB, application/x-bzip)
2021-09-05 08:57 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.98 KB, application/x-bzip)
2021-09-05 08:57 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.27 KB, application/x-bzip)
2021-09-05 08:57 UTC, Toralf Förster
Details
tests.tar.bz2 (tests.tar.bz2,6.00 KB, application/x-bzip)
2021-09-05 08:57 UTC, Toralf Förster
Details
LastTest.log with *PATH fix (file_811723.txt,243.45 KB, text/plain)
2021-10-16 23:46 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-09-05 08:56:52 UTC
The following tests FAILED:
	  1 - assert-with-side-effects (Failed)
	  2 - container-inside-loop (Failed)
	  3 - detaching-member (Failed)
	  4 - heap-allocated-small-trivial-type (Failed)
	  5 - ifndef-define-typo (Failed)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4_test-20210904-155741

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.54.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit 284510eb14f4e88b798971b8754dfc1bf2dc9481
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 5 06:51:34 2021 +0000

    2021-09-05 06:51:31 UTC

emerge -qpvO dev-util/clazy
[ebuild  N    ] dev-util/clazy-1.10
Comment 1 Toralf Förster gentoo-dev 2021-09-05 08:56:54 UTC
Created attachment 737623 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-09-05 08:56:56 UTC
Created attachment 737626 [details]
LastTest.log
Comment 3 Toralf Förster gentoo-dev 2021-09-05 08:56:58 UTC
Created attachment 737629 [details]
dev-util:clazy-1.10:20210905-083909.log
Comment 4 Toralf Förster gentoo-dev 2021-09-05 08:56:59 UTC
Created attachment 737632 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2021-09-05 08:57:01 UTC
Created attachment 737635 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2021-09-05 08:57:02 UTC
Created attachment 737638 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-09-05 08:57:04 UTC
Created attachment 737641 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2021-09-05 08:57:05 UTC
Created attachment 737644 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2021-09-05 08:57:06 UTC
Created attachment 737647 [details]
tests.tar.bz2
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-16 23:28:12 UTC
Poking..


----------------------------------------------------------

[FAIL] isempty-vs-count (Failed to build test. Check isempty-vs-count/main.cpp.out for details)
-------------------
Contents of isempty-vs-count/main.cpp.out:
error: unable to load plugin 'ClazyPlugin.so': 'ClazyPlugin.so: cannot open shared object file: No such file or directory'
Comment 11 Larry the Git Cow gentoo-dev 2021-10-16 23:42:05 UTC
The bug has been referenced in the following commit(s):

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

commit d6a0bf9437a7278215c25a7e3f65cdbb5a8608d6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-16 23:41:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-16 23:41:57 +0000

    dev-util/clazy: run tests against built copy of clazy
    
    This doesn't get us all of the way there yet though,
    tests still fail due to Clang shenanigans with include
    paths(?)
    
    Bug: https://bugs.gentoo.org/811723
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/clazy/clazy-1.10.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-16 23:46:13 UTC
Created attachment 745224 [details]
LastTest.log with *PATH fix

Note that we should probably be using python-any-r1 for tests too.

Anyway, lots of errors like this:
```
Contents of container-inside-loop/main.cpp.out:
In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/container-inside-loop/main.cpp:1:
In file included from /usr/include/qt5/QtCore/QVector:1:
In file included from /usr/include/qt5/QtCore/qvector.h:43:
In file included from /usr/include/qt5/QtCore/qalgorithms.h:43:
In file included from /usr/include/qt5/QtCore/qglobal.h:46:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
1 error generated.
```
Comment 13 Andreas Sturmlechner gentoo-dev 2021-11-06 23:34:04 UTC
All tests pass for me, I can't reproduce any of this.
Comment 14 Larry the Git Cow gentoo-dev 2021-12-13 00:11:40 UTC
The bug has been referenced in the following commit(s):

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

commit 53bb19912117d36da9df66dca656213347391006
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-10 23:59:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-13 00:11:30 +0000

    dev-util/clazy: BDEPEND on Python for tests
    
    Avoid using 'python3' directly.
    
    Still not passing for me though.
    
    Bug: https://bugs.gentoo.org/811723
    Signed-off-by: Sam James <sam@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/23246
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/clazy/clazy-1.10-r1.ebuild | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

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

commit af5f598a4e43dd87b224e4281b167773c3a5d74e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-10 23:24:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-13 00:11:29 +0000

    dev-util/clazy: use llvm.eclass to declare compatibility and build patch
    
    - We need to use llvm.eclass to ensure we don't use too new of
      a version of LLVM and Clang.
    
      We're now using the llvm.eclass mechanisms to enforce the same
      versions of Clang and LLVM.
    
    - Throw in a build patch from upstream
      (upstream commit b74c8729b7b71528c1528579435cda7fdb5d31b4) which
      was necessary for me.
    
    Bug: https://bugs.gentoo.org/811723
    Bug: https://bugs.gentoo.org/823726
    Closes: https://bugs.gentoo.org/824986
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{clazy-1.10.ebuild => clazy-1.10-r1.ebuild}    | 25 ++++++------
 dev-util/clazy/files/clazy-1.10-gcc-build.patch    | 44 ++++++++++++++++++++++
 dev-util/clazy/files/clazy-1.10-use-c++17.patch    | 20 ++++++++++
 3 files changed, 78 insertions(+), 11 deletions(-)
Comment 15 Agostino Sarubbo gentoo-dev 2022-02-13 10:11:50 UTC
Update summary. [something] is used when something refers to an overlay
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-16 15:39:51 UTC
*** Bug 834898 has been marked as a duplicate of this bug. ***
Comment 17 Andreas Sturmlechner gentoo-dev 2022-05-18 15:02:54 UTC
All tests work fine for me.
Comment 18 Larry the Git Cow gentoo-dev 2024-09-21 13:34:22 UTC
The bug has been referenced in the following commit(s):

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

commit a1fcee35f62bad34abe7da2be9856645fbce8af6
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-09-21 13:15:24 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-09-21 13:33:57 +0000

    dev-util/clazy: add 1.12 w/o KEYWORDS, enable py3.13, LLVM-18
    
    Reason: 7% tests passed, 92 tests failed out of 99
    
    Most of them fail with:
    cstddef:50:10: fatal error: 'stddef.h' file not found
    
    Bug: https://bugs.gentoo.org/811723
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-util/clazy/Manifest                            |   1 +
 dev-util/clazy/clazy-1.12.ebuild                   |  57 ++++++++++
 .../files/clazy-1.12-clang-16-no-src-root.patch    |  60 +++++++++++
 .../files/clazy-1.12-fix-tests-Qt-detect-1.patch   |  78 ++++++++++++++
 .../files/clazy-1.12-fix-tests-Qt-detect-2.patch   | 115 +++++++++++++++++++++
 dev-util/clazy/files/clazy-1.12-llvm-18.patch      |  36 +++++++
 6 files changed, 347 insertions(+)