Have you confirmed that there’s “stuff” under the sysyroot that is being 
pointed to in that $CC variable?

Sent from my iPhone

> On Sep 27, 2021, at 8:26 PM, Tellrell White via USRP-users 
> <[email protected]> wrote:
> 
> 
> I'm trying to cross-compile a simple "hello world" c file on a host system 
> running ubuntu 18.04. I installed version UHD_4.0.0.HEAD-0-g90ce6062 and I 
> have the same version of UHD running on the N310 I'm using. As instructed, I 
> followed the steps under "Obtaining an SDK" and "SDK Usage" at the following 
> link 
> 
> https://files.ettus.com/manual/page_usrp_n3xx.html#n3xx_software_dev_sdk and 
> the command $CC -dumpmachine shows the correct result as shown. 
> 
> 
> apg@apg-virtual-machine:~$ $CC -dumpmachine
> arm-oe-linux-gnueabi
> 
> My issue is when i try to compile a simple hello world.c file I get the 
> following 
> 
> apg@apg-virtual-machine:~$ arm-oe-linux-gnueabi-gcc hello_world.c 
> hello_world.c:1:10: fatal error: stdio.h: No such file or directory
>     1 | #include <stdio.h>
>       |          ^~~~~~~~~
> compilation terminated.
> 
> 
> Not sure why i'm getting this simple error at the moment but the proper env  
> variables have been set as shown
> 
> apg@apg-virtual-machine:~$ echo $CC
> arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 
> --sysroot=/usr/local/oecore-x86_64/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi
> 
> Perhaps there are some add'l paths that I need to be set ??
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> USRP-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to