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

can't generate Yocto recipe #3511

Closed
chezgi opened this issue Aug 20, 2020 · 11 comments
Closed

can't generate Yocto recipe #3511

chezgi opened this issue Aug 20, 2020 · 11 comments
Labels
domain: administration Anything related to administration/operation domain: releasing Anything related to releasing Vector

Comments

@chezgi
Copy link

chezgi commented Aug 20, 2020

most of embedded devices use yocto for creating os release.
and vector is a good choice for log in embedded area.
i want to add vector to yocto. after some works i failed to do that.

my steps:
1- cargo-bitbake: auto generate recipe from toml file.
2- use meta-rust layer

problem:
some dependencies are from github and cant be used with meta-rust.

solution:
if all dependencies come from stable cargo repositories we can use vector in yocto.

@chezgi chezgi added the type: bug A code related bug. label Aug 20, 2020
@chezgi chezgi changed the title yocto recipe for vector problem can't generate Yocto recipe Aug 20, 2020
@fanatid
Copy link
Contributor

fanatid commented Aug 22, 2020

Are there some specified dependencies or all dependencies from github?

@chezgi
Copy link
Author

chezgi commented Aug 23, 2020

all the sources from github can be fetched but it failed to compile on the first dependency from github.
i dont know this is for all github dependencies or some of them may be correct.

@fanatid
Copy link
Contributor

fanatid commented Aug 24, 2020

Thanks. Can you share cargo build output?

@chezgi
Copy link
Author

chezgi commented Aug 31, 2020

this is the auto generated vector.bb file:

vector.bb.txt

@chezgi
Copy link
Author

chezgi commented Aug 31, 2020

this is bitbake do_compile log:

DEBUG: Executing shell function do_compile
NOTE: cargo = /WorkingDir/soodar/soo-yocto/yocto/build/tmp/work/corei7-64-soodaros-linux/vector/0.10.AUTOINC+50686560c8-r3/recipe-sysroot-native/usr/bin/cargo
NOTE: rustc = 
NOTE: cargo build -v --target x86_64-soodaros-linux --release 
    Updating git repository `https://github.com/timberio/leveldb`
error: failed to get `leveldb` as a dependency of package `vector v0.10.0 (/WorkingDir/soodar/soo-yocto/yocto/build/tmp/work/corei7-64-soodaros-linux/vector/0.10.AUTOINC+50686560c8-r3/git)`

Caused by:
  failed to load source for dependency `leveldb`

Caused by:
  Unable to update https://github.com/timberio/leveldb#64265815

Caused by:
  failed to clone into: /WorkingDir/soodar/soo-yocto/yocto/build/tmp/work/corei7-64-soodaros-linux/vector/0.10.AUTOINC+50686560c8-r3/cargo_home/git/db/leveldb-3fa4380c440b6995

Caused by:
  invalid version 3 on git_proxy_options; class=Invalid (3)
WARNING: exit code 101 from a shell command.
ERROR: Execution of '/WorkingDir/soodar/soo-yocto/yocto/build/tmp/work/corei7-64-soodaros-linux/vector/0.10.AUTOINC+50686560c8-r3/temp/run.do_compile.41259' failed with exit code 101:
    Updating git repository `https://github.com/timberio/leveldb`
error: failed to get `leveldb` as a dependency of package `vector v0.10.0 (/WorkingDir/soodar/soo-yocto/yocto/build/tmp/work/corei7-64-soodaros-linux/vector/0.10.AUTOINC+50686560c8-r3/git)`

Caused by:
  failed to load source for dependency `leveldb`

Caused by:
  Unable to update https://github.com/timberio/leveldb#64265815

Caused by:
  failed to clone into: /WorkingDir/soodar/soo-yocto/yocto/build/tmp/work/corei7-64-soodaros-linux/vector/0.10.AUTOINC+50686560c8-r3/cargo_home/git/db/leveldb-3fa4380c440b6995

Caused by:
  invalid version 3 on git_proxy_options; class=Invalid (3)
WARNING: exit code 101 from a shell command.

@fanatid
Copy link
Contributor

fanatid commented Aug 31, 2020

This looks like your issue: rust-lang/rust#63476 😞

@chezgi
Copy link
Author

chezgi commented Sep 5, 2020

is there any temporary solution to this problem?
what i must do for this?
@fanatid

@fanatid
Copy link
Contributor

fanatid commented Sep 5, 2020

Hmm, if a problem in cloning with git maybe this can be solved if you clone dependencies to local storage manually and change git to path in Cargo.toml?

@jamtur01 jamtur01 added domain: administration Anything related to administration/operation and removed type: bug A code related bug. labels Sep 29, 2020
@mickeypash
Copy link

mickeypash commented Jan 25, 2022

~Bump. I'm also interested in this.

Has anyone figured out a workaround?
Is there something I can help with?

@jszwedko
Copy link
Member

It seems like the linked issue was resolved in Rust. Maybe it would work now? I'm not familiar with Yocto so it'd probably be best if someone who is would give it a shot and let us know if there are any additional issues.

@jszwedko jszwedko added the domain: releasing Anything related to releasing Vector label Aug 3, 2022
@jszwedko
Copy link
Member

Closing this due to lack of response since it seems like it should work now as the linked Rust issue was resolved, but please leave a comment if it isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: administration Anything related to administration/operation domain: releasing Anything related to releasing Vector
Projects
None yet
Development

No branches or pull requests

5 participants