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

Bug 704234

Summary: sys-libs/compiler-rt-9.0.1 with dev-python/lit - src_test(): File "/usr/bin/lit", line 86: TypeError: an integer is required (got type NoneType)
Product: Gentoo Linux Reporter: Alexey <alexey+gentoo>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: RESOLVED FIXED    
Severity: normal CC: etienne.buira, mgorny
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Alexey 2019-12-30 07:47:53 UTC
Created attachment 601760 [details]
emerge --info

Traceback (most recent call last):                                                                                                                                                                                                                                                
  File "/usr/bin/lit", line 86, in <module>                                                                                                                                                                                                                                       
    exec(data, new_globals)                                                                                                                                                                                                                                                       
  File "<string>", line 11, in <module>                                                                                                                                                                                                                                           
  File "/usr/lib64/python3.6/site-packages/lit/main.py", line 193, in main                                                                                                                                                                                                        
    main_with_tmp(builtinParameters)                                                                                                                                                                                                                                              
  File "/usr/lib64/python3.6/site-packages/lit/main.py", line 389, in main_with_tmp                                                                                                                                                                                               
    lit.discovery.find_tests_for_inputs(litConfig, inputs))                                                                                                                                                                                                                       
  File "/usr/lib64/python3.6/site-packages/lit/run.py", line 52, in __init__                                                                                                                                                                                                      
    self.lit_config.parallelism_groups.items()}                                                                                                                                                                                                                                   
  File "/usr/lib64/python3.6/site-packages/lit/run.py", line 51, in <dictcomp>                                                                                                                                                                                                    
    {k: multiprocessing.Semaphore(v) for k, v in                                                                                                                                                                                                                                  
  File "/usr/lib64/python3.6/multiprocessing/context.py", line 82, in Semaphore                                                                                                                                                                                                   
    return Semaphore(value, ctx=self.get_context())                                                                                                                                                                                                                               
  File "/usr/lib64/python3.6/multiprocessing/synchronize.py", line 126, in __init__
    SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX, ctx=ctx) 
  File "/usr/lib64/python3.6/multiprocessing/synchronize.py", line 59, in __init__
    unlink_now)
TypeError: an integer is required (got type NoneType)
FAILED: test/builtins/CMakeFiles/check-builtins
Comment 1 Alexey 2019-12-30 07:48:46 UTC
Created attachment 601762 [details]
build.log
Comment 2 Étienne Buira 2020-01-24 17:55:55 UTC
Had the same issue with dev-python/lit-8.0.1
This particular issue solved by upgrading to dev-python/lit-9.0.1
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-27 20:35:42 UTC
@Alexey, does upgrading lit help you?  If so, I'll raise the dep.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-27 20:53:22 UTC
Actually, I've reproduced it, so I'll just commit the change.
Comment 5 Larry the Git Cow gentoo-dev 2020-01-27 20:54:50 UTC
The bug has been closed via the following commit(s):

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

commit 36e7f358d44e27abd82ea28dc5d12d3c0dd31799
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-01-27 20:53:36 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-01-27 20:54:45 +0000

    sys-libs/compiler-rt: Require newer lit
    
    Closes: https://bugs.gentoo.org/704234
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild | 2 +-
 sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild | 2 +-
 sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)