[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

2 errors when building toolchain for arm



Hello,

I'm following the instructions given on
http://www.emdebian.org/tools/crossdev.html
to create a toolchain for arm. The vendor-tool-chain uses uClibc,
which is not sufficient to compile libACE, it seems.

In the instruction:

  $ apt-get source -x gcc-3.4 binutils libc

the -x option doesn't work for me, so I ended up with

  $ apt-get -d source gcc-3.4 binutils glibc
  $ dpkg-source -x  <file>.dsc




In the last part

  $ export GCC_TARGET=arch (replace arch trough arm, alpha,...)
  $ cd gcc-3.4-3.4.2
  $ debian/rules control
  $ dpkg-buildpackage -b -rfakeroot

the last command fails after a while with the error message below.

...
mv stamps/07-install-stamp stamps/07-install-stamp-tmp
rm -rf debian/libstdc++6-0-arm-cross
dh_installdirs -plibstdc++6-0-arm-cross usr/share/doc usr/arm-linux/lib
DH_COMPAT=2 dh_movefiles -plibstdc++6-0-arm-cross usr/arm-linux/lib/libstdc++.so.*
dh_installdocs -plibstdc++6-0-arm-cross
echo "See /usr/share/doc/gcc-3.4-base for more information" \
        >
debian/libstdc++6-0-arm-cross/usr/share/doc/libstdc++6-0-arm-cross/README.Debian
dh_installchangelogs -plibstdc++6-0-arm-cross
debian/dh_rmemptydirs -plibstdc++6-0-arm-cross
PATH=/usr/share/dpkg-cross:$PATH dh_strip -plibstdc++6-0-arm-cross
+ /usr/bin/arm-linux-strip --remove-section=.comment --remove-section=.note
--strip-unneeded debian/libstdc++6-0-arm-cross/usr/arm-linux/lib/libstdc++.so.60.0.3
dh_compress -plibstdc++6-0-arm-cross
dh_fixperms -plibstdc++6-0-arm-cross
dh_makeshlibs -plibstdc++6-0-arm-cross -V 'libstdc++6-0-arm-cross (>= 3.4.3-1)' -n
sed s/-arm-cross//g < debian/libstdc++6-0-arm-cross/DEBIAN/shlibs >
debian/libstdc++6-0-arm-cross/DEBIAN/shlibs.fixed
mv debian/libstdc++6-0-arm-cross/DEBIAN/shlibs.fixed
debian/libstdc++6-0-arm-cross/DEBIAN/shlibs
ARCH=arm MAKEFLAGS="CC=something" dh_shlibdeps -plibstdc++6-0-arm-cross
sed 's/\(lib[^ ]*\) /\1-arm-cross /g' < debian/libstdc++6-0-arm-cross.substvars >
debian/libstdc++6-0-arm-cross.substvars.new
/bin/bash: debian/libstdc++6-0-arm-cross.substvars: No such file or directory
make[1]: *** [stamps/08-binary-stamp-libstdcxx] Error 1
make[1]: Leaving directory `/space/cross/gcc-3.4-3.4.3'
make: *** [binary] Error 2


a touch debian/libstdc++6-0-arm-cross.substvars at the right time
will make the process complete, however, I can't tell, whether this is
any good, or what fails before.

files/versions:
binutils-cross-2.15-5.patch.20041130
binutils_2.15-5.diff.gz
binutils_2.15-5.dsc
binutils_2.15.orig.tar.gz

gcc-3.4_3.4.3-12.diff.gz
gcc-3.4_3.4.3-12.dsc
gcc-3.4_3.4.3.orig.tar.gz

glibc_2.3.2.ds1-20.diff.gz
glibc_2.3.2.ds1-20.dsc
glibc_2.3.2.ds1.orig.tar.gz


For what it's worth: I did compile/install binutils. I did _not_
recompile glibc, I did dpkg-cross/dpkg -i from the respective _arm.deb
package.


Other than that I'm able to compile a modest test application with the
new arm-linux-gcc-3.4 (-static to avoid missing libs for now), and run
it on the target board (featuring a NetSilicon 9750 cpu).


Cheers,
Erich



Reply to: