I am trying to build  a number packages for armv6. The latest stumbling block is rust. I know armv6 is no longer supported, but I have been able to update gcc and gcc libs and other packages to be able to build trhe packages I need to stay current. I am now trying to build the latest rust using the PKGBUILD and other source files from the git repository:
https://github.com/archlinuxarm/PKGBUILDs/tree/master/extra/rust
I added the architecture to the PKGBUIILD and when I build it, I get this problem:
$this->bbcode_second_pass_code('', '    Building rustbuild                                                                                                                                       
error: process didn't exit successfully: `/usr/bin/rustc -vV` (exit status: 1)                                                                           
--- stderr                                                                                                                                               
/usr/bin/rustc: /usr/lib/libLLVM-13.so: version `LLVM_13' not found (required by /usr/lib/librustc_driver-471ac765f256ad23.so)                           
                                                                                                                                                         
failed to run: /usr/bin/cargo build --manifest-path /Rune_dev/armv6/rust/src/rustc-1.64.0-src/src/bootstrap/Cargo.toml --locked --frozen                 
Build completed unsuccessfully in 0:00:00                                                                                                                
==> ERROR: A failure occurred in build().  ')
but libLLVM-13.so is present:
$this->bbcode_second_pass_code('', '$ ls -al /usr/lib/libLLVM-*
lrwxrwxrwx 1 root root        13 Nov  1 22:13 /usr/lib/libLLVM-13.so -> libLLVM-14.so
lrwxrwxrwx 1 root root        13 Oct 31 23:13 /usr/lib/libLLVM-14.0.6.so -> libLLVM-14.so
-rwxr-xr-x 1 root root 105542368 Oct 31 23:13 /usr/lib/libLLVM-14.so
lrwxrwxrwx 1 root root        14 Apr 10  2020 /usr/lib/libLLVM-7.1.0.so -> libLLVM-7.1.so
-rwxr-xr-x 1 root root  61149252 Apr 10  2020 /usr/lib/libLLVM-7.1.so
')
I previously built llvm for armv6 and installed it. My guess is that the verions ov llvm, is not properly configured or maybe not built for armv6. I used this package to build it:
https://archlinuxarm.org/packages/armv7h/llvm/files 
and added armv6h to the architectures. It builds, but fails the tests, so to build the package, I have to comment out the test portion of the PKGBUILD to get it to build a package. I am building it again to see what the error is. 
EDIT - error shown:
$this->bbcode_second_pass_code('', '==> Starting check()...                                                                                                                                  
[1/2] Running all regression tests                                                                                                                       
                                                          -- Testing: 47062 tests, 4 workers --                                                          
  0% [--------------------------------------------------------------------------------------------------------------------------------------------------]
                                                                                                                                                         
Traceback (most recent call last):                                                                                                                       
  File "/Rune_dev/armv6/llvm/src/llvm-14.0.6.src/build/./bin/llvm-lit", line 39, in <module>
    main(builtin_parameters)
  File "/Rune_dev/armv6/llvm/src/llvm-14.0.6.src/utils/lit/lit/main.py", line 106, in main
    run_tests(selected_tests, lit_config, opts, len(discovered_tests))
  File "/Rune_dev/armv6/llvm/src/llvm-14.0.6.src/utils/lit/lit/main.py", line 225, in run_tests
    execute_in_tmp_dir(run, lit_config)
  File "/Rune_dev/armv6/llvm/src/llvm-14.0.6.src/utils/lit/lit/main.py", line 255, in execute_in_tmp_dir
    run.execute()
  File "/Rune_dev/armv6/llvm/src/llvm-14.0.6.src/utils/lit/lit/run.py", line 55, in execute
    self._execute(deadline)
  File "/Rune_dev/armv6/llvm/src/llvm-14.0.6.src/utils/lit/lit/run.py", line 69, in _execute
    pool = multiprocessing.Pool(self.workers, lit.worker.initialize,
  File "/usr/lib/python3.10/multiprocessing/context.py", line 119, in Pool
    return Pool(processes, initializer, initargs, maxtasksperchild,
  File "/usr/lib/python3.10/multiprocessing/pool.py", line 191, in __init__
    self._setup_queues()
  File "/usr/lib/python3.10/multiprocessing/pool.py", line 343, in _setup_queues
    self._inqueue = self._ctx.SimpleQueue()
  File "/usr/lib/python3.10/multiprocessing/context.py", line 113, in SimpleQueue
    return SimpleQueue(ctx=self.get_context())
  File "/usr/lib/python3.10/multiprocessing/queues.py", line 342, in __init__
    self._rlock = ctx.Lock()
  File "/usr/lib/python3.10/multiprocessing/context.py", line 68, in Lock
    return Lock(ctx=self.get_context())
  File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 162, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)
  File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
PermissionError: [Errno 13] Permission denied
FAILED: CMakeFiles/check-all /Rune_dev/armv6/llvm/src/llvm-14.0.6.src/build/CMakeFiles/check-all 
cd /Rune_dev/armv6/llvm/src/llvm-14.0.6.src/build && /usr/bin/python3.10 /Rune_dev/armv6/llvm/src/llvm-14.0.6.src/build/./bin/llvm-lit -sv /Rune_dev/armv
6/llvm/src/llvm-14.0.6.src/build/utils/lit /Rune_dev/armv6/llvm/src/llvm-14.0.6.src/build/test
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in check().
    Aborting...
')
This is the error which stops llvm from completing
Any help appreciated.
			
				
