[opensuse-factory] Cross compiling for mips 32-bit
I have cross-mips-binutils installed and the man page for gcc says it should work. The board is the Omnima board based on the Infineon ADM5120. I'm trying to cross compile on 11.2 Milestone 1 x86_64. Any help appreciated or perhaps I need to open a bug. # make <stuff truncated> CRC-CCITT functions (CRC_CCITT) [M/y/?] m CRC16 functions (CRC16) [M/y/?] m CRC ITU-T V.41 functions (CRC_ITU_T) [M/y/?] m CRC32 functions (CRC32) [Y/?] y CRC7 functions (CRC7) [M/y/?] m CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [M/y/?] m # # configuration written to .config # gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" scripts/kconfig/conf -s arch/mips/Kconfig gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" CHK include/linux/version.h CHK include/linux/utsrelease.h CC kernel/bounds.s gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" make[7]: *** [kernel/bounds.s] Error 1 make[6]: *** [prepare0] Error 2 make[5]: *** [prepare] Error 2 make[5]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5' make[4]: [/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/.configured] Error 2 (ignored) rm -rf /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/modules touch /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/.configured rm -f /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/vmlinux /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/System.map make -C /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5 CROSS_COMPILE="" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" CC="gcc" modules gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" make[5]: Entering directory `/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5' CHK include/linux/version.h CHK include/linux/utsrelease.h CC kernel/bounds.s gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" make[6]: *** [kernel/bounds.s] Error 1 make[5]: *** [prepare0] Error 2 make[5]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5' make[4]: *** [/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/.modules] Error 2 make[4]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09/target/linux/adm5120' make[3]: *** [compile] Error 2 make[3]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09/target/linux' make[2]: *** [target/linux/compile] Error 2 make[2]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09' make[1]: *** [/home/lancelot/ftp/may09/kamikaze_8.09/staging_dir/mipsel/stamp/.target_compile] Error 2 make[1]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09' make: *** [world] Error 2 lancelot@slipstream:~/ftp/may09/kamikaze_8.09> Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Sun, 17 May 2009, Sid Boyce wrote:
I have cross-mips-binutils installed and the man page for gcc says it should work. The board is the Omnima board based on the Infineon ADM5120. I'm trying to cross compile on 11.2 Milestone 1 x86_64. Any help appreciated or perhaps I need to open a bug.
You need a mips crosscompiler which we do not have a package for. Richard.
# make <stuff truncated> CRC-CCITT functions (CRC_CCITT) [M/y/?] m
CRC16 functions (CRC16) [M/y/?] m
CRC ITU-T V.41 functions (CRC_ITU_T) [M/y/?] m
CRC32 functions (CRC32) [Y/?] y CRC7 functions (CRC7) [M/y/?] m CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [M/y/?] m # # configuration written to .config # gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" scripts/kconfig/conf -s arch/mips/Kconfig gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" CHK include/linux/version.h CHK include/linux/utsrelease.h CC kernel/bounds.s gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" make[7]: *** [kernel/bounds.s] Error 1 make[6]: *** [prepare0] Error 2 make[5]: *** [prepare] Error 2 make[5]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5' make[4]: [/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/.configured] Error 2 (ignored) rm -rf /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/modules touch /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/.configured rm -f /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/vmlinux /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/System.map make -C /home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5 CROSS_COMPILE="" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" CC="gcc" modules gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" make[5]: Entering directory `/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5' CHK include/linux/version.h CHK include/linux/utsrelease.h CC kernel/bounds.s gcc: 0: No such file or directory gcc: unrecognized option '-G' gcc: unrecognized option '-EL' cc1: error: unrecognized command line option "-mabi=32" cc1: error: unrecognized command line option "-mno-abicalls" cc1: error: unrecognized command line option "-mips32" make[6]: *** [kernel/bounds.s] Error 1 make[5]: *** [prepare0] Error 2 make[5]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5' make[4]: *** [/home/lancelot/ftp/may09/kamikaze_8.09/build_dir/linux-adm5120_router_le/linux-2.6.26.5/.modules] Error 2 make[4]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09/target/linux/adm5120' make[3]: *** [compile] Error 2 make[3]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09/target/linux' make[2]: *** [target/linux/compile] Error 2 make[2]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09' make[1]: *** [/home/lancelot/ftp/may09/kamikaze_8.09/staging_dir/mipsel/stamp/.target_compile] Error 2 make[1]: Leaving directory `/home/lancelot/ftp/may09/kamikaze_8.09' make: *** [world] Error 2 lancelot@slipstream:~/ftp/may09/kamikaze_8.09>
Regards Sid.
--
Richard Guenther
Richard Guenther wrote:
On Sun, 17 May 2009, Sid Boyce wrote:
I have cross-mips-binutils installed and the man page for gcc says it should work. The board is the Omnima board based on the Infineon ADM5120. I'm trying to cross compile on 11.2 Milestone 1 x86_64. Any help appreciated or perhaps I need to open a bug.
You need a mips crosscompiler which we do not have a package for.
Richard.
./configure --host=x86_64-suse-linux --target=mips32 --with-gnu-as --with-gnu-ld --prefix /usr/local This as far I get so far with make. checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking for struct tms... yes checking for clock_t... yes checking for .preinit_array/.init_array/.fini_array support... no checking if mkdir takes one argument... no *** Configuration mips642-unknown-elf not supported make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/lancelot/ftp/may09/gcc-4.3.3' make: *** [all] Error 2 Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, 19 May 2009, Sid Boyce wrote:
Richard Guenther wrote:
On Sun, 17 May 2009, Sid Boyce wrote:
I have cross-mips-binutils installed and the man page for gcc says it should work. The board is the Omnima board based on the Infineon ADM5120. I'm trying to cross compile on 11.2 Milestone 1 x86_64. Any help appreciated or perhaps I need to open a bug.
You need a mips crosscompiler which we do not have a package for.
Richard.
./configure --host=x86_64-suse-linux --target=mips32 --with-gnu-as --with-gnu-ld --prefix /usr/local
This as far I get so far with make.
checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking for struct tms... yes checking for clock_t... yes checking for .preinit_array/.init_array/.fini_array support... no checking if mkdir takes one argument... no *** Configuration mips642-unknown-elf not supported make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/lancelot/ftp/may09/gcc-4.3.3' make: *** [all] Error 2
It's not that easy ;) I suggest you take the gcc43 source package
and edit the change_spec file to handle mips32 the same as either
avr or spu (dependent on whether you need newlib). Then source
pre_checkin.sh and use rpmbuild to build the cross-mips*.spec
file.
Richard.
--
Richard Guenther
Richard Guenther wrote:
On Tue, 19 May 2009, Sid Boyce wrote:
Richard Guenther wrote:
On Sun, 17 May 2009, Sid Boyce wrote:
I have cross-mips-binutils installed and the man page for gcc says it should work. The board is the Omnima board based on the Infineon ADM5120. I'm trying to cross compile on 11.2 Milestone 1 x86_64. Any help appreciated or perhaps I need to open a bug. You need a mips crosscompiler which we do not have a package for.
Richard.
./configure --host=x86_64-suse-linux --target=mips32 --with-gnu-as --with-gnu-ld --prefix /usr/local
This as far I get so far with make.
checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking for struct tms... yes checking for clock_t... yes checking for .preinit_array/.init_array/.fini_array support... no checking if mkdir takes one argument... no *** Configuration mips642-unknown-elf not supported make[1]: *** [configure-gcc] Error 1 make[1]: Leaving directory `/home/lancelot/ftp/may09/gcc-4.3.3' make: *** [all] Error 2
It's not that easy ;) I suggest you take the gcc43 source package and edit the change_spec file to handle mips32 the same as either avr or spu (dependent on whether you need newlib). Then source pre_checkin.sh and use rpmbuild to build the cross-mips*.spec file.
Richard.
Thanks, I shall give that a try. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (2)
-
Richard Guenther
-
Sid Boyce