sumo4.14-toolchain problem

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

sumo4.14-toolchain problem

Jump to solution
1,379 Views
vecio_lin
Contributor II

Dear nxp community,

   Recently we are upgrading the kernel version from 3.10 to 4.14.78.

   and the tool chain of sumo4.14 is different from before.

   Therefore, when i try to compile the wlan modules( TI WL18xx firmware) with the new tool chain,

   I have encountered the following problem:

   

arm-poky-linux-gnueabi-gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.c
In file included from cryptlib.c:117:0:
cryptlib.h:62:11: fatal error: stdlib.h: No such file or directory
# include <stdlib.h>
^~~~~~~~~~
compilation terminated.

   the compile with the old tool chain is okay,but the new one can`t successed.

   how can i deal with this problem, can you give me some advise, i have no idea about it now.

BR.

Labels (1)
1 Solution
1,167 Views
Takashi_Kashiwagi
Senior Contributor I

Hi Vecio

What "environment-setup" did you use?

The scripts are prepared for 4.14-sumo as follows.

source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux

And Is --sysroot set ?

example:

$ aarch64-poky-linux-gcc helloworld.c --sysroot=$SDKTARGETSYSROOT

If you do not set --sysroot, compilation stops as follows:

$ aarch64-poky-linux-gcc helloworld.c
helloworld.c:1:10: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^~~~~~~~~
compilation terminated.

$

Best Regards,

T.Kashiwagi

View solution in original post

2 Replies
1,168 Views
Takashi_Kashiwagi
Senior Contributor I

Hi Vecio

What "environment-setup" did you use?

The scripts are prepared for 4.14-sumo as follows.

source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux

And Is --sysroot set ?

example:

$ aarch64-poky-linux-gcc helloworld.c --sysroot=$SDKTARGETSYSROOT

If you do not set --sysroot, compilation stops as follows:

$ aarch64-poky-linux-gcc helloworld.c
helloworld.c:1:10: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^~~~~~~~~
compilation terminated.

$

Best Regards,

T.Kashiwagi

1,167 Views
vecio_lin
Contributor II

hi Takashi,

Thank you for your answer~

I already solve the problem, and the solution as you said.