OpenWrt Forum Archive

Topic: Error when compile kamikaze in playstation3

The content of this topic has been archived on 29 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I tried to compile kamikaze in playstation3, and got following errors, someone could help me? The OS is Ubuntu 2.6.22-14-cell

make[1]: Entering directory `/home/kamikaze'
make[2]: Entering directory `/home/kamikaze'
make[3]: Entering directory `/home/kamikaze/target/linux'
TARGET_BUILD=1 make -C ps3 compile
make[4]: Entering directory `/home/kamikaze/target/linux/ps3'
rm -f /home/kamikaze/build_dir/linux-ps3/linux-2.6.23/vmlinux /home/kamikaze/build_dir/linux-ps3/linux-2.6.23/System.map
make -C /home/kamikaze/build_dir/linux-ps3/linux-2.6.23 CROSS_COMPILE="powerpc-linux-uclibc-" ARCH="powerpc" KBUILD_HAVE_NLS=no CONFIG_SHE
LL="/bin/bash" modules
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/home/kamikaze/build_dir/linux-ps3/linux-2.6.23/scripts/gcc-version.sh: line 22: printf: #: invalid number
/home/kamikaze/build_dir/linux-ps3/linux-2.6.23/scripts/gcc-version.sh: line 22: printf: #: invalid number
[: 1: 6000: unexpected operator
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/home/kamikaze/build_dir/linux-ps3/linux-2.6.23/scripts/gcc-version.sh: line 22: printf: #: invalid number
/home/kamikaze/build_dir/linux-ps3/linux-2.6.23/scripts/gcc-version.sh: line 22: printf: #: invalid number
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/home/kamikaze/build_dir/linux-ps3/linux-2.6.23/scripts/gcc-version.sh: line 20: printf: #: invalid number
/home/kamikaze/build_dir/linux-ps3/linux-2.6.23/scripts/gcc-version.sh: line 20: printf: #: invalid number
/home/kamikaze/build_dir/linux-ps3/linux-2.6.23/scripts/gcc-version.sh: line 20: printf: #: invalid number
make[5]: Entering directory `/home/kamikaze/build_dir/linux-ps3/linux-2.6.23'
*** 2.6 kernels no longer build correctly with old versions of binutils.
*** Please upgrade your binutils to 2.12.1 or newer
make[5]: *** [checkbin] Error 1
make[5]: Leaving directory `/home/kamikaze/build_dir/linux-ps3/linux-2.6.23'
make[4]: *** [/home/kamikaze/build_dir/linux-ps3/linux-2.6.23/.modules] Error 2
make[4]: Leaving directory `/home/kamikaze/target/linux/ps3'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/kamikaze/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/kamikaze'
make[1]: *** [/home/kamikaze/staging_dir/powerpc/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/kamikaze'
make: *** [world] Error 2

When I tried to compile this on my AMD64 machine running on an Open-SuSE v10.3, I got the following error messages:

        for i in atomic.h endian.h fcntl.h fenv.h fenvinline.h ioctl-types.h ipc.h kernel_stat.h kernel_types.h mathdef.h mathinline.h mman.h msq.h sem.h setjmp.h shm.h sigcontextinfo.h stackinfo.h stat.h syscalls.h sysdep.h termios.h uClibc_arch_features.h wordsize.h ; do \
                ln -fs ../../libc/sysdeps/linux/powerpc/bits/$i .; \
        done; \
        for i in  ; do \
                ln -fs ../../libc/sysdeps/linux/powerpc/bits/classic/$i .; \
        done
\
        cd include/sys; \
        set -e; \
        for i in `ls ../../libc/sysdeps/linux/common/sys/*.h` ; do \
                ln -fs $i .; \
        done; \
        if [ -d ../../libc/sysdeps/linux/powerpc/sys ] ; then \
                for i in `ls ../../libc/sysdeps/linux/powerpc/sys/*.h` ; do \
                        ln -fs $i .; \
                done; \
        fi
\
        set -e; \
        cd ./; \
        tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null`; \
        [ -z "$tmp" ] && tmp='include/bits/sysnum.h.new'; \
        KERNEL_HEADERS="/opt/tmp/openwrt-svn-trunk/build_dir/toolchain-powerpc_gcc4.2.3/linux/include/" top_builddir=. CC="powerpc-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float" /bin/sh extra/scripts/gen_bits_syscall_h.sh > $tmp; \
        if cmp include/bits/sysnum.h $tmp >/dev/null 2>&1; then \
                rm -f $tmp; \
        else \
                mv -f $tmp include/bits/sysnum.h; \
        fi
cc1: error: unrecognized command line option "-mips32"
cc1: error: unrecognized command line option "-mips32"
:0: error: bad value (mips32) for -mtune= switch
:0: error: bad value (mips32) for -mtune= switch
powerpc-linux-uclibc-gcc -c ldso/ldso/ldso.c -o ldso/ldso/ldso.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -fno-strict-aliasing -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -fno-stack-protector -fno-builtin -nostdinc -I./include -I. -msoft-float -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/powerpc -I./libpthread/linuxthreads.old/sysdeps/powerpc -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux -I./libpthread/linuxthreads.old/sysdeps/pthread -I./libpthread/linuxthreads.old -I./libpthread -I/opt/tmp/openwrt-svn-trunk/build_dir/toolchain-powerpc_gcc4.2.3/linux/include/ -isystem /opt/tmp/openwrt-svn-trunk/staging_dir/toolchain-powerpc_gcc4.2.3/lib/gcc/powerpc-linux-uclibc/4.2.3/include -DNDEBUG -fpic -DSHARED -DNOT_IN_libc -DIS_IN_rtld -fno-stack-protector -fno-omit-frame-pointer -I./ldso/ldso/powerpc -I./ldso/include -I./ldso/ldso -DUCLIBC_RUNTIME_PREFIX="/" -DUCLIBC_LDSO="ld-uClibc.so.0" -DLDSO_ELFINTERP="powerpc/elfinterp.c"
cc1: error: unrecognized command line option "-mips32"
ldso/ldso/ldso.c:1: error: bad value (mips32) for -mtune= switch
make[4]: *** [ldso/ldso/ldso.oS] Error 1
make[4]: Leaving directory `/opt/tmp/openwrt-svn-trunk/build_dir/toolchain-powerpc_gcc4.2.3/uClibc-0.9.29'
make[3]: *** [/opt/tmp/openwrt-svn-trunk/staging_dir/toolchain-powerpc_gcc4.2.3/stamp/.uclibc_installed] Error 2
make[3]: Leaving directory `/opt/tmp/openwrt-svn-trunk/toolchain/uClibc'
make[2]: *** [toolchain/uClibc/compile] Error 2
make[2]: Leaving directory `/opt/tmp/openwrt-svn-trunk'
make[1]: *** [/opt/tmp/openwrt-svn-trunk/staging_dir/powerpc/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/opt/tmp/openwrt-svn-trunk'
make: *** [world] Error 2

Considering a SONY PS3 is a 64-bit platform, why uses a -mips32 switch? Also, a SONY PS3 is a full-blown computer, why would OpenWRT want to port it to a SONY PS3?

The discussion might have continued from here.