-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failed: thread 'main' panicked at '"__atomic_wide_counter_struct_(unnamed_at_/usr/include/bits/atomic_wide _counter_h_28_3)" is not a valid Ident' #114
Comments
Upgrading bindgen to 0.65.1 fixes the issue. |
@powerman @kousu I can confirm that it build after bumping bindgen using Archlinux (I modify the pkgbuild to use the patched version from @Konsu). However, the software itself doesn't works as expected. # systemctl status softu2f.socket
● softu2f.socket
Loaded: loaded (/usr/lib/systemd/system/softu2f.socket; enabled; preset: enabled)
Active: active (listening) since Mon 2023-09-11 21:58:33 CEST; 7min ago
Triggers: ● softu2f.service
Listen: /run/softu2f/softu2f.sock (Stream)
CGroup: /system.slice/softu2f.socket
sept. 11 21:58:33 envy systemd[1]: Listening on softu2f.socket. But when I try to enable/start the user service: $ systemctl --user status softu2f.service
○ softu2f.service - Software-only U2F Emulation Service
Loaded: loaded (/usr/lib/systemd/user/softu2f.service; enabled; preset: enabled)
Active: inactive (dead) since Mon 2023-09-11 22:03:20 CEST; 11min ago
Duration: 8ms
Process: 448221 ExecStart=/usr/lib/softu2f/user-daemon (code=exited, status=0/SUCCESS)
Main PID: 448221 (code=exited, status=0/SUCCESS)
CPU: 10ms
sept. 11 22:03:20 envy systemd[746]: Started Software-only U2F Emulation Service.
sept. 11 22:03:20 envy user-daemon[448221]: Starting rust-u2f user daemon
sept. 11 22:03:20 envy user-daemon[448221]: Storing secrets in an unencrypted file
sept. 11 22:03:20 envy user-daemon[448221]: registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
sept. 11 22:03:20 envy user-daemon[448221]: deregistering event source from poller
sept. 11 22:03:20 envy user-daemon[448221]: Error encountered, exiting: I/O error: Expected socket peer to be running as root user Obviously, the socket is running as root: # ls -l /run/softu2f/softu2f.sock
srw-rw-rw- 1 root root 0 11 sept. 21:58 /run/softu2f/softu2f.sock Is this issue linked to your patch? Or perhaps there is more changes to do after bumping bindgen? wdyt? |
Thanks for the report, updated bindgen in 30160e0#diff-a4051fcf5e0564c6e629966aa79e84248aa36d26e1b21cc2a9dbcbab07032661 The socket peer error was #116, which is also fixed now. |
This happens on latest master compiled by
rustc 1.69.0 (84c898d65 2023-04-16)
:The text was updated successfully, but these errors were encountered: