Clarifications on quick start

When following the steps on RTEMS 6.1 User Manual Quick Start, ch. 2.4:

cd $HOME/quick-start/src/rsb/rtems
2 ../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 6/rtems-sparc

First, that won’t work, it needs to go an extra level up:

../../rsb/source-builder/sb-set-builder –-prefix=$HOME/quick-start/rtems/6 6/rtems-sparc

But then produces this error as it seems to ignore the path:

RTEMS Source Builder - Set Builder, 6.1
warning: exe: absolute exe found in path: (__cmake) /usr/bin/cmake
error: prefix is not writable: /opt/rtems/6
Build FAILED

What does seem to work is:

cd $HOME/quick-start/src/rsb
./source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 6/rtems-sparc

Is that correct and is there a typo in the user manual?

That command looks correct. You don’t have to “…” all the way back out of the RSB. I regularly use something similar to that command shown when in the rtems/ directory – just the one level “up and over” shown there.

I am guessing from the top of the rsb and in the rtems/ directory manage to find the Python support files. Not finding them is giving the odd behavior you see.

@kiwichris Am I on the right path with the failure explanation?

What is the first 3 lines of the log?

The first one should be the one to use and the --prefix option should point to the provided path.