mini2440 : problem installing toolchain (ptxdist)

Hadrien
Hello all,

I am trying to get the oselas BSP running on my mini2440. I followed the
steps described in this document:
OSELAS.BSP-Pengutronix-Mini2440-Quickstart

but after the build of the toolchain I get these errors on the terminal:

gcc -O3 -D_LARGEFILE64_SOURCE=1 -o example64 example64.o -L. libz.a
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o minigzip64 minigzip64.o -L. libz.a
make[1]: Leaving directory
`/home/hadrien/local/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-g
cc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-host/zlib-1
.2.5'
finished target host-zlib.compile

-------------------------
target: host-zlib.install
-------------------------

make[1]: Entering directory
`/home/hadrien/local/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-g
cc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-host/zlib-1
.2.5'
cp libz.a
/home/hadrien/local/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gc
c-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-host/lib
cp 
/home/hadrien/local/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gc
c-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-host/lib
cp: missing destination file operand after
`/home/hadrien/local/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-g
cc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-host/lib'

Try `cp --help' for more information.
make[1]: Leaving directory
`/home/hadrien/local/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-g
cc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-host/zlib-1
.2.5'
make[1]: *** [install-libs] Error 1
make: ***
[/home/hadrien/local/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-g
cc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/state/host-zlib.i
nstall]
Error 2

It seems to have to do with cp but I don't even know what the install
process is trying to do :(

If anyone could help me that would be really appreciated :)

Thanks

davef
Just to check:  which version of the toolchain and which version of PTXdist
are you using to build it with?

Hadrien
hello,

I am trying to build the 2011.11.1 toolchain with ptxdist version 2011.11.0

thank you

Hadrien
Actually I just checked using the ptxdist version command and it returns
2012.06.0.. The thing is I installed both 2012.06.0 and 2011.11.0. Is there
a way to use the 2011.11.0 instead ? or how can I uninstall the 2012.06.0 ?

Thank you very much for your help

Hadrien
ok I think I am making some kind of progress.. I read a post in which it
was advised to create a symbolic link (in the toolchain folder) to the
version (bin) of ptxdist to be used to compile the toolchain. If the link
is called p, then the ptxdist commands are run like "./p configure". And
when I run the "version" command I am getting the right verion for the job.
So I'll try that tomorrow and keep you posted

Juergen Beisert
We made some progress with the toolchains and added futher corrections. If
you use at least the 2011.11.3 of our toolchain, you are free to build it
with almost every ptxdist version you have.
If you still want to build the 2011.11.1 toolchain, you are stuck to
ptxdist-2011.11.0 to build it.

Hadrien
so I tried the symlink method but ptxdist still complained about the config
files not being the same version... how do I tell ptxdist 2011.11.0 not to
use the wrong config file ?

Thank you juergen for your comment, I am now building the 2011.11.3
toolchain with ptxdist 2012.06.0... so far so good :)

Be gentle with me as I am a complete beginner in Linux !

Hadrien
Build successful ! Although, I will certainly be back with more questions
in a very near future 

Thanks everyone