[Starlingx-discuss] Build ISO for stx 2019.05 ERROR with mlnx-ofa_kernel-4.5

gao.song gaosong_1250 at 163.com
Wed Apr 24 02:53:51 UTC 2019



I think the key point to this error is how the compile program determine the kernel version to 4.9.8.
And I am checking the mlnx_ofa_kernel-4.5 rpm spec file, try to find some clues.





在 2019-04-24 10:43:03,"gao.song" <gaosong_1250 at 163.com> 写道:

Hi Shuicheng:
I checked those files ,  same location, same name and version




At 2019-04-24 10:36:07, "Lin, Shuicheng" <shuicheng.lin at intel.com> wrote:


Hi Song,

You should not have this file. Could you check which step do you get this file?

For the correct case, you should just have below 3 kernel file as me.

I suspect there is some problem with your mirror.

You could have a check for the packages in your mirror, the name/version info should be the same as the name listed in tools git.

 

slin14 at slin14-nuc2:~/GIT/stx-tools/centos-mirror-tools$ grep kernel *.lst –Rsn

…

rpms_centos3rdparties.lst:35:kernel-rt-3.10.0-957.1.3.rt56.913.el7.src.rpm

rpms_centos.lst:527:kernel-3.10.0-957.1.3.el7.src.rpm

rpms_centos.lst:528:kernel-headers-3.10.0-957.1.3.el7.x86_64.rpm

…

[slin14 at 031aee5aad95 cgcs-centos-repo]$ find . -name "kernel*"

./Source/kernel-rt-3.10.0-957.1.3.rt56.913.el7.src.rpm

./Source/kernel-3.10.0-957.1.3.el7.src.rpm

./Binary/x86_64/kernel-headers-3.10.0-957.1.3.el7.x86_64.rpm

 

Best Regards

Shuicheng

 

From: gao.song [mailto:gaosong_1250 at 163.com]
Sent: Wednesday, April 24, 2019 10:25 AM
To: Lin, Shuicheng <shuicheng.lin at intel.com>
Cc: starlingx-discuss at lists.starlingx.io
Subject: Re:RE: Re:RE: Re:Re: [Starlingx-discuss] Build ISO for stx 2019.05 ERROR with mlnx-ofa_kernel-4.5

 


Then I see, I got this 4.9.8 kernel file there, But problem still happen





At 2019-04-24 10:22:37, "Lin, Shuicheng" <shuicheng.lin at intel.com> wrote:



Hi Song,

Cgcs-centos-repo is in the build container, not the mirror container.

And it is generated with below cmd in the wiki:

“

generate-cgcs-centos-repo.sh /import/mirrors/CentOS/stx-r1/CentOS/pike/

“

 

Best Regards

Shuicheng

 

From: gao.song [mailto:gaosong_1250 at 163.com]
Sent: Wednesday, April 24, 2019 10:11 AM
To: Lin, Shuicheng <shuicheng.lin at intel.com>
Cc:starlingx-discuss at lists.starlingx.io
Subject: Re:RE: Re:Re: [Starlingx-discuss] Build ISO for stx 2019.05 ERROR with mlnx-ofa_kernel-4.5

 

Oops,I cannot find it ,just a kernel-headers-3.10.0-957.1.3.el7.x86_64.rpm there.

And another problem, My mirror container doesn't have this "cgcs-centos-repo" directory,

just :

[root at 66343f53d70d pike]# ls

Binary  downloads  Source

[root at 66343f53d70d pike]# pwd

/localdisk/output/stx-r1/CentOS/pike

 






在 2019-04-24 10:04:24,"Lin, Shuicheng" <shuicheng.lin at intel.com> 写道:

Hi Song,

Do you have “4.9.86-30.el7.x86_64” package in your mirror?

 

[slin14 at 031aee5aad95 cgcs-centos-repo]$ find . -name "kernel*"

./Source/kernel-rt-3.10.0-957.1.3.rt56.913.el7.src.rpm

./Source/kernel-3.10.0-957.1.3.el7.src.rpm

./Binary/x86_64/kernel-headers-3.10.0-957.1.3.el7.x86_64.rpm

 

Best Regards

Shuicheng

 

From: gao.song [mailto:gaosong_1250 at 163.com]
Sent: Wednesday, April 24, 2019 9:41 AM
To: Lin, Shuicheng <shuicheng.lin at intel.com>
Cc:starlingx-discuss at lists.starlingx.io
Subject: Re:Re: [Starlingx-discuss] Build ISO for stx 2019.05 ERROR with mlnx-ofa_kernel-4.5

 

Thanks for your reply.

Is it build same version rpm package as mine in your env?

It seems the program choose the version, where I can modify it

 

 

At 2019-04-24 08:46:24, "Lin, Shuicheng" <shuicheng.lin at intel.com> wrote:

Hi Song,

I checked my local log, the difference is the kernel version.

StarlingX uses CentOS 7.6, which kernel version is “3.10.0-957.1.3.el7.1.tis.x86_64”, while in your log, it is “4.9.86-30.el7.x86_64”.

 

Here is my configure in the log file:

./configure --build-dummy-mods --prefix=/usr --kernel-version 3.10.0-957.1.3.el7.1.tis.x86_64 --kernel-sources /usr/src/kernels/3.10.0-957.1.3.el7.1.tis.x86_64 --modules-dir /lib/modules/3.10.0-957.1.3.el7.1.tis.x86_64/extra/mlnx-ofa_kernel --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mlx4-mod --with-mlx4_en-mod --with-mlx5-mod --with-mlxfw-mod --with-ipoib-mod -j8

 

Best Regards

Shuicheng

 

From: gao.song [mailto:gaosong_1250 at 163.com]
Sent: Tuesday, April 23, 2019 8:00 PM
To:starlingx-discuss at lists.starlingx.io
Subject: [Starlingx-discuss] Build ISO for stx 2019.05 ERROR with mlnx-ofa_kernel-4.5

 

Hi folks:

         Recently I am building ISO accroding to Building Guide stx.2019.05, But I encounter this error for the step building packages with mlnx_ofa_kernel-4.5, the log can be found in the building container :

         ./configure --build-dummy-mods --prefix=/usr --kernel-version 4.9.86-30.el7.x86_64 --kernel-sources /usr/src/kernels/4.9.86-30.el7.x86_64 --modules-dir /lib/modules/4.9.86-30.el7.x86_64/extra/mlnx-ofa_kernel --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mlx4-mod --with-mlx4_en-mod --with-mlx5-mod --with-mlxfw-mod --with-ipoib-mod -j2

 

make[1]: Entering directory `/usr/src/kernels/4.9.86-30.el7.x86_64'

  CC [M]  /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/net/sched/cls_flower.o

  CC [M]  /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/net/sched/act_tunnel_key.o

  CC [M]  /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/main.o

  CC [M]  /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/kthread.o

  CC [M]  /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/drivers/infiniband/core/packer.o

  CC [M]  /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/flow_dissector.o

BUILDSTDERR: /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/flow_dissector.c: In function '__skb_flow_dissect_tunnel_info':

BUILDSTDERR: /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/flow_dissector.c:205:2: warning: passing argument 1 of 'skb_tunnel_info' discards 'const' qualifier from pointer target type [enabled by default]

BUILDSTDERR:   info = skb_tunnel_info(skb);

BUILDSTDERR:   ^

BUILDSTDERR: In file included from /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/include/net/dst_metadata.h:5:0,

BUILDSTDERR:                  from /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/flow_dissector.c:34:

BUILDSTDERR: include/net/dst_metadata.h:25:38: note: expected 'struct sk_buff *' but argument is of type 'const struct sk_buff *'

BUILDSTDERR:  static inline struct ip_tunnel_info *skb_tunnel_info(struct sk_buff *skb)

BUILDSTDERR:                                       ^

BUILDSTDERR: /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/flow_dissector.c: In function 'backport___skb_flow_dissect':

BUILDSTDERR: /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/flow_dissector.c:607:11: error: dereferencing pointer to incomplete type

BUILDSTDERR:     if (ops->flow_dissect &&

BUILDSTDERR:            ^

BUILDSTDERR: /builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/flow_dissector.c:608:12: error: dereferencing pointer to incomplete type

BUILDSTDERR:         !ops->flow_dissect(skb, &proto, &offset)) {

BUILDSTDERR:             ^

BUILDSTDERR: make[3]: *** [/builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat/flow_dissector.o] Error 1

BUILDSTDERR: make[2]: *** [/builddir/build/BUILD/mlnx-ofa_kernel-4.5/obj/default/compat] Error 2

BUILDSTDERR: make[2]: *** Waiting for unfinished jobs....

 

Any help will be appreciated!

 

 

 

 

 

 

 

 

 





 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20190424/b4b294b2/attachment-0001.html>


More information about the Starlingx-discuss mailing list