I was trying to build RTEMS using RTEMS Source Builder on a linux mint 17.02 system.I am getting shell cmd failed errors i.e(the last few lines of the error report )
+ cd /home/sambeet/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-4.11-1
+ echo => rtems-tools-4.11-1:
+ echo ==> %prep:
+ pwd
+ build_top=/home/sambeet/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-4.11-1
+ rtems_tools_source=rtems-tools-4.11
+ cd /home/sambeet/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-4.11-1
+ /bin/rm -rf rtems-tools-4.11
+ ln -s /home/sambeet/development/rtems/src/rtems-source-builder/rtems/sources/git/rtems-tools.git
+ cd rtems-tools-4.11
/home/sambeet/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-4.11-1/doit: 85: cd: can't cd to rtems-tools-4.11
shell cmd failed: /bin/sh -ex /home/sambeet/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-4.11-1/doit
error: building rtems-tools-4.11-1
we can see that
85: cd: can't cd to rtems-tools-4.11
But on using cd through terminal we can do it..
sambeet@Holmes ~/development/rtems/src/rtems-source-builder/rtems/build $ ls
expat-2.1.0-x86_64-linux-gnu-1
rtems-tools-4.11-1
sparc-rtems4.11-binutils-2.24-x86_64-linux-gnu-1
sparc-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-linux-gnu-1
sparc-rtems4.11-gdb-7.9-x86_64-linux-gnu-1
tmp
sambeet@Holmes ~/development/rtems/src/rtems-source-builder/rtems/build $ clear
sambeet@Holmes ~/development/rtems/src/rtems-source-builder/rtems/build $ ls
expat-2.1.0-x86_64-linux-gnu-1
rtems-tools-4.11-1
sparc-rtems4.11-binutils-2.24-x86_64-linux-gnu-1
sparc-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-linux-gnu-1
sparc-rtems4.11-gdb-7.9-x86_64-linux-gnu-1
tmp
sambeet@Holmes ~/development/rtems/src/rtems-source-builder/rtems/build $ cd rtems-tools-4.11-1/
sambeet@Holmes ~/development/rtems/src/rtems-source-builder/rtems/build/rtems-tools-4.11-1 $
Can anyone please provide an explanation or solution to this error?