Comments (4)
I'm unable to reproduce this issue in my system. Below is the output (last few lines) of make oci-fed-image
Installing /cndp/usr/local/bin/fwd
Installed package `fwd v0.1.0 (/cndp/lang/rs/examples/fwd)` (executable `fwd`)
warning: be sure to add `/cndp/usr/local/bin` to your PATH to be able to run the installed binaries
Removing intermediate container ca8129f9f526
---> f5788273652c
Step 27/27 : WORKDIR /cndp
---> Running in f61fea8aad72
Removing intermediate container f61fea8aad72
---> 8c73ac7094f4
Successfully built 8c73ac7094f4
Successfully tagged cndp-fedora:latest
from cndp.
Hi @manojgop
The rust build is failing for the git workflow - which will block PRs being merged. Going to hijack this issue for this
The steps to reproduce:
setup an ubuntu docker container using the ubuntu:latest images
Follow the instructions to build cndp and the rust examples... the following error occurs:
Compiling pnet_transport v0.30.0
Compiling cndp-cne v0.2.0 (https://github.com/CloudNativeDataPlane/cndp?branch=main#5f0a0182)
Compiling cndp-cne v0.2.0 (/cndp/lang/rs/apis/cne)
warning: unused return value of `CString::from_raw` that must be used
--> apis/cne/src/util.rs:15:14
|
15 | unsafe { CString::from_raw(ptr) };
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
= note: `#[warn(unused_must_use)]` on by default
help: use `let _ = ...` to ignore the resulting value
|
15 | unsafe { let _ = CString::from_raw(ptr); };
| +++++++ +
Compiling fwd v0.1.0 (/cndp/lang/rs/examples/fwd)
Compiling echo_server v0.1.0 (/cndp/lang/rs/examples/echo_server)
warning: `cndp-cne` (lib) generated 1 warning
Compiling loopback v0.1.0 (/cndp/lang/rs/apis/cne/examples/loopback)
Finished dev [unoptimized + debuginfo] target(s) in 36.08s
from cndp.
Also fails on fedora:latest but with a different error
--- stderr
thread 'main' panicked at 'Non floating-type complex? Type(_Complex _Float16, kind: Complex, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Type(_Float16, kind: Float16, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None))', /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.59.2/src/ir/context.rs:1992:26
stack backtrace:
0: rust_begin_unwind
at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/std/src/panicking.rs:593:5
1: core::panicking::panic_fmt
at /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/panicking.rs:67:14
2: bindgen::ir::context::BindgenContext::build_builtin_ty
3: bindgen::ir::context::BindgenContext::builtin_or_resolved_ty
4: <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::from_ty_or_ref_with_id
5: <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::from_ty_or_ref
6: bindgen::ir::function::args_from_ty_and_cursor::{{closure}}
7: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &mut F>::call_once
8: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::next
9: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter_nested::SpecFromIterNested<T,I>>::from_iter
10: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
11: <alloc::vec::Vec<T> as core::iter::traits::collect::FromIterator<T>>::from_iter
12: core::iter::traits::iterator::Iterator::collect
13: bindgen::ir::function::args_from_ty_and_cursor
14: bindgen::ir::function::FunctionSig::from_ty
15: bindgen::ir::ty::Type::from_clang_ty
16: <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::from_ty_with_id
17: <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::from_ty
18: <bindgen::ir::item::Item as bindgen::parse::ClangItemParser>::parse
19: bindgen::parse_one
20: bindgen::parse::{{closure}}::{{closure}}
21: bindgen::clang::visit_children
22: <unknown>
23: <unknown>
24: <unknown>
25: clang_visitChildren
26: clang_sys::clang_visitChildren
27: bindgen::clang::Cursor::visit
28: bindgen::parse::{{closure}}
29: bindgen::ir::context::BindgenContext::with_module
30: bindgen::parse
31: bindgen::Bindings::generate
32: bindgen::Builder::generate
33: build_script_build::main
34: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
from cndp.
It's also failing in our github workflow: https://github.com/CloudNativeDataPlane/cndp/actions/runs/6853611616/job/18634770398 <<<<< fixing this would be the priority
from cndp.
Related Issues (20)
- Example Go application of packet distributor HOT 1
- Improve test coverage for Go Binding API HOT 1
- rust unit tests failing HOT 2
- remove privileged lport flag from rust implementation
- LPORT_UNPRIVILEGED for UDS should be configured under the hood rather than the CNDP app HOT 1
- update cndp af_xdp plugin integration notes to remove ClusterType
- ip_forward node fib lookup tightly coupled with arp entry HOT 1
- cnet: ip4_forward node fib lookup tightly coupled with arp entry HOT 7
- Use wireguard(with cndp) as the client to connect to the wireguard server supported by the normal Linux kernel? HOT 34
- Difficulties in using the wireguard cndp on the public network
- quicly example looks no more working/building HOT 45
- cndp performance reducing when both ingress and egress traffic is there. HOT 15
- Support loading custom bpf programs through the jsonc configuration HOT 1
- Long network device names HOT 4
- Golang: fixup uds to be on a per port basis
- Rust: fixup uds to be on a per port basis
- Documentation for AF_XDP deployment with CNDP it out of date - containerd
- Documentation for AF_XDP deployment with CNDP it out of date - crio
- Add a param to allow one to specify the queue to the jsonc configuration file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cndp.