Problems building busybox with dpkg-buildpackage (dpkg-cross version).
I have a recent 'etch' cross toolchain successfully built now for
powerpc that has allowed me to compile both the kernel and several
packages using dpkg-buildpackage. I'm having problems, however,
building busybox. It seems as if 'crossprefix' is getting jammed into
the path of the 'c' files being passed to the cross compiler. Below see
that I'm building in '/usr/src/cross-packages/busybox-1.1.3/...', but
the absolute path of the file the compiler sees is
'/usr/powerpc-linux-gnu/src/cross-packages/busybox-1.1.3/...'
I've read the dpkg-cross help, and examined the busybox Makefiles and
the dpkg-cross perl scripts a bit, but can't figure out where this is
coming from. Is there some simple thing I'm doing wrong, or is this
package trying to be too smart (I saw some mention of a $CROSS
environment variable in the busybox makefiles). I don't have any
significant environment variables set that I know of.
Any help or insight appreciated.
Thanks,
-Jim Heck
androcross:/usr/src/cross-packages/busybox-1.1.3# dpkg-buildpackage
-apowerpc -us -uc -rfakeroot -b 2>&1 | tee ../busybox.build
...
make[1]: Leaving directory `/usr/src/cross-packages/busybox-1.1.3'
/usr/bin/make -C
/usr/src/cross-packages/busybox-1.1.3/debian/build/build-deb
make[1]: Entering directory
`/usr/src/cross-packages/busybox-1.1.3/debian/build/build-deb'
GEN .depend
CC applets/applets.o
powerpc-linux-gnu-gcc:
/usr/powerpc-linux-gnu/src/cross-packages/busybox-1.1.3/applets/applets.c:
No such file or directory
powerpc-linux-gnu-gcc: no input files
make[1]: ***
[/usr/src/cross-packages/busybox-1.1.3/debian/build/build-deb/applets/applets.o]
Error 1
make[1]: Leaving directory
`/usr/src/cross-packages/busybox-1.1.3/debian/build/build-deb'
make: *** [debian/stamps/build-deb] Error 2
make: Leaving directory `/usr/src/cross-packages/busybox-1.1.3'
Reply to: