Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939999 - dev-libs/castxml-0.6.8 fails test - [ncurses-6.5] [gcc-15] 61 - cmd.cc-gnu-tgt-i386-opt-E (Failed)
Summary: dev-libs/castxml-0.6.8 fails test - [ncurses-6.5] [gcc-15] 61 - cmd.cc-gnu-tg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-09-21 14:43 UTC by Toralf Förster
Modified: 2024-10-15 06:51 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.96 KB, text/plain)
2024-09-21 14:43 UTC, Toralf Förster
Details
LastTest.log.xz (LastTest.log.xz,146.86 KB, application/x-xz)
2024-09-21 14:43 UTC, Toralf Förster
Details
dev-libs:castxml-0.6.8:20240921-115243.log.xz (dev-libs:castxml-0.6.8:20240921-115243.log.xz,43.11 KB, application/x-xz)
2024-09-21 14:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,30.87 KB, text/plain)
2024-09-21 14:43 UTC, Toralf Förster
Details
environment (environment,104.33 KB, text/plain)
2024-09-21 14:43 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.35 KB, application/x-xz)
2024-09-21 14:43 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,17.64 KB, application/x-xz)
2024-09-21 14:43 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,147.54 KB, application/x-xz)
2024-09-21 14:43 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,81.81 KB, text/plain)
2024-09-21 14:43 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.09 KB, application/x-xz)
2024-09-21 14:43 UTC, Toralf Förster
Details
tests.tar.xz (tests.tar.xz,170.82 KB, application/x-xz)
2024-09-21 14:43 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-09-21 14:43:06 UTC
99% tests passed, 2 tests failed out of 4385

Total Test time (real) =  71.80 sec

The following tests FAILED:
	 61 - cmd.cc-gnu-tgt-i386-opt-E (Failed)
	 85 - cmd.cc-gnu-c-tgt-i386-opt-E (Failed)
Errors while running CTest

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened_test-20240920-092003

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15
    Requested by sam
  /etc/portage/package.unmask/50unstable:>=sys-libs/ncurses-6.5

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 19.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/19/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/19
19.1.0
Python 3.12.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0 *
The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.23.1 linux/amd64

  HEAD of ::gentoo
commit df23d80252b9d0e9c7c5fb639d2612cc80f66b5a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 21 01:19:02 2024 +0000

    2024-09-21 01:19:01 UTC

emerge -qpvO =dev-libs/castxml-0.6.8
[ebuild  N    ] dev-libs/castxml-0.6.8  USE="man test" LLVM_SLOT="18 -17 -19"
Comment 1 Toralf Förster gentoo-dev 2024-09-21 14:43:08 UTC
Created attachment 903500 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-09-21 14:43:09 UTC
Created attachment 903501 [details]
LastTest.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-09-21 14:43:10 UTC
Created attachment 903502 [details]
dev-libs:castxml-0.6.8:20240921-115243.log.xz
Comment 4 Toralf Förster gentoo-dev 2024-09-21 14:43:11 UTC
Created attachment 903503 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2024-09-21 14:43:12 UTC
Created attachment 903504 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2024-09-21 14:43:13 UTC
Created attachment 903505 [details]
etc.clang.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-09-21 14:43:14 UTC
Created attachment 903506 [details]
etc.portage.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-09-21 14:43:15 UTC
Created attachment 903507 [details]
logs.tar.xz
Comment 9 Toralf Förster gentoo-dev 2024-09-21 14:43:16 UTC
Created attachment 903508 [details]
qlist-info.txt
Comment 10 Toralf Förster gentoo-dev 2024-09-21 14:43:17 UTC
Created attachment 903509 [details]
temp.tar.xz
Comment 11 Toralf Förster gentoo-dev 2024-09-21 14:43:19 UTC
Created attachment 903510 [details]
tests.tar.xz
Comment 12 Thomas Beierlein gentoo-dev 2024-10-11 17:54:12 UTC
Cannot reproduce the bug with clang-19.1.1.

Can you please retest with clang-19.1.1?

The errors in LastTest.log corresponds to the settings in /etc/clang/gentoo-hardened.cfg in 19.1.0:

-Xarch_host -D_GLIBCXX_ASSERTIONS
-Xarch_host -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE

As they are gone in 19.1.1 I assume that the test failures are gone away.
Comment 13 Toralf Förster gentoo-dev 2024-10-13 09:26:43 UTC
(In reply to Thomas Beierlein from comment #12)
> Cannot reproduce the bug with clang-19.1.1.
> 
> Can you please retest with clang-19.1.1?
> 
> The errors in LastTest.log corresponds to the settings in
> /etc/clang/gentoo-hardened.cfg in 19.1.0:
> 
> -Xarch_host -D_GLIBCXX_ASSERTIONS
> -Xarch_host -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE
> 
> As they are gone in 19.1.1 I assume that the test failures are gone away.

Hhm, then the ebuild should either force clang -or- an llvm profile is needed. But the bug occurred at a gcc profile.
Comment 14 Thomas Beierlein gentoo-dev 2024-10-13 15:14:32 UTC
(In reply to Toralf Förster from comment #13)
> > As they are gone in 19.1.1 I assume that the test failures are gone away.
> 
> Hhm, then the ebuild should either force clang -or- an llvm profile is
> needed. But the bug occurred at a gcc profile.

From the man page of castxml:

"Source files are parsed as complete translation units using an internal Clang compile"

So tests for castxml are calling clang each time. The resulting output gets compared to expected test. If we insert some additional definitions into the clang input (e.g. by etc/clang/gentoo-hardened.cfg) the resulting output may be not as expected. And that shows in the provided LastLog.txt (around line 950).
Comment 15 Toralf Förster gentoo-dev 2024-10-13 15:24:17 UTC
Ok.

It passed fine at this image (gcc 14.2.1):

/home/tinderbox/img/23.0_test-20240815-161302/var/log/emerge.log
2024-08-16T17:02:49 >>> dev-libs/castxml-0.6.7: 1 minute, 53 seconds
2024-08-19T17:11:45 >>> dev-libs/castxml-0.6.8: 1 minute, 51 seconds

which let me wonder what happened at 23.0_hardened_test-20240920-092003

Maybe the issue is related to the hardened feature or to gcc 15?
Comment 16 Toralf Förster gentoo-dev 2024-10-13 15:25:21 UTC
Here' more data of the older image:

tinderbox@23-0-test-20240815-161302 ~ $ clang --version
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg

tinderbox@23-0-test-20240815-161302 ~ $ gcc --version
gcc (Gentoo 14.2.1_p20240817 p4) 14.2.1 20240817
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 17 Thomas Beierlein gentoo-dev 2024-10-14 17:35:27 UTC
Did some testing again and sorting all weird data out.

First let me state that my comment #12 was wrong, sorry for that. I had just switched to hardened profile but not recompiled system and especially clang-commom.

That done now I have to confirm the reported test failure even with actual clang versions.


Turns out the failures are of same nature as for other tests we already skip (see bug #891813). Will add them to the list of skipped tests.
Comment 18 Larry the Git Cow gentoo-dev 2024-10-14 17:43:05 UTC
The bug has been closed via the following commit(s):

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

commit a396852e60f510e568b5866bfc3fb3ef38c9c643
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2024-10-14 17:41:34 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2024-10-14 17:41:34 +0000

    dev-libs/castxml: Skip some more test sensible for hardening defaults
    
    Closes: https://bugs.gentoo.org/939999
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 dev-libs/castxml/castxml-0.6.8.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-15 06:51:56 UTC
Thank you!