Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551238 - app-arch/snappy fails tests with clang-3.6.1-r100 (test-driver: line 107: Segmentation fault)
Summary: app-arch/snappy fails tests with clang-3.6.1-r100 (test-driver: line 107: Seg...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2015-06-04 20:35 UTC by Fabio Scaccabarozzi
Modified: 2018-01-01 20:19 UTC (History)
2 users (show)

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


Attachments
Emerge log of failing snappy (version 1.1.2-r1) (app-arch:snappy-1.1.2-r1:20150604-202326.log,27.50 KB, text/x-log)
2015-06-04 20:36 UTC, Fabio Scaccabarozzi
Details
clang snappy-1.1.2-r1.ebuild merge log (build-1.1.2-r1.log,17.94 KB, text/x-log)
2015-10-13 04:47 UTC, Brendan Horan
Details
Build log for Snappy 1.1.3 and clang 3.7.0 (snappy-1.1.3--clang-3.7.0.log,17.54 KB, text/x-log)
2015-10-14 03:33 UTC, Brendan Horan
Details
20151214 Snappy-1.1.3 and clang-3.7.0 build log (snappy-1.1.3-clang-3.7.0-build-log.txt,17.89 KB, text/plain)
2015-12-14 07:49 UTC, Brendan Horan
Details
Emerge of snappy-1.1.2-r1 with clang-3.7.0 and tests enabled (app-arch:snappy-1.1.2-r1:20151214-215711.log,27.47 KB, text/x-log)
2015-12-14 22:06 UTC, Fabio Scaccabarozzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Scaccabarozzi 2015-06-04 20:35:16 UTC
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.
Comment 1 Fabio Scaccabarozzi 2015-06-04 20:36:06 UTC
Created attachment 404592 [details]
Emerge log of failing snappy (version 1.1.2-r1)
Comment 2 Brendan Horan 2015-10-13 04:46:51 UTC
Unable to reproduce this with clang 3.5.0, 3.5.0 is the current stable in portage, not 3.6.1.
Comment 3 Brendan Horan 2015-10-13 04:47:17 UTC
Created attachment 414480 [details]
clang snappy-1.1.2-r1.ebuild merge log
Comment 4 Brendan Horan 2015-10-13 13:29:31 UTC
Will test with latest clang 3.7.0-r100
Comment 5 Brendan Horan 2015-10-14 03:32:43 UTC
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
Comment 6 Brendan Horan 2015-10-14 03:33:57 UTC
Created attachment 414540 [details]
Build log for Snappy 1.1.3 and clang 3.7.0
Comment 7 Brendan Horan 2015-10-14 05:38:16 UTC
Package builds with latest clang.
Comment 8 Fabio Scaccabarozzi 2015-12-13 19:57:42 UTC
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.
Comment 9 Brendan Horan 2015-12-14 07:47:36 UTC
(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
Comment 10 Brendan Horan 2015-12-14 07:49:54 UTC
Created attachment 419146 [details]
20151214 Snappy-1.1.3 and clang-3.7.0 build log
Comment 11 Fabio Scaccabarozzi 2015-12-14 22:00:10 UTC
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.
Comment 12 Fabio Scaccabarozzi 2015-12-14 22:06:32 UTC
Created attachment 419218 [details]
Emerge of snappy-1.1.2-r1 with clang-3.7.0 and tests enabled
Comment 13 Brendan Horan 2015-12-15 00:02:50 UTC
(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.
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-01 20:19:40 UTC
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.