app-arch/snappy fails tests with clang-3.6.1, package compiles and tests pass with GCC 4.9.2 Reproducible: Always Steps to Reproduce: 1. CC="clang" CXX="clang++" emerge -1 app-arch/snappy 2. 3. Actual Results: Tests fail. Expected Results: Tests should pass. All versions available in portage fail with clang-3.6.1-r100, but pass with GCC-4.9.2. Attached emerge log.
Created attachment 404592 [details] Emerge log of failing snappy (version 1.1.2-r1)
Unable to reproduce this with clang 3.5.0, 3.5.0 is the current stable in portage, not 3.6.1.
Created attachment 414480 [details] clang snappy-1.1.2-r1.ebuild merge log
Will test with latest clang 3.7.0-r100
With clang version 3.7.0-r100 and LLVM version 3.7.0-r1, snappy 1.1.3 merges with no errors. # clang -v clang version 3.7.0 (tags/RELEASE_370/final) Target: x86_64-pc-linux-gnu Thread model: posix Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.5 See attached log
Created attachment 414540 [details] Build log for Snappy 1.1.3 and clang 3.7.0
Package builds with latest clang.
Sorry for coming back this late. Snappy still fails tests with latest clang, both versions in tree. The package *was* building fine also before, but was *not* passing tests, whereas the GCC compile-test phase does. I'm reopening the bug until this is fixed. It looks like a compiler issue - gcc and clang treating differently the same code. Or, worse, it could be a bug in clang.
(In reply to Fabio Scaccabarozzi from comment #8) > Sorry for coming back this late. > Snappy still fails tests with latest clang, both versions in tree. > The package *was* building fine also before, but was *not* passing tests, > whereas the GCC compile-test phase does. > I'm reopening the bug until this is fixed. > It looks like a compiler issue - gcc and clang treating differently the same > code. Or, worse, it could be a bug in clang. Can you give an updated build log as I can not reproduce this. ------------------------------ app-arch/snappy-1.1.3 ------------------------------ ------------------------------ # clang -v clang version 3.7.0 (tags/RELEASE_370/final) Target: x86_64-pc-linux-gnu Thread model: posix Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3 # ------------------------------ I will attach my build log as well, do let me know if there is something a miss here
Created attachment 419146 [details] 20151214 Snappy-1.1.3 and clang-3.7.0 build log
From the log it seems you're not running tests: > >>> Source compiled. > >>> Test phase [not enabled]: app-arch/snappy-1.1.3 > > >>> Install snappy-1.1.3 into /var/tmp/portage/app-arch/snappy-1.1.3/image/ category app-arch Can you please try enabling FEATURES="test" and re-emerging? Please find attached a sample build with tests enabled.
Created attachment 419218 [details] Emerge of snappy-1.1.2-r1 with clang-3.7.0 and tests enabled
(In reply to Fabio Scaccabarozzi from comment #11) > From the log it seems you're not running tests: > > >>> Source compiled. > > >>> Test phase [not enabled]: app-arch/snappy-1.1.3 > > > > >>> Install snappy-1.1.3 into /var/tmp/portage/app-arch/snappy-1.1.3/image/ category app-arch > > Can you please try enabling FEATURES="test" and re-emerging? > Please find attached a sample build with tests enabled. Thank you. I can now reproduce this issue.
Given it's about ancient version of clang, I'm going to call this one obsolete. If you have any problems with modern versions of clang, please open a new bug.