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

fatal error: rte_malloc_heap.h: No such file or directory in the dpdk build pod #242

Open
e-minguez opened this issue Jun 3, 2020 · 2 comments

Comments

@e-minguez
Copy link
Member

I'm trying to deploy the dpdk demo stuff in my cluster and the build logs show some errors:

Storing signatures
Generating dockerfile with builder image quay.io/schseba/dpdk-s2i-base:ds
STEP 1: FROM quay.io/schseba/dpdk-s2i-base:ds
STEP 2: LABEL "io.openshift.build.commit.message"="Merge pull request #239 from fedepaol/runningon44"       "io.openshift.build.source-location"="https://github.com/openshift-kni/cnf-features-deploy.git"       "io.openshift.build.source-context-dir"="tools/s2i-dpdk/test/test-app"       "io.openshift.build.image"="quay.io/schseba/dpdk-s2i-base:ds"       "io.openshift.build.commit.author"="OpenShift Merge Robot <[email protected]>"       "io.openshift.build.commit.date"="Mon Jun 1 19:16:47 2020 +0200"       "io.openshift.build.commit.id"="6ce4552fd51489374e895077bdb78afa5d142a6f"       "io.openshift.build.commit.ref"="master"
STEP 3: ENV OPENSHIFT_BUILD_NAME="s2i-dpdk-2"     OPENSHIFT_BUILD_NAMESPACE="dpdk"     OPENSHIFT_BUILD_SOURCE="https://github.com/openshift-kni/cnf-features-deploy.git"     OPENSHIFT_BUILD_COMMIT="6ce4552fd51489374e895077bdb78afa5d142a6f"
STEP 4: USER root
STEP 5: COPY upload/src /tmp/src
STEP 6: RUN chown -R 1001:0 /tmp/src
STEP 7: USER 1001
STEP 8: RUN /usr/libexec/s2i/assemble
---> Installing application source...
---> Building application from source...
make: Entering directory `/opt/app-root/src/test-pmd'
  CC testpmd.o
testpmd.c:30:29: fatal error: rte_malloc_heap.h: No such file or directory
 #include <rte_malloc_heap.h>
                             ^
compilation terminated.
make: *** [testpmd.o] Error 1
make: Leaving directory `/opt/app-root/src/test-pmd'
cp: cannot stat 'test-pmd/testpmd': No such file or directory
build done
STEP 9: CMD /usr/libexec/s2i/run
STEP 10: COMMIT temp.builder.openshift.io/dpdk/s2i-dpdk-2:a595cb41
time="2020-06-03T10:49:15Z" level=info msg="Image operating system mismatch: image uses \"\", expecting \"linux\""
time="2020-06-03T10:49:15Z" level=info msg="Image architecture mismatch: image uses \"\", expecting \"amd64\""
Getting image source signatures
Copying blob sha256:34e7b85d83e48a22bd5dfa2b6b9ee9565b7ef672f09b3d2409c61635f9bca4db

and the pod:

$ oc logs s2i-dpdk-app-1-prwsd
++ cat /sys/fs/cgroup/cpuset/cpuset.cpus
+ export CPU=0,2,28,30
+ CPU=0,2,28,30
+ echo 0,2,28,30
0,2,28,30
+ echo 0000:01:10.6
0000:01:10.6
+ '[' testpmd == testpmd ']'
+ envsubst
+ chmod +x test.sh
+ expect -f test.sh
spawn ./customtestpmd -l 0,2,28,30 -w 0000:01:10.6 --iova-mode=va -- -i --portmask=0x1 --nb-cores=2 --forward-mode=mac --port-topology=loop --no-mlockall
couldn't execute "./customtestpmd": no such file or directory
    while executing
"spawn ./customtestpmd -l 0,2,28,30 -w 0000:01:10.6 --iova-mode=va -- -i --portmask=0x1 --nb-cores=2 --forward-mode=mac --port-topology=loop --no-mlock..."
    (file "test.sh" line 1)

any hints? thanks!

@e-minguez
Copy link
Member Author

e-minguez commented Jun 3, 2020

I've tried to fix it by changing the image used by the buildconfig from quay.io/schseba/dpdk-s2i-base:ds to quay.io/openshift-kni/dpdk:4.5 as suggested by @SchSeba with no luck (same error).

@SchSeba
Copy link
Member

SchSeba commented Jun 4, 2020

This should be fixed by #246

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

2 participants