[matrix-synapse] .so file missing from ARM aarch64 package

Problems with packages? Post here, using [tags] of the package name.

[matrix-synapse] .so file missing from ARM aarch64 package

Postby pezz » Sat Feb 11, 2023 9:29 pm

In version 1.75.0 on Arch ARM aarch64 this file is missing and prevents the service from starting:

/usr/lib/python3.10/site-packages/synapse/synapse_rust.abi3.so

Version 1.74.0 on aarch64 ARM and 1.75.0 on x64 Arch are fine.

Cheers.
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Re: [matrix-synapse] .so file missing from ARM aarch64 packa

Postby pezz » Wed Feb 15, 2023 8:13 am

Any advice on the best way to get this fixed?
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Re: [matrix-synapse] .so file missing from ARM aarch64 packa

Postby Marcool » Sat Feb 18, 2023 11:58 am

I am also experiencing problems with the matrix-synapse rust component on an armv7h system.

The error I am getting is the following:

$this->bbcode_second_pass_code('', 'systemd[1]: Started Synapse Matrix homeserver.
synapse[1253]: Traceback (most recent call last):
synapse[1253]: File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
synapse[1253]: mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
synapse[1253]: File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
synapse[1253]: __import__(pkg_name)
synapse[1253]: File "/usr/lib/python3.10/site-packages/synapse/__init__.py", line 23, in <module>
synapse[1253]: from synapse.util.rust import check_rust_lib_up_to_date
synapse[1253]: File "/usr/lib/python3.10/site-packages/synapse/util/rust.py", line 20, in <module>
synapse[1253]: from synapse.synapse_rust import get_rust_file_digest
synapse[1253]: ModuleNotFoundError: No module named 'synapse.synapse_rust'')

I am not certain this is the same error as yours @pezz, how did you come to determine the absence of that .so file? By diffing across the two packages?
Marcool
 
Posts: 8
Joined: Fri Nov 09, 2018 6:16 pm

Re: [matrix-synapse] .so file missing from ARM aarch64 packa

Postby Marcool » Sat Feb 18, 2023 1:26 pm

I also just found this bug report: https://github.com/matrix-org/synapse/issues/14966 which is considered by synapse people to be something to do with packaging...
Marcool
 
Posts: 8
Joined: Fri Nov 09, 2018 6:16 pm

Re: [matrix-synapse] .so file missing from ARM aarch64 packa

Postby pezz » Sat Feb 18, 2023 1:39 pm

It's the exact error I get as well.

And yeah, as I mentioned version 1.75.0 on main Arch x64 has the library in its package but the aarch64 (and I guess your v7) package does not.

I tried building the package on my Pi4 using the main PKGBUILD but it failed.

If I get a chance I'll try and debug it but was kinda hoping someone more knowledgeable would know how to fix it.
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Re: [matrix-synapse] .so file missing from ARM aarch64 packa

Postby Marcool » Sat Feb 18, 2023 2:41 pm

Ok thanks for the extra info.

I've been trying to debug it also. Something changed between the working 1.74.0 release and broken 1.75.0 one. Since on an up to date archlinuxarm system on my RPi4 1.74.0 builds fine and contains the .so file, I am almost certain that this problem is not due to a change in any non-synapse archlinux package, such as python or rust for instance. It's some side effect of a change in the synapse code I think. I'll try and bisect which commit after 1.74.0 introduced the error... just looking through the commit code no likely culprit jumps out.
Marcool
 
Posts: 8
Joined: Fri Nov 09, 2018 6:16 pm

Re: [matrix-synapse] .so file missing from ARM aarch64 packa

Postby pezz » Sun Feb 19, 2023 7:14 am

I don't think it's synapse code, the rust library is not being built at all by the build process on our architectures.

I've had another go today, but I don't know enough about the way the python build system works, it's a lot of moving parts. You can get the package to build by removing the check() function in the PKGBUILD (not ideal but it works).

There's a "whl" file that gets built which is just a zip file that then gets installed into fakeroot and then those files are what is packaged. There's a part missing from whatever the build process is doing that is not building the rust.so file and including it in the whl file.

Wish I knew more about how it works, it's a bit of adventure into code-spaghetti land.
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia


Return to Packages

Who is online

Users browsing this forum: No registered users and 34 guests