building cross-compiler packages
Hello.
I'm currently trying to find out what is the *right* way to build a Debian
package for gcc-3.3 and g++-3.3 cross-compiler (host=x86-linux,
target=arm-linux).
I looked at toolchain-source package (and it really looks good), however it
is still for gcc-3.2, not 3.3
So I donwloaded debian source package for gcc-3.3 (version 3.3.3ds1-0pre1)
thinking about moving toolchain-source to gcc-3.3 myself. However, after
unpacking the source, I found README.cross file stating the following:
> [ Addendum: It's possible to build cross compilers from the gcc-3.3
> source package. See the comments in debian/rules.defs. Please send
> fixes and improvements to debian-gcc@lists.debian.org ]
So I looked at those comments and thought that maybe that is the right way
to build cross-compiler package.
So I tried
export GCC_TARGET=arm
dpkg-buildpackage -b -rfakeroot
This failed. When running ./configure in the build tree, it passed empty
value for --target parameter.
I looked at build scripts and found the most likely reason.
Variable DEB_TARGET_ALIAS is used, but not initialized.
nikita@bliss:~/gcc-3.3-3.3.3ds1/debian> grep DEB_TARGET_ALIAS *
rules.defs: TS = -$(DEB_TARGET_ALIAS)
rules.defs: TARGET_ALIAS := $(DEB_TARGET_ALIAS)
Perhaps it is a bug?
By setting this variable for command line (export
DEB_TARGET_ALIAS=arm-linux) I was able to bypass this. However, build
still failed:
...
cp g++ g++-cross
_error_not_here_yet - havent even thought about it - it may even work
Looks like building cross-g++ not implemented yet?
Now thinking what to do with this...
P.S.
Maybe there is a ready-to-use way to build cross-compiler packages? If yes,
please point me to it...
Reply to: