Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 May 2023 18:45:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271179] lang/rust: proc macro `...` not expanded: Cannot create expander for ...: unsupported ABI
Message-ID:  <bug-271179-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271179

            Bug ID: 271179
           Summary: lang/rust: proc macro `...` not expanded: Cannot
                    create expander for ...: unsupported ABI
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: vladislav.movchan@gmail.com
          Assignee: rust@FreeBSD.org
             Flags: maintainer-feedback?(rust@FreeBSD.org)

Created attachment 241912
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D241912&action=
=3Dedit
Add `rust-analyzer-proc-macro-srv` back to the package.

After update from `rust-1.68.2` to `rust-1.69.0`
`/usr/local/libexec/rust-analyzer-proc-macro-srv` is no longer included into
the rust package.
And without this binary `devel/rust-analyzer` is unable to expand macros wi=
th
the following error:
proc macro `Serialize` not expanded: Cannot create expander for
/usr/home/.../target/debug/deps/libserde_derive-89f20f88a3863e70.so:
unsupported ABI `rustc 1.69.0 (84c898d65 2023-04-16) (built from a source
tarball)`


Rust-analyzer relies on the proc macro server provided by rustc
(`rust-analyzer-proc-macro-srv`). And to make proc macro expansion work aga=
in,
rust package has to contain this binary.

Attached patch fixes this issue for me. The only file added to the package =
is
`rust-analyzer-proc-macro-srv`.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271179-7788>