Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891813 - dev-libs/castxml-0.5.1 fails tests (LIBARCHIVE-SYSTEM)
Summary: dev-libs/castxml-0.5.1 fails tests (LIBARCHIVE-SYSTEM)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
: 895394 (view as bug list)
Depends on:
Reported: 2023-01-23 07:21 UTC by Agostino Sarubbo
Modified: 2023-08-05 12:04 UTC (History)
2 users (show)

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

build.log (build.log,615.41 KB, text/plain)
2023-01-23 07:21 UTC, Agostino Sarubbo
1-LastTest.log.xz (1-LastTest.log.xz,114.03 KB, application/x-xz)
2023-01-23 07:21 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-01-23 07:21:28 UTC

Issue: dev-libs/castxml-0.5.1 fails tests (LIBARCHIVE-SYSTEM).
Discovered on: amd64 (internal ref: libarchive_tinderbox)

(LIBARCHIVE-SYSTEM) in the summary means that the bug was found on a machine that runs app-alternatives/tar and app-alternatives/cpio with [-gnu,+libarchive] but this bug MAY or MAY NOT BE related to the tar/cpio implementation.
Comment 1 Agostino Sarubbo gentoo-dev 2023-01-23 07:21:30 UTC
Created attachment 849071 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-01-23 07:21:33 UTC
Created attachment 849073 [details]

1-LastTest.log (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 3 Thomas Beierlein gentoo-dev 2023-02-03 18:03:31 UTC
Seems not related to the LIBATCHIVE-SYSTEM. Fails also with app-alternatives/tar with [+gnu, -libarchive].

It is weird that it now fails, as I fixed the test suite just 10 days before.
Comment 4 Thomas Beierlein gentoo-dev 2023-02-04 17:15:29 UTC
As it turns out the bump from clang-15.06 to clang-15.0.7 is the main culprit for the failing tests. 

There seems to be two different factors

- For some of the tests the expected output (checked by the test suite) changed so that it gets not recognized as valid. There seems to be only a minority of the failing  tests with that reason.

- For a quite large number of tests castxml just fails to run with something like 
"unsupported option '-fPIE' for target 'i386-pc-windows-msvc'" or similar.

It seems questionable to keep the tests in place if they are so brittle with regard to minor changes of the underlying clang version.
Comment 5 Thomas Beierlein gentoo-dev 2023-02-20 18:20:11 UTC
*** Bug 895394 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Beierlein gentoo-dev 2023-08-05 12:04:26 UTC
Did some further test with clang-15.0.7 on a different distribution (Linux MINT). All Tests runs without problems there.

So it seems to be the 'gentoo way' we use in the clang config files.

Further tests showed that the mayor of the failed tests (around 500) are a result of gentoo-hardened.cfg especially the '-fPIE' flag. Further 10 failed tests are a result of including 'maybe-stddefs.h'.