Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 651626

Summary: dev-util/spirv-tools-2018.2 : [TEST] 2 - spirv-tools-symbol-exports-SPIRV-Tools (Failed)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: sarnex
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-util:spirv-tools-2018.2:20180326-142447.log
emerge-history.txt
environment
etc.portage.tbz2
LastTest.log
logs.tbz2
temp.tbz2
tests.tbz2

Description Toralf Förster gentoo-dev 2018-03-26 17:52:47 UTC
The following tests FAILED:
	  2 - spirv-tools-symbol-exports-SPIRV-Tools (Failed)
	  3 - spirv-tools-symbol-exports-SPIRV-Tools-shared (Failed)
	  4 - spirv-tools-symbol-exports-SPIRV-Tools-opt (Failed)
	  5 - spirv-tools-symbol-exports-SPIRV-Tools-link (Failed)

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_test_20180323-181400

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.7.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-util/spirv-tools
[ebuild  N    ] dev-util/spirv-tools-2018.2  ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2018-03-26 17:52:50 UTC
Created attachment 525536 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-03-26 17:52:53 UTC
Created attachment 525538 [details]
dev-util:spirv-tools-2018.2:20180326-142447.log
Comment 3 Toralf Förster gentoo-dev 2018-03-26 17:52:56 UTC
Created attachment 525540 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-03-26 17:52:59 UTC
Created attachment 525542 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-03-26 17:53:02 UTC
Created attachment 525544 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-03-26 17:53:06 UTC
Created attachment 525546 [details]
LastTest.log
Comment 7 Toralf Förster gentoo-dev 2018-03-26 17:53:09 UTC
Created attachment 525548 [details]
logs.tbz2
Comment 8 Toralf Förster gentoo-dev 2018-03-26 17:53:12 UTC
Created attachment 525550 [details]
temp.tbz2
Comment 9 Toralf Förster gentoo-dev 2018-03-26 17:53:14 UTC
Created attachment 525552 [details]
tests.tbz2
Comment 10 Nick Sarnie gentoo-dev 2018-03-26 23:13:49 UTC
Upstream depends on Python 2.7 for the tests. Running them with 3.5/3.6 causes this failure. I am going to fix the ebuild to require 2.7 for tests. PR to come.


Sarnex
Comment 11 Nick Sarnie gentoo-dev 2018-03-26 23:52:33 UTC
Seems more complicated than that. The test checks that the symbols in the generated static libraries match some regular expression, and they may not depending on the compiler flags. 

More to come.

Sarnex
Comment 12 Larry the Git Cow gentoo-dev 2018-04-23 02:38:23 UTC
The bug has been closed via the following commit(s):

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

commit 024e9c947773e6e5800f126c8b8ce62dc21cf2a9
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2018-04-23 02:23:41 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2018-04-23 02:36:52 +0000

    dev-util/spirv-tools: Restrict tests
    
    The tests go through all symbols in the generated libraries/executables, and check the symbol names against a hardcoded regular expression.
    If an unmatching symbol is found, the test fails. This is easily hit if a user sets a compiler flag that causes symbols to change, such as PIC
    
    Fixes: https://bugs.gentoo.org/651626
    
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild | 3 +++
 dev-util/spirv-tools/spirv-tools-9999.ebuild      | 3 +++
 2 files changed, 6 insertions(+)