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.

MCSDK Toolchain Bug

Other Parts Discussed in Thread: OMAP-L138

Dear All

This is regarding the use of Multicore Software Development Kit (MCSDK) for embedded software development.

 

While running the ARM Arago Cross-compiler for OMAP-L138 processor we have noticed a hard-coded reference to one of the developer's home directory. Below is a sample strace output for ARM builds

[pid 16406] 
open("/home/a0868396/toolchain/arago-tmp/sysroots/i686-linux/usr/lib/tls/i686/sse2/libz.so.1", 
O_RDONLY) = -1 ENOENT (No such file or directory)

[pid 16406] 
stat64("/home/a0868396/toolchain/arago-tmp/sysroots/i686-linux/usr/lib/tls/i686/sse2", 
0xffc2f820) = -1 ENOENT (No such file or directory)


As this reference is causing a significant effect on build times we would like to know whether a rectified distribution could be available in the near future. Any mechanism to remove this behavior would be welcome.

 

  • Raditz,

    I have moved this thread over to the device forum so that the MCSDK team can respond faster to your query.

  • Hi Raditz,

    Would you please let us know the following to have a closer look into your problem.

    1. Version of MCSDK used and the TI link from which the package is downloaded.

    2. What is the software you attempted to compile using toolchain?

    3. Using CCS?  Windows/Linux environment?

    Not able to understand at what stage this error comes; Otherwise, we will try from our side to reproduce your problem and help you out.

     

    Regards,

    Shankari.

     

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

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi,

    Sorry for the delayed reply.

    Here is the requested information.

    1) Version - 1.01.00.02

    2) We are trying to a compile a general embedded software using the ARM compiler.

    3) Linux environment

    The reference to /home/a0868396 ... can't be resolved by our internal network and hence the build times are significantly dependent on our LDAP resolution.

    If there was no hard-coded reference to some developer's directory there would be no need for LDAP to resolve anything.

    When compiling the same code for Emulated target without the tools build times are about two minutes whereas in this case they are more than some hours depending on LDAP resolution.

    Thanks.

  • Hi the arago compiler version is 2011.09-armv5te.

  • Hi,

    Sorry for the delayed response,



    open("/home/a0868396/toolchain/arago-tmp/sysroots/i686-linux/usr/lib/tls/i686/sse2/libz.so.1",

    O_RDONLY) = -1 ENOENT (No such file or directory)]

    If there was no hard-coded reference to some developer's directory there would be no need for LDAP to resolve anything.

    ENOENT -> Error No directory/file/links Entry

    This is very common warnings will get printed on terminals when you do "strace",

    I don't think that this is not problem and also it is not hard-coded referenced too,

    Actually, This toolchain is compiled on the mentioned location's PC (a0868396's computer)  so it is searching the default compiled location path,

    "a0868396" He may one of our TI engineer who compiled your toolchain,

    You can try any other open toolchain also to confirm,

    Could you please tell me that exact embedded package name which you are trying to build, so that I is easy to me that try to reproduce your issue ,

    Ex:


    I have cross compiled "hello.c" file and got the below warnings,

    It is searching the toolchain path "/opt/toolchain/arm-2009q1/bin/arm-eabi-gcc" but actually i had my toolchain in "/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc"

    access("/opt/toolchain/arm-2009q1/bin/arm-eabi-gcc", X_OK) = -1 ENOENT (No such file or directory)

    titus@titus-desktop:~/Desktop/C$ 
    titus@titus-desktop:~/Desktop/C$ strace arm-eabi-gcc c-test.c 
    execve("/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc", ["arm-eabi-gcc", "c-test.c"], [/* 40 vars */]) = 0
    brk(0)                                  = 0x9189000
    uname({sys="Linux", node="titus-desktop", ...}) = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7763000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=95687, ...}) = 0
    mmap2(NULL, 95687, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb774b000
    close(3)                                = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\226\1\0004\0\0\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1730024, ...}) = 0
    mmap2(NULL, 1739484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb75a2000
    mmap2(0xb7745000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a3) = 0xb7745000
    mmap2(0xb7748000, 10972, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7748000
    close(3)                                = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75a1000
    set_thread_area({entry_number:-1 -> 6, base_addr:0xb75a1900, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    mprotect(0xb7745000, 8192, PROT_READ)   = 0
    mprotect(0xb7785000, 4096, PROT_READ)   = 0
    munmap(0xb774b000, 95687)               = 0
    brk(0)                                  = 0x9189000
    brk(0x91aa000)                          = 0x91aa000
    rt_sigaction(SIGINT, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGINT, {0x804f9c0, [INT], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0xb75d0288}, 8) = 0
    rt_sigaction(SIGHUP, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGHUP, {0x804f9c0, [HUP], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART, 0xb75d0288}, 8) = 0
    rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGTERM, {0x804f9c0, [TERM], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART, 0xb75d0288}, 8) = 0
    rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGPIPE, {0x804f9c0, [PIPE], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0xb75d0288}, 8) = 0
    rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0xb75d0288}, {SIG_DFL, [], 0}, 8) = 0
    access("/opt/toolchain/arm-2009q1/bin/arm-eabi-gcc", X_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc", X_OK) = 0
    access("/opt/toolchain/arm-2009q1/bin/arm-eabi-gcc", X_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/", X_OK) = 0
    access("/opt/toolchain/arm-2009q1/bin/arm-eabi-gcc", X_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../google/home/android/cupcake_rel_root", F_OK) = -1 ENOENT (No such file or directory)
    access("c-test.c", F_OK)                = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../lib/gcc/arm-eabi/4.4.3/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../lib/gcc/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/lib/arm-eabi/4.4.3/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/lib/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/lib/gcc/arm-eabi/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/tmp", R_OK|W_OK|X_OK)          = 0
    gettimeofday({1398420112, 420206}, NULL) = 0
    getpid()                                = 6127
    open("/tmp/cc1xUemD.s", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
    close(3)                                = 0
    stat64("/opt/toolchain/arm-eabi-4.4.3-master/bin/../libexec/gcc/arm-eabi/4.4.3/cc1", {st_mode=S_IFREG|0755, st_size=32066615, ...}) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../libexec/gcc/arm-eabi/4.4.3/cc1", X_OK) = 0
    vfork()                                 = 6128
    waitpid(6128, c-test.c:1:19: error: stdio.h: No such file or directory
    c-test.c:2:20: error: stdlib.h: No such file or directory
    c-test.c: In function 'main':
    c-test.c:12: warning: incompatible implicit declaration of built-in function 'printf'
    [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 6128
    --- SIGCHLD (Child exited) @ 0 (0) ---
    stat64("/tmp/cc1xUemD.s", {st_mode=S_IFREG|0600, st_size=297, ...}) = 0
    unlink("/tmp/cc1xUemD.s")               = 0
    exit_group(1)                           = ?
    titus@titus-desktop:~/Desktop/C$ ls /opt/toolchain/arm-2009q1/bin/arm-eabi-gcc
    ls: cannot access /opt/toolchain/arm-2009q1/bin/arm-eabi-gcc: No such file or directory
    titus@titus-desktop:~/Desktop/C$ ls /opt/toolchain/arm-2009q1/
    arm-none-linux-gnueabi/ bin/                    lib/                    libexec/                share/
    titus@titus-desktop:~/Desktop/C$ ls /opt/t^C
    titus@titus-desktop:~/Desktop/C$ which arm-eabi-gcc
    /opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc
    titus@titus-desktop:~/Desktop/C$ 
    titus@titus-desktop:~/Desktop/C$ 
    titus@titus-desktop:~/Desktop/C$ 
    titus@titus-desktop:~/Desktop/C$ 
    titus@titus-desktop:~/Desktop/C$ strace arm-eabi-gcc c-test.c 
    execve("/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc", ["arm-eabi-gcc", "c-test.c"], [/* 40 vars */]) = 0
    brk(0)                                  = 0x8094000
    uname({sys="Linux", node="titus-desktop", ...}) = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7771000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=95687, ...}) = 0
    mmap2(NULL, 95687, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7759000
    close(3)                                = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\226\1\0004\0\0\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1730024, ...}) = 0
    mmap2(NULL, 1739484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb75b0000
    mmap2(0xb7753000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a3) = 0xb7753000
    mmap2(0xb7756000, 10972, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7756000
    close(3)                                = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75af000
    set_thread_area({entry_number:-1 -> 6, base_addr:0xb75af900, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    mprotect(0xb7753000, 8192, PROT_READ)   = 0
    mprotect(0xb7793000, 4096, PROT_READ)   = 0
    munmap(0xb7759000, 95687)               = 0
    brk(0)                                  = 0x8094000
    brk(0x80b5000)                          = 0x80b5000
    rt_sigaction(SIGINT, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGINT, {0x804f9c0, [INT], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0xb75de288}, 8) = 0
    rt_sigaction(SIGHUP, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGHUP, {0x804f9c0, [HUP], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART, 0xb75de288}, 8) = 0
    rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGTERM, {0x804f9c0, [TERM], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART, 0xb75de288}, 8) = 0
    rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGPIPE, {0x804f9c0, [PIPE], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0xb75de288}, 8) = 0
    rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0xb75de288}, {SIG_DFL, [], 0}, 8) = 0
    access("/opt/toolchain/arm-2009q1/bin/arm-eabi-gcc", X_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc", X_OK) = 0
    access("/opt/toolchain/arm-2009q1/bin/arm-eabi-gcc", X_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/", X_OK) = 0
    access("/opt/toolchain/arm-2009q1/bin/arm-eabi-gcc", X_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/arm-eabi-gcc", X_OK) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../google/home/android/cupcake_rel_root", F_OK) = -1 ENOENT (No such file or directory)
    access("c-test.c", F_OK)                = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../lib/gcc/arm-eabi/4.4.3/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../lib/gcc/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/lib/arm-eabi/4.4.3/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/lib/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/lib/gcc/arm-eabi/specs", R_OK) = -1 ENOENT (No such file or directory)
    access("/tmp", R_OK|W_OK|X_OK)          = 0
    gettimeofday({1398420232, 277817}, NULL) = 0
    getpid()                                = 6176
    open("/tmp/cccTU9Vu.s", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
    close(3)                                = 0
    stat64("/opt/toolchain/arm-eabi-4.4.3-master/bin/../libexec/gcc/arm-eabi/4.4.3/cc1", {st_mode=S_IFREG|0755, st_size=32066615, ...}) = 0
    access("/opt/toolchain/arm-eabi-4.4.3-master/bin/../libexec/gcc/arm-eabi/4.4.3/cc1", X_OK) = 0
    vfork()                                 = 6177
    waitpid(6177, c-test.c:1:19: error: stdio.h: No such file or directory
    c-test.c:2:20: error: stdlib.h: No such file or directory
    c-test.c: In function 'main':
    c-test.c:12: warning: incompatible implicit declaration of built-in function 'printf'
    [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 6177
    --- SIGCHLD (Child exited) @ 0 (0) ---
    stat64("/tmp/cccTU9Vu.s", {st_mode=S_IFREG|0600, st_size=297, ...}) = 0
    unlink("/tmp/cccTU9Vu.s")               = 0
    exit_group(1)                           = ?
    titus@titus-desktop:~/Desktop/C$ 
    titus@titus-desktop:~/Desktop/C$