Probably the first part in your script evaluates to empty and thus cp is treating the destination as first argument.

Try running [1] separately, and see what you get.

Note also that if you're using glibc, then the uclibc part of the path is probably wrong. See the directory layout of your compiler to see the details.

Regards,

  Jussi

[1]
find /scratchbox/compilers/arm-linux-lincon/arm-unknown-linux-uclibc/lib -type d -name gconv

Anne-Marie Burns wrote:
Okay thanks, I made some progress but now I am stopped at:
make CONFIG=meta/alien-tc/arm-linux-lincon.conf -C meta/alien-tc

where I am getting:

# The if picks all files of form libfoo.so libfoo.o or libfoo.a
for f in `find /scratchbox/compilers/arm-linux-lincon/arm-unknown-linux-uclibc/lib -xtype f -maxdepth 1 | grep -v '++\.[^/]*$' | grep -vE '.*/libgcc_s\.so\..*$'`; do\
       if echo $f | grep -qE '.*/[^.-]*\.(s?o|a)$'; then \
               cp -d $f debian/libc6-dev/usr/lib ;\
       else \
               cp -d $f debian/libc6/lib ;\
       fi ;\
done
#Fix symlinks
for f in `find debian/libc6-dev/usr/lib -type l`; do \
       if [ ! -f $f ]; then \
               base=$(basename `readlink $f`); \
if [ -a debian/libc6/lib/$base ] || [ -a debian/libc6-dev/lib/$base ]; then \
               ln -sf /lib/$base $f; \
               fi \
       fi \
done
# Find gconv
cp -Rd `find /scratchbox/compilers/arm-linux-lincon/arm-unknown-linux-uclibc/lib -type d -name gconv` debian/libc6/usr/lib/
cp: missing destination file
Try `cp --help' for more information.
make[2]: *** [binary-arch] Error 1
make[2]: Leaving directory `/scratchbox/users/amburns/home/amburns/sb-toolchain-extras/libc/glibc-alienbase-debian/work/glibc-2.2.5'
make[1]: *** [build-packages] Error 2
make[1]: Leaving directory `/scratchbox/users/amburns/home/amburns/sb-toolchain-extras/libc/glibc-alienbase-debian'
make: *** [dep-../../libc/glibc-alienbase-debian] Error 2
make: Leaving directory `/scratchbox/users/amburns/home/amburns/sb-toolchain-extras/meta/alien-tc'

Thanks again,

Anne-Marie

Jussi Hakala wrote:
This happens because there's no directory containing a Makefile and the templates for the debian packaging of the gcc libraries for gcc 2.95.

You can make a copy of the cc/gcc-3.3-debian or cc/gcc-3.4-debian directory, make necessary adjustments there and rerun make.

For toolchain configuration examples (if create_toolchain_conf doesn't work fully for you), please see build-config files supplied with the prebuilt foreign toolchain packages.

Regards,

  Jussi


Anne-Marie Burns wrote:
Hi,

thanks for your answer. I already have a toolchain from the machine constructor but I am not able to import it in scratchbox.
At step 3 of


         Configuring using the create_toolchain_conf -helper

I am getting:
COMPILER_NAME = arm-linux-lincon
COMPILER_PACKAGE = <you have to fill in this one>
ARCH = arm
SUB_ARCH = $(ARCH)
VENDOR = unknown-
TOOLCHAIN_PREFIX_END = uclibc-
TARGET_END = -uclibc

BINUTILS_FULLVER = 2.14-sb1

HEADERS_DIR = $(COMPILER_DIR)/arm-linux/include
LINUX_HEADERS_SUBDIRS = linux asm
LINUX_HEADERS_VER = 2.4.21-rmk1

LIBC_VER = 2.2.5
#
# ERROR: I don't have arch and therefore cannot find bin and lib dirs.
CHECKSUM_FILE   = ../../$(CONFIG:.conf=.checksums)

I've tried to add the compiler description manually but then at step 2 of

       Building auxiliary tools

I am getting this error at the end of the make process:

[===== NOW BUILDING:    glibc-2.2.5     =====]
       [fetch] complete for glibc.
make[1]: Leaving directory `/home/amburns/sb-toolchain-extras/libc/glibc-alienbase-debian'
make: *** ../../cc/gcc-2.95-debian: No such file or directory.  Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake: *** [all-sums] Error 2 make: Leaving directory `/home/amburns/sb-toolchain-extras/meta/alien-tc'

Thank you,

Anne-Marie

   *


   *



Jussi Hakala wrote:
If you have already a cross toolchain, you can import it inside scratchbox using the instructions in scratchbox.org wiki [1].

Otherwise you have to first compile a crosstoolchain for yourself, the oldest toolchains available at scratchbox.org are gcc 3.3/glibc 2.3.

Regards,

  Jussi

[1] http://scratchbox.org/wiki/ForeignToolchains

Anne-Marie Burns wrote:
Hi,

I am searching for a toolchain for a strong arm 7 processor gcc 2.95.3 glibc 2.2.5 (lincon-8x3x machine) to run on scratchbox apophis r4.

Anyone can help?

Thanks,

Anne-Marie
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to