Looked some more at this problem. I had some paths that were not
matching up correctly in the .config file located in the
/scratchbox/users/username/targets directory. I've fixed that, but my
toolchain still doesn't work. The error message that I get now is
pasted below, this is slightly different than what I was getting
earlier, it now has the complete path of the binary:

[sbox-test-target: ~] > which gcc
/scratchbox/compilers/bin/gcc
[sbox-test-target: ~] >  gcc
/scratchbox/compilers/ezx-arm-gcc-3.3-glibc/bin/sbox-arm-linux-gcc: No
such file or directory
[sbox-test-target: ~] >

The file in question does exist and is a symlink to arm-linux-gcc in
the same directory.

Also attached with this email are the
/scratchbox/users/username/targets/test-target.config &
/scratchbox/compilers/toolchain-name/compiler-name files from my
setup.
Hope someone can help me out with this issue.

Thanks,
Rohit



On 3/1/06, Rohit Chaudhri <[EMAIL PROTECTED]> wrote:
> Hello,
> I am trying to add a prebuilt toolchain for arm into scratchbox and am
> having some problems while doing that. I read through the relevant
> wiki at: http://www.scratchbox.org/wiki/ForeignToolchains
> and the Scratchbox Toolchains document.
> Following the instructions for adding a Foreign Toolchain I have
> created my toolchain under the /scratchbox/compilers directory in a
> directory called "my-toolchain". The cross build tools are located in
> the mytoolchain/bin directory. In this directory I've created symlinks
> from all arm-linux-xxx tools to sbox-arm-linux-xxx.
> Within scratchbox I can add and select my-toolchain, however when I
> try to execute any cross build command I get an error similar to the
> one pasted below:
>
> [sbox-another-test: ~] > gcc
> sbox-arm-linux-gcc: No such file or directory
> [sbox-another-test: ~] > which gcc
> /scratchbox/compilers/bin/gcc
>
> The wiki entry on ForeignToolChains does talk about this problem
> indicating that this is a problem with the alien toolchain wrapper.
> However I donot know how to resolve this issue. Can someone please
> help me out with this?
> My understanding is that for each command invoked
> /scratchbox/compilers/bin/sb_gcc_wrapper is invoked, which then
> invokes the correct  sbox-arm-linux-xxx command (in the case of an
> arm-linux cross tool)
> Maybe in my configuration the connection between sb_gcc_wrapper and
> mytoolchain/bin is missing and hence the commands fail. How do I make
> this connection? I even tried executing the cross tools in my
> toolchain by using absolute pats, but that too fails in a similar way.
>
> Would appreciate any help regarding this.
>
> Thanks!
> Rohit
>

Attachment: compiler-name
Description: Binary data

Attachment: test-target.config
Description: Binary data

_______________________________________________
Scratchbox-users mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to