-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Build error on bare system - building from source #119
Comments
@ratnadeepb If you're building without docker or our vm (via vagrant), take a gander here: https://github.com/capsule-rs/sandbox#without-docker. You'll need to install dpdk, etc... Let me know once you follow the directions in there. |
@zeeshanlakhani actually I have been working on something similar. I have been using a slightly modified version of your Pre-requisites wise, I have the following libs installed - This is what confuses me: The build script I use is mostly a derivative of the one you have. And for the Also, I am building these on cloudlab's Ubuntu18 machines (if that helps). |
This is how my |
@ratnadeepb I'll run up things on my Ubuntu box tonight and see. What DPDK version? Capsule uses 19.11.1 and that matters due to API breakage across DPDK versions. It seems specifically an issue in loading rte_ethdev, which we do here: https://github.com/capsule-rs/capsule/blob/master/ffi/build.rs#L47 |
This error is from DPDK 19.11.6. |
@ratnadeepb ill test on that version this evening and see. I’ll be using our dpdk and setup install scripts here. |
@ratnadeepb I was able to reproduce and fix. I'll push up a PR for @drunkirishcoder to test/review here and at the sandbox as well. I repro'ed on 19.11.1, but will move us to 19.11.6 for LTS as part of this too. We'll prob ship an ffi cargo release sometime later this week (possibly with a couple small changes, like moving to rust 1.49 too). |
@zeeshanlakhani cool! |
changes: - Fix for #119 with changes to meson/clang - Move to Rust 1.49 * assoc clippy changes - Test/move to Dpdk 19.11.6 * updated pcap open_dump doesn't err on empty file, so check for first
changes: - Fix for #119 with changes to meson/clang - Move to Rust 1.49 * assoc clippy changes - Test/move to Dpdk 19.11.6 * updated pcap open_dump doesn't err on empty file, so check for first
Describe the bug?
Trying to build the repo from source throws errors about SSE support. Here is the error in its entirety:
Steps to reproduce?
Expected behavior?
Successful build
Capsule version?
Git
OS?
Ubuntu 18.10
Docker / VM / Bare?
Bare
Stack trace or error log output
` running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-march=corei7" "-o" "/users/deep83/rust/capsule/target/debug/build/capsule-ffi-9f389138f8a5f94a/out/src/shim.o" "-c" "src/shim.c"
cargo:warning=In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:41:0,
cargo:warning= from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
cargo:warning= from /usr/local/include/rte_vect.h:28,
cargo:warning= from /usr/local/include/rte_memcpy.h:17,
cargo:warning= from /usr/local/include/rte_ether.h:21,
cargo:warning= from /usr/local/include/rte_ethdev.h:159,
cargo:warning= from src/shim.c:20:
cargo:warning=/usr/local/include/rte_memcpy.h: In function ‘rte_mov32’:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/7/include/avxintrin.h:926:1: error: inlining failed in call to always_inline ‘_mm256_storeu_si256’: target specific option mismatch
cargo:warning= _mm256_storeu_si256 (__m256i_u *__P, __m256i __A)
cargo:warning= ^~~~~~~~~~~~~~~~~~~
cargo:warning=In file included from /usr/local/include/rte_ether.h:21:0,
cargo:warning= from /usr/local/include/rte_ethdev.h:159,
cargo:warning= from src/shim.c:20:
cargo:warning=/usr/local/include/rte_memcpy.h:321:2: note: called from here
cargo:warning= _mm256_storeu_si256((__m256i *)dst, ymm0);
cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:41:0,
cargo:warning= from /usr/lib/gcc/x86_64-linux-gnu/7/include/x86intrin.h:48,
cargo:warning= from /usr/local/include/rte_vect.h:28,
cargo:warning= from /usr/local/include/rte_memcpy.h:17,
cargo:warning= from /usr/local/include/rte_ether.h:21,
cargo:warning= from /usr/local/include/rte_ethdev.h:159,
cargo:warning= from src/shim.c:20:
cargo:warning=/usr/lib/gcc/x86_64-linux-gnu/7/include/avxintrin.h:920:1: error: inlining failed in call to always_inline ‘_mm256_loadu_si256’: target specific option mismatch
cargo:warning= _mm256_loadu_si256 (__m256i_u const *__P)
cargo:warning= ^~~~~~~~~~~~~~~~~~
cargo:warning=In file included from /usr/local/include/rte_ether.h:21:0,
cargo:warning= from /usr/local/include/rte_ethdev.h:159,
cargo:warning= from src/shim.c:20:
cargo:warning=/usr/local/include/rte_memcpy.h:320:7: note: called from here
cargo:warning= ymm0 = _mm256_loadu_si256((const __m256i *)src);
cargo:warning= ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exit code: 1
--- stderr
error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-march=corei7" "-o" "/users/deep83/rust/capsule/target/debug/build/capsule-ffi-9f389138f8a5f94a/out/src/shim.o" "-c" "src/shim.c" with args "cc" did not execute successfully (status code exit code: 1).`
The text was updated successfully, but these errors were encountered: