From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-eopbgr810073.outbound.protection.outlook.com ([40.107.81.73] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIynm-0006np-Qp for ptxdist@pengutronix.de; Tue, 23 Apr 2019 19:01:52 +0200 From: Patrick Murray Date: Tue, 23 Apr 2019 17:01:46 +0000 Message-ID: Content-Language: en-US MIME-Version: 1.0 Subject: [ptxdist] migrating a BSP from 2012.03.0 to 2019.03.1 , building kernel module for linux-3.0.35 List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============1852215057==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" --===============1852215057== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DM6PR02MB597737AAC1EB0DCA5EB65D68FD230DM6PR02MB5977namp_" --_000_DM6PR02MB597737AAC1EB0DCA5EB65D68FD230DM6PR02MB5977namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi , I am getting this include error while building a kernel module after migrat= ing from BSP 2012.03.0 to 2019.03.1 . What's the easiest route to proceed . Regards P. -D"KBUILD_BASENAME=3DKBUILD_STR(bounds)" -D"KBUILD_MODNAME=3DKBUILD_STR(bo= unds)" -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c In file included from include/linux/compiler.h:48:0, from include/linux/stddef.h:4, from include/linux/posix_types.h:4, from include/linux/types.h:17, from include/linux/page-flags.h:8, from kernel/bounds.c:9: include/linux/compiler-gcc.h:94:30: fatal error: linux/compiler-gcc5.h: No = such file or directory compilation terminated. make[2]: *** [/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4/platform-p= hyFLEX-i.MX6/build-target/linux-3.0.35/./Kbuild:36: kernel/bounds.s] Error = 1 make[1]: *** [Makefile:985: prepare0] Error 2 make[1]: Leaving directory '/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.= 2.4/platform-phyFLEX-i.MX6/build-target/linux-3.0.35' make: *** [/opt/lib/ptxdist-2019.03.1/rules/kernel.make:178: /opt/PHYTEC_BS= Ps/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4/platform-phyFLEX-i.MX6/state/kernel.co= mpile] Error 2 dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ gcc --ve= rsion gcc (Ubuntu 8.2.0-7ubuntu1) 8.2.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ uname -r 4.18.0-17-generic dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ ptxdist = print PATH /opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4/platform-phyFLEX-i.MX6/s= ysroot-host/bin:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4/platform= -phyFLEX-i.MX6/sysroot-host/sbin:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-= PD13.2.4/selected_toolchain:/opt/lib/ptxdist-2019.03.1/bin:/usr/local/sbin:= /usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/s= nap/bin:/opt/bin dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ ^C dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ ptxdist = toolchain found and using toolchain: '/opt/OSELAS.Toolchain-2016.06.0/arm-v5te-linux-gnueabi/gcc-5.4.0-glibc-2.2= 3-binutils-2.26-kernel-4.6-sanitized/bin' dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4$ dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4/platform-= phyFLEX-i.MX6/build-target/linux-3.0.35/include$ find . -name compiler*.h ./linux/compiler.h ./linux/compiler-gcc.h ./linux/compiler-intel.h ./linux/compiler-gcc4.h ./linux/compiler-gcc3.h dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4/platform-= phyFLEX-i.MX6/build-target/linux-3.0.35/include$ This email and any attachments may be confidential and/or legally privilege= d. It has been sent for the sole use of the intended recipient(s). If the r= eader of this message is not an intended recipient, you are hereby notified= that any unauthorized review, use, disclosure, dissemination, distribution= , or copying of this communication or any of its contents is strictly prohi= bited. If you are not the named recipient, or have otherwise received this = communication in error, please delete it from your inbox, notify the sender= immediately, and do not disclose the contents to any other person or use t= hem for any purpose, or store them in any medium. Thank you for your cooper= ation. --_000_DM6PR02MB597737AAC1EB0DCA5EB65D68FD230DM6PR02MB5977namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi ,

 

I am getting this include error while building a ker= nel module after migrating from BSP 2012.03.0 to 2019.03.1 .

 

What’s the easiest route to proceed .

 

Regards

P.

 

-D"KBUILD_BASENAME=3DKBUILD_STR(bounds)"&n= bsp; -D"KBUILD_MODNAME=3DKBUILD_STR(bounds)" -fverbose-asm -S -o = kernel/bounds.s kernel/bounds.c

In file included from include/linux/compiler.h:48:0,=

        &nbs= p;        from include/linux/stddef.h:4,=

        &nbs= p;        from include/linux/posix_types= .h:4,

        &nbs= p;        from include/linux/types.h:17,=

        &nbs= p;        from include/linux/page-flags.= h:8,

        &nbs= p;        from kernel/bounds.c:9:

include/linux/compiler-gcc.h:94:30: fatal error: lin= ux/compiler-gcc5.h: No such file or directory

compilation terminated.

make[2]: *** [/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.= MX6-PD13.2.4/platform-phyFLEX-i.MX6/build-target/linux-3.0.35/./Kbuild:36: = kernel/bounds.s] Error 1

make[1]: *** [Makefile:985: prepare0] Error 2

make[1]: Leaving directory '/opt/PHYTEC_BSPs/BSP-Phy= tec-phyFLEX-i.MX6-PD13.2.4/platform-phyFLEX-i.MX6/build-target/linux-3.0.35= '

make: *** [/opt/lib/ptxdist-2019.03.1/rules/kernel.m= ake:178: /opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4/platform-phyFLE= X-i.MX6/state/kernel.compile] Error 2

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$ gcc --version

gcc (Ubuntu 8.2.0-7ubuntu1) 8.2.0

Copyright (C) 2018 Free Software Foundation, Inc.

This is free software; see the source for copying co= nditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FO= R A PARTICULAR PURPOSE.

 

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$ uname -r

4.18.0-17-generic

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$ ptxdist print PATH

/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD13.2.4/p= latform-phyFLEX-i.MX6/sysroot-host/bin:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-= i.MX6-PD13.2.4/platform-phyFLEX-i.MX6/sysroot-host/sbin:/opt/PHYTEC_BSPs/BS= P-Phytec-phyFLEX-i.MX6-PD13.2.4/selected_toolchain:/opt/lib/ptxdist-2019.03= .1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/ga= mes:/usr/local/games:/snap/bin:/opt/bin

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$ ^C

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$ ptxdist toolchain

found and using toolchain:

'/opt/OSELAS.Toolchain-2016.06.0/arm-v5te-linux-gnue= abi/gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.6-sanitized/bin'=

 

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4$

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phyte= c-phyFLEX-i.MX6-PD13.2.4$

 

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i= .MX6-PD13.2.4/platform-phyFLEX-i.MX6/build-target/linux-3.0.35/include$ fin= d . -name compiler*.h

./linux/compiler.h

./linux/compiler-gcc.h

./linux/compiler-intel.h

./linux/compiler-gcc4.h

./linux/compiler-gcc3.h

dak@CNU35294ZR:/opt/PHYTEC_BSPs/BSP-Phytec-phyFLEX-i.MX6-PD= 13.2.4/platform-phyFLEX-i.MX6/build-target/linux-3.0.35/include$

 


This email and any attachments may be confidential and/or legally privilege= d. It has been sent for the sole use of the intended recipient(s). If the r= eader of this message is not an intended recipient, you are hereby notified= that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication = or any of its contents is strictly prohibited. If you are not the named rec= ipient, or have otherwise received this communication in error, please dele= te it from your inbox, notify the sender immediately, and do not disclose the contents to any other person o= r use them for any purpose, or store them in any medium. Thank you for your= cooperation. --_000_DM6PR02MB597737AAC1EB0DCA5EB65D68FD230DM6PR02MB5977namp_-- --===============1852215057== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============1852215057==--