This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/PROCESSOR-SDK-AM335X: Application build issue

Part Number: PROCESSOR-SDK-AM335X

Tool/software: TI C/C++ Compiler

Hi,

I am building my Application using the TI-SDK version 05.03.00.07 which comes with the linux version 4.x. But when i run the file command on my executable, it shows that it is linked to the libraries supporting Linux 3.2.0 as shown below

main: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=99ca6fef860fcb3cba07cd63db28e259a82e1914, stripped

I need to build my application for latest kernel which is 4.14. please let me know on what changes i need to make in SDK to build application for kernel 4.14

Thanks in advance

  • Hi,

    Could you please provide more information about how you are building your application? Are you using a make file? Are you cross-compiling or building natively?

    If you could provide a log of the build process and environment, that would be helpful.

    Thank you.

  • Hi,

    I have a make file, i am compiling in two steps

    1. cd <path of application>

    2. source /home/sagar/ti-processor-sdk-linux-am335x-evm-05.03.00.07/linux-devkit/environment-setup

    3. make

    below is my makefile contents

    CC = arm-linux-gnueabihf-g++
    
    CFLAGS = -c -Wall -I$(INC_DIR) -fpermissive
    
    SDK_PATH = /home/sagar/ti-processor-sdk-linux-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi
    
    all:
    	$(CC) --sysroot=$(SDK_PATH) -o test test.c
     
    

    Below is the compilation log messsage

    [linux-devkit]:~/Application/Application/test> make

    arm-linux-gnueabihf-g++ --sysroot=/home/sagar/ti-processor-sdk-linux-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi -o test test.c

     

  • Hi,

    I don't believe this is a problem. I checked some of the binaries that we provide with our filesystem and they report the Linux version, 3.2.

    I found the below discussion the most enlightening:

    https://stackoverflow.com/questions/12236159/linux-command-file-shows-for-gnu-linux-2-6-24

    Seems this is the "oldest" Linux ABI that that file will work with based on the C library used with the toolchain.

    I hope this is helpful to you.