[go: up one dir, main page]

Skip to content
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

Failed to build the project to be made up only procedural macro #438

Open
dofmind opened this issue Jan 10, 2024 · 1 comment
Open

Failed to build the project to be made up only procedural macro #438

dofmind opened this issue Jan 10, 2024 · 1 comment

Comments

@dofmind
Copy link
dofmind commented Jan 10, 2024

Version(s) of meta-rust

e141294

Version(s) of poky and/or oe-core

poky: yoctoproject/poky@5d822b3

Expected result

I tried to build the package to be made up only procedural macro using bitbake but it causes build errors

+ do_install
+ cargo_do_install
+ local have_installed=false
+ [ -f
ERROR: xxx-macros-v0.0.0+fbe5721d89-r0 do_install: Did not find anything to install

target is aarch64-poky-linux and host is x86_64-linux.

Actual result

It should be successful to build the package to be made up only procedural macro using bitbake.

Steps to reproduce

bitbake -v xxx-macros
(xxx-macros is the example name of package, its recipe is made by cargo-bitbake)

@dofmind
Copy link
Author
dofmind commented Jan 10, 2024

I found a workaround to avoid build errors.

If adds cargo_do_install() in xxx-macros recipe, original cargo_do_install() of meta-rust/classes/cargo.bbclass is not executed and it is successful to build.

cargo_do_install() {
    bbnote "Overrides not to execute original cargo_do_install () for proc-macro crate-type"                           
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant