同样代码编译器不同导致编译不过

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

同样代码编译器不同导致编译不过

1,302 Views
huocan
Contributor I

我使用的是IMX6Q平台,使用的内核源码为3.10.53版本的,ubuntu版本是16.04,

1.我使用apt自动安装命令,sudo apt-get install gcc-arm-linux-gnueabihf,然后使用该编译器,编译3.10.53版本的kernel-source内核源码是可以正常编译生成zImage及相关的dtb,

2.我使用yocto3.14.52版本的编译器,4.9.2版本的编译器tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc,每次编译同样的内核3.10.53版本的内核 都会出现这种错误:

drivers/media/platform/mxc/subdev/mx6s_capture.c: In function ‘mx6s_csi_mux_sel’:
drivers/media/platform/mxc/subdev/mx6s_capture.c:1666:10: error: implicit declaration of function ‘of_find_node_by_phandle’ [-Werror=implicit-function-declaration]
   node = of_find_node_by_phandle(phandle);

of_find_node_by_phandle这个函数接口确实已经再base.c定义,也EXPORT该函数,但是还是出现该问题,请问怎么解决

Labels (1)
0 Kudos
1 Reply

916 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Huo Can,

     Yes, it is possible.  Every version of LINUX BSP we released  has it's own Cross Compiler, which has been validated by NXP, so you had better not use compiler which is inconsistent with version of Linux BSP. 

-------------------Chinese -----------

对的,这是有可能。 我们发行的linux BSP版本都有带编译器,而且都经过了NXP的验证,因此,最好不要尝试用与linux BSP 版本不一致的编译器去编译。

------------------------------------------

Have a nice day!

TIC weidong sun

0 Kudos