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.

PROCESSOR-SDK-AM335X: Kernel build fails

Part Number: PROCESSOR-SDK-AM335X

I got the SDK from TI. I have setup env and cross compiler. 

linux kernel version is "linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae"

for the config, I use "make tisdk_am335x-evm_defconfig" and "make" .

fail information is

GEN     lib/oid_registry_data.c

/home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl: line 4: /home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl.real: No such file or directory

I am sure the file in path "/home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl.real" 

I am sure the compiler can access to this file

how should I fix this problem?

  • Hello YJ Zhang,

    Can you post the output of these commands?

    $ file /home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl: line 4: /home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl.real
    $ ls -al /home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl: line 4: /home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl.real
    $ file /home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl: line 4: /home/newrt/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/perl5.22.1
    $ cat /etc/lsb-release
    $ cat /etc/issue
    $ uname -a
    $ perl --version
    $ dpkg --list | grep perl5

    Best regards,
    Kemal

  • 1)newrt@newrt-Super-Server:~/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ file perl
    perl: Bourne-Again shell script, ASCII text executable
    2)newrt@newrt-Super-Server:~/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ file perl5.22.1
    perl5.22.1: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /opt/newrt/PDT/linux-devkit/sysroots/x86_64-arago-linux/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=8af4752ec38d9fe0890ff6657dc255135ba400a8, stripped
    newrt@newrt-Super-Server:~/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ file perl.real
    perl.real: symbolic link to perl5.22.1
    3)newrt@newrt-Super-Server:~/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ ls -al *perl*
    -rwxrwxrwx 1 newrt newrt   287 8月   8 14:33 perl
    -rwxrwxrwx 1 newrt newrt 14496 8月   8 14:33 perl5.22.1
    lrwxrwxrwx 1 newrt newrt    10 8月  12 17:47 perl.real -> perl5.22.1
    4)newrt@newrt-Super-Server:~$ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=18.10
    DISTRIB_CODENAME=cosmic
    DISTRIB_DESCRIPTION="Ubuntu 18.10"
    5)newrt@newrt-Super-Server:~$ cat /etc/issue
    Ubuntu 18.10 \n \l
    6)newrt@newrt-Super-Server:~$ uname -a
    Linux newrt-Super-Server 4.18.0-25-generic #26-Ubuntu SMP Mon Jun 24 09:32:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    7)newrt@newrt-Super-Server:~$ perl --version
    This is perl 5, version 26, subversion 2 (v5.26.2) built for x86_64-linux-gnu-thread-multi
    (with 63 registered patches, see perl -V for more detail)
    Copyright 1987-2018, Larry Wall
    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.
    Complete documentation for Perl, including FAQ lists, should be found on
    this system using "man perl" or "perldoc perl".  If you have access to the
    Internet, point your browser at http://www.perl.org/, the Perl Home Page.
    8)newrt@newrt-Super-Server:~$ dpkg --list | grep perl5
    ii  libperl5.26:amd64                          5.26.2-7ubuntu0.1                                  amd64        shared Perl library
    Thank you!
  • Hello Shakir:

    newrt@newrt-Super-Server:~/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ file perl

    perl: Bourne-Again shell script, ASCII text executable


    newrt@newrt-Super-Server:~/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ file perl5.22.1

    perl5.22.1: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /opt/newrt/PDT/linux-devkit/sysroots/x86_64-arago-linux/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=8af4752ec38d9fe0890ff6657dc255135ba400a8, stripped


    newrt@newrt-Super-Server:~/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ file perl.real

    perl.real: symbolic link to perl5.22.1


    newrt@newrt-Super-Server:~/share/PDT/linux-devkit/sysroots/x86_64-arago-linux/usr/bin$ ls -al *perl*

    -rwxrwxrwx 1 newrt newrt   287 8月   8 14:33 perl

    -rwxrwxrwx 1 newrt newrt 14496 8月   8 14:33 perl5.22.1

    lrwxrwxrwx 1 newrt newrt    10 8月  12 17:47 perl.real -> perl5.22.1


    newrt@newrt-Super-Server:~$ cat /etc/lsb-release

    DISTRIB_ID=Ubuntu

    DISTRIB_RELEASE=18.10

    DISTRIB_CODENAME=cosmic

    DISTRIB_DESCRIPTION="Ubuntu 18.10"


    newrt@newrt-Super-Server:~$ cat /etc/issue

    Ubuntu 18.10 \n \l


    newrt@newrt-Super-Server:~$ uname -a

    Linux newrt-Super-Server 4.18.0-25-generic #26-Ubuntu SMP Mon Jun 24 09:32:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


    newrt@newrt-Super-Server:~$ perl --version

    This is perl 5, version 26, subversion 2 (v5.26.2) built for x86_64-linux-gnu-thread-multi

    (with 63 registered patches, see perl -V for more detail)

    Copyright 1987-2018, Larry Wall

    Perl may be copied only under the terms of either the Artistic License or the

    GNU General Public License, which may be found in the Perl 5 source kit.

    Complete documentation for Perl, including FAQ lists, should be found on

    this system using "man perl" or "perldoc perl".  If you have access to the

    Internet, point your browser at http://www.perl.org/, the Perl Home Page.


    newrt@newrt-Super-Server:~$ dpkg --list | grep perl5

    ii  libperl5.26:amd64                          5.26.2-7ubuntu0.1                                  amd64        shared Perl library

  • Does the kernel builds fine if you use these two commands to compile?

    cd ~/share/PDT/
    make linux

  • Hello Shakir:

    Thank you for your help . It makes sense.