"/home/travis/.travis/functions: line 104: /xxx : No such file or directory" while the file definitely exists

When execute some file, the travis say: /home/travis/.travis/functions: line 104: /opt/mips-2016.05/bin/mips-sde-elf-gcc: No such file or directory

You can see the file is already existed.

The link is as follows:
https://travis-ci.org/RT-Thread/rt-thread/jobs/573016850

Looking at that file (or uploading the entire ~/.travis somewhere) and tracing Travis logic should reveal what that line is trying to do.

I’m guessing that the machine can’t execute this file.

travis@7381f9139f7b:~$ curl -sSfLO https://github.com/RT-Thread/toolchains-ci/releases/download/v1.1/mips-2016.05-7-mips-sde-elf-i686-pc-linux-gnu.tar.bz2
travis@7381f9139f7b:~$ tar xf mips-2016.05-7-mips-sde-elf-i686-pc-linux-gnu.tar.bz2
travis@7381f9139f7b:~$ file mips-2016.05/bin/mips-sde-elf-gcc
mips-2016.05/bin/mips-sde-elf-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.16, stripped
travis@7381f9139f7b:~$ mips-2016.05/bin/mips-sde-elf-gcc --version
-su: mips-2016.05/bin/mips-sde-elf-gcc: No such file or directory
travis@7381f9139f7b:~$ ldd mips-2016.05/bin/mips-sde-elf-gcc
        not a dynamic executable

file reports that the interpreter is /lib/ld-linux.so.2, which is not found on the VM.

1 Like