we haven't cross-compiled in a while and it looks like bitrot set in

try this patch to bin/package (and src/cmd/INIT/package.sh)

---
                _hostinfo_="$_hostinfo_ $rating"
                ;;
        type|canon)
-               case $canon in
-               '')     case $cc in
+               case $CROSS:$canon in
+               0:)     case $cc in
                        cc)     case $KEEP_HOSTTYPE:$HOSTTYPE in
                                0:?*)   if      test -d 
$PACKAGEROOT/arch/$HOSTTYPE
                                        then    KEEP_HOSTTYPE=1
---

your cross-compilation setup looks ok

On Mon, 22 Dec 2008 20:17:42 +0100 Armin Kunaschik wrote:
> I try to build the current ksh for my Fritzbox (mipsel platform+uclibc).
> The environment is Ubuntu 8.10 for the i386 host and freetz-1.0.1
> (http://www.freetz.org/downloads/freetz-1.0.1.tar.bz2) for the mipsel 
> compiler toolchain.
> The toolchain works correctly, other apps (like pdksh) build fine.

> ~/.crossexec contains:
> mipsel-linux  192.168.112.2   kshtest /home/kshtest   ssh     scp

> mipsel-linux-gcc is in $PATH, CFLAGS are set as recommended by freetz guys
> as "-Os -pipe -march=4kc -Wa,--trap -fno-strict-aliasing"
> CROSSTYPE=mipsel-linux

> package make fails with the following error:

> $ bin/package make HOSTTYPE=mipsel-linux CC=mipsel-linux-gcc
> bin/package: line 2570: ./pkg19103.exe: cannot execute binary file
> package: mipsel-linux-gcc: seems to be a cross-compiler
> package: set HOSTTYPE to something other than the native mipsel-linux

> I would not want to build ksh myself if there would be a binary.. in fact on 
> the
> web page one finds a reference to a linux.mips package. But there is no binary
> package for that platform (anymore?).

the linux.mips machine we had access to was decomissioned

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to