Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704234 - 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)
Summary: sys-libs/compiler-rt-9.0.1 with dev-python/lit - src_test(): File "/usr/bin/l...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
Depends on:
Reported: 2019-12-30 07:47 UTC by Alexey
Modified: 2020-01-27 20:54 UTC (History)
2 users (show)

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

emerge --info (file_704234.txt,19.53 KB, text/plain)
2019-12-30 07:47 UTC, Alexey
build.log (build.log,191.94 KB, text/plain)
2019-12-30 07:48 UTC, Alexey

Note You need to log in before you can comment on or make changes to this bug.
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/", line 193, in main                                                                                                                                                                                                        
  File "/usr/lib64/python3.6/site-packages/lit/", line 389, in main_with_tmp                                                                                                                                                                                               
    lit.discovery.find_tests_for_inputs(litConfig, inputs))                                                                                                                                                                                                                       
  File "/usr/lib64/python3.6/site-packages/lit/", line 52, in __init__                                                                                                                                                                                                      
  File "/usr/lib64/python3.6/site-packages/lit/", line 51, in <dictcomp>                                                                                                                                                                                                    
    {k: multiprocessing.Semaphore(v) for k, v in                                                                                                                                                                                                                                  
  File "/usr/lib64/python3.6/multiprocessing/", line 82, in Semaphore                                                                                                                                                                                                   
    return Semaphore(value, ctx=self.get_context())                                                                                                                                                                                                                               
  File "/usr/lib64/python3.6/multiprocessing/", line 126, in __init__
    SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX, ctx=ctx) 
  File "/usr/lib64/python3.6/multiprocessing/", line 59, in __init__
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]
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):

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

    sys-libs/compiler-rt: Require newer lit
    Signed-off-by: Michał Górny <>

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