Hi Oliver, I have been able to get a usable user space built for Mips64 using T2 8.0 + some additional patches, which have not yet been passed up to the T2 community, since they are somewhat experimental. I was hoping to have those patches finalized, and sent to the list for the final 8.0 release, but some highly urgent projects came up at work, and I had to put the T2 work on the back burner for a while.
My work was based on the Generic-minimal platform. Yes, the dietlibc was never ported to MIPS64. The way that I worked around this was to either remove those projects from the package configuration, because most of them were not needed for my project, or to switch those packages over to glibc. The ultimate solution would be to work with the dietlibc project on an actual mips64 port. The next thing you will run into is some "internal compiler errors" with the latest GCC It failed for me on 4.5.0, but may have been fixed in 4.5.1, if not you will have to Roll GCC back to version 4.4.3 The last major issue was that the MIPS64 T2 would not successfully build as multilib, but I was able to get either a pure 64 abi build, or an n32 abi build, but not both in the same project. I settled for an n32 userspace for my project. I am on vacation this week, but will be back in the office on Monday, and can send you the patches that I was using, but they have become stale, and will need some refreshing to work with the final 8.0 codebase. Jan > -----Original Message----- > From: Oliver Kowalke [mailto:[email protected]] > Sent: Tuesday, August 31, 2010 4:34 PM > To: T2 developers mailing list > Subject: [t2] MIPS64 not working > > > Hi, > I tried to compile T2 8.0 for MIPS64 (cross-compiling on > x86-64) but it didn't work. > > dietlib has no MIPS64 target: > > == 22:21:02 =[1]=> Building base/dietlibc [0.32 8.0]. > -> Preparing configuration to build this package with dietlibc > (statically). > -> Reading package config: package/base/dietlibc/dietlibc.conf > -> Preparing build in src.dietlibc.default.20100831.222102.25341.c2dlx01 > -> Building. Writing output to $root/var/adm/logs/1-dietlibc.out > !> patching file diet.c > !> `bin-x86_64/diet-i' -> > `/tmp/t2-8.0/build/default-8.0-generic-mips64-EB-cross- > linux/TOOLCHAIN/tools.cross/diet-bin/diet' > !> `bin-x86_64/diet-dyn-i' -> > `/tmp/t2-8.0/build/default-8.0-generic-mips64-EB-cross- > linux/TOOLCHAIN/tools.cross/diet-bin/diet-dyn' > !> Running make CC=mips64-t2-linux-gnu-gcc CPP=mips64-t2-linux-gnu-cpp > CXX=mips64-t2-linux-gnu-g++ prefix=/usr/dietlibc > docdir=/usr/dietlibc/doc/dietlibc CC_FOR_BUILD=cc BUILDCC=cc BUILD_CC=cc > HOSTCC=cc HOST_CC=cc STRIP=mips64-t2-linu .. > !> You should not call uname during the build! > !> Makefile:131: mips64/Makefile.add: No such file or directory > !> Due to previous errors, no 1-dietlibc.log file! > !> (Try enabling xtrace in the config to track an error inside the build > system.) > -> $root/var/adm/logs/1-dietlibc.out -> 1-dietlibc.err > == 08/31/10 22:21:06 =[1]=> Aborted building package dietlibc. > > > glibc was choosen in COnfig - but some of the apps > still link staticaly against dietlibc. > > Is T2 not runnable on MIPS64? > > Oliver > > Config: > > # > # T2 8.0 Config File > # > export SDECFG_TARGET='generic' > export SDECFG_PKGSEL_TPL='minimal' > export SDECFG_IMAGE='install' > export SDECFG_ARCH='mips64' > export SDECFG_MIPS64_ENDIANESS='EB' > export SDECFG_MIPS64_OPT='generic' > export SDECFG_CROSSBUILD='1' > export SDECFG_OPT='size' > export SDECFG_DEBUG='0' > export SDECFG_KERNEL='linux' > export SDECFG_CONTINUE_ON_ERROR_AFTER='4' > export SDECFG_RETRY_BROKEN='0' > export SDECFG_NOBROKENDEPS='0' > export SDECFG_KEEP_SRC='1' > export SDECFG_XTRACE='0' > export SDECFG_SRC_TMPFS='0' > export SDECFG_PARALLEL_MAX='4' > export SDECFG_OUTPUT_TERM_COLOR='1' > export SDECFG_VERBOSE='0' > export SDECFG_PKG_CCACHE_USEIT='0' > export SDECFG_EXPERT='1' > export SDECFG_PKGFILE_TYPE='tar.bz2' > export SDECFG_PKGFILE_VER='1' > export SDECFG_PKGSEL='0' > export SDECFG_DEFAULT_CC='gcc' > export SDECFG_DEFAULT_KCC='gcc' > export SDECFG_DEFAULT_CXX='gcc' > export SDECFG_DEFAULT_F77='gcc' > export SDECFG_PKG_GCC_STACKPRO='0' > export SDECFG_PKG_GCC_JAVA='1' > export SDECFG_LIBC='glibc' > export SDECFG_DIETLIBC_DYN='0' > export SDECFG_DIETWANT_SYSENTER='1' > export SDECFG_DIETLIBC_00_dirtree='0' > export SDECFG_DIETLIBC_apr='0' > export SDECFG_DIETLIBC_ash='0' > export SDECFG_DIETLIBC_atftpd='0' > export SDECFG_DIETLIBC_autoconf='0' > export SDECFG_DIETLIBC_bash='0' > export SDECFG_DIETLIBC_binutils='0' > export SDECFG_DIETLIBC_bison='0' > export SDECFG_DIETLIBC_bsdiff='0' > export SDECFG_DIETLIBC_bzip2='0' > export SDECFG_DIETLIBC_ccache='0' > export SDECFG_DIETLIBC_clockspeed='0' > export SDECFG_DIETLIBC_coreutils='0' > export SDECFG_DIETLIBC_cpio='0' > export SDECFG_DIETLIBC_curl='0' > export SDECFG_DIETLIBC_dash='0' > export SDECFG_DIETLIBC_dialog='0' > export SDECFG_DIETLIBC_dietlibc='0' > export SDECFG_DIETLIBC_diffutils='0' > export SDECFG_DIETLIBC_disktype='1' > export SDECFG_DIETLIBC_distcc='0' > export SDECFG_DIETLIBC_djbdns='0' > export SDECFG_DIETLIBC_dosfstools='0' > export SDECFG_DIETLIBC_dropbear='0' > export SDECFG_DIETLIBC_dump='0' > export SDECFG_DIETLIBC_e2fsprogs='0' > export SDECFG_DIETLIBC_ebtables='0' > export SDECFG_DIETLIBC_elvis_tiny='0' > export SDECFG_DIETLIBC_embutils='1' > export SDECFG_DIETLIBC_fget='1' > export SDECFG_DIETLIBC_fgetty='0' > export SDECFG_DIETLIBC_file='0' > export SDECFG_DIETLIBC_findutils='0' > export SDECFG_DIETLIBC_flex='0' > export SDECFG_DIETLIBC_fnord='0' > export SDECFG_DIETLIBC_gatling='0' > export SDECFG_DIETLIBC_gawk='0' > export SDECFG_DIETLIBC_gcc='0' > export SDECFG_DIETLIBC_gmp='0' > export SDECFG_DIETLIBC_grep='0' > export SDECFG_DIETLIBC_grsecurity='0' > export SDECFG_DIETLIBC_gzip='0' > export SDECFG_DIETLIBC_hdparm='0' > export SDECFG_DIETLIBC_hotplug__='1' > export SDECFG_DIETLIBC_ipconfig='1' > export SDECFG_DIETLIBC_iproute2='0' > export SDECFG_DIETLIBC_iptables='0' > export SDECFG_DIETLIBC_java_dirtree='0' > export SDECFG_DIETLIBC_kiss='0' > export SDECFG_DIETLIBC_libosip2='0' > export SDECFG_DIETLIBC_libowfat='0' > export SDECFG_DIETLIBC_libpcap='0' > export SDECFG_DIETLIBC_libvserver='0' > export SDECFG_DIETLIBC_libxml='0' > export SDECFG_DIETLIBC_linux24='0' > export SDECFG_DIETLIBC_linux_header='0' > export SDECFG_DIETLIBC_lsscsi='0' > export SDECFG_DIETLIBC_lua='0' > export SDECFG_DIETLIBC_lzop='0' > export SDECFG_DIETLIBC_m4='0' > export SDECFG_DIETLIBC_make='0' > export SDECFG_DIETLIBC_mdadm='1' > export SDECFG_DIETLIBC_mdyndns='0' > export SDECFG_DIETLIBC_mine='0' > export SDECFG_DIETLIBC_mininet='0' > export SDECFG_DIETLIBC_minised='1' > export SDECFG_DIETLIBC_minit='0' > export SDECFG_DIETLIBC_mktemp='0' > export SDECFG_DIETLIBC_module_init_tools='1' > export SDECFG_DIETLIBC_modutils='1' > export SDECFG_DIETLIBC_mpc='0' > export SDECFG_DIETLIBC_mpfr='0' > export SDECFG_DIETLIBC_mproxy='0' > export SDECFG_DIETLIBC_mtcps='0' > export SDECFG_DIETLIBC_ncurses='0' > export SDECFG_DIETLIBC_neon='0' > export SDECFG_DIETLIBC_net_tools='0' > export SDECFG_DIETLIBC_nvi='0' > export SDECFG_DIETLIBC_openssl='0' > export SDECFG_DIETLIBC_patch='0' > export SDECFG_DIETLIBC_pdksh='1' > export SDECFG_DIETLIBC_perl='0' > export SDECFG_DIETLIBC_psmisc='0' > export SDECFG_DIETLIBC_radiusclient_ng='0' > export SDECFG_DIETLIBC_readline='0' > export SDECFG_DIETLIBC_rng_tools='0' > export SDECFG_DIETLIBC_rsync='0' > export SDECFG_DIETLIBC_sash='0' > export SDECFG_DIETLIBC_sdparm='0' > export SDECFG_DIETLIBC_sed='0' > export SDECFG_DIETLIBC_subversion='0' > export SDECFG_DIETLIBC_sysfiles='0' > export SDECFG_DIETLIBC_sysvinit='0' > export SDECFG_DIETLIBC_tar='0' > export SDECFG_DIETLIBC_termcap='0' > export SDECFG_DIETLIBC_termutils='0' > export SDECFG_DIETLIBC_texinfo='0' > export SDECFG_DIETLIBC_tftp_hpa='0' > export SDECFG_DIETLIBC_time='0' > export SDECFG_DIETLIBC_udev='1' > export SDECFG_DIETLIBC_udhcp='0' > export SDECFG_DIETLIBC_ugrep='0' > export SDECFG_DIETLIBC_uml_utilities='0' > export SDECFG_DIETLIBC_util_linux='0' > export SDECFG_DIETLIBC_util_vserver='0' > export SDECFG_DIETLIBC_vim='0' > export SDECFG_DIETLIBC_vlan='0' > export SDECFG_DIETLIBC_vserver='0' > export SDECFG_DIETLIBC_wget='0' > export SDECFG_DIETLIBC_zile='0' > export SDECFG_DIETLIBC_zlib='0' > export SDECFG_PKG_GLIBC_TLS='0' > export SDECFG_PKG_GLIBC_ENABLE_PROFILE='0' > export SDECFG_PKG_LINUX_CUSTCONFIG='0' > export SDECFG_PKG_LINUX_CONFIG_STYLE='modules' > export SDECFG_PKG_LINUX_KEEP_SRC='0' > export SDECFG_PKG_LINUX_USE26MODTOOLS='1' > export SDECFG_PKG_LINUX_ACPI_INITRD='1' > export SDECFG_INIT='busybox' > export SDECFG_INIT_STYLE='sysv_nice' > export SDECFG_PKG_GAMES_BINDIR='usr/games' > export SDECFG_PKG_GAMES_DATADIR='usr/share' > export SDECFG_PKG_GAMES_SCOREDIR='var/games/scores' > export SDECFG_JAILING='0' > export SDECFG_PKG_BUSYBOX_ET='0' > export SDECFG_PKG_BUSYBOX_SYMLINKS='0' > export SDECFG_PKG_TERMCAP_USEIT='0' > export SDECFG_REALTIME='0' > export SDECFG_PKG_UDEV_DEVDIR='/dev' > export SDECFG_DEFAULT_MTA='none' > export SDECFG_PKG_PERL5_HOST_NAME='localhost' > export SDECFG_PKG_PERL5_SITE_PREFIX='usr' > export SDECFG_PKG_PERL5_VENDOR_PREFIX='opt' > export SDECFG_PKG_PERL5_THREADS='0' > export SDECFG_DEFAULT_PRINTER='none' > export SDECFG_PKG_BASH_PROGCOMP='1' > export SDECFG_PKG_BASH_HELP_CMD='1' > export SDECFG_CONFIGURE_OPTS='' > export SDECFG_C_FLAGS='' > export SDECFG_FLIST='flwrapper' > export SDECFG_USE_CROSSCC='1' > export SDECFG_DO_REBUILD_STAGE='0' > export SDECFG_STATIC='0' > export SDECFG_STATIC_IN_USR='0' > export SDECFG_LD_AS_NEEDED='0' > export SDECFG_PIE='0' > export SDECFG_LIMITCXX='0' > export SDECFG_MULTILIB='1' > export SDECFG_DISABLE_NLS='1' > export SDECFG_CREATE_DOCS='0' > export SDECFG_CREATE_CACHE='1' > export SDECFG_PARANOIA_CHECK='1' > export SDECFG_IDCKSUM='0' > export SDECFG_SHORTID='8.0-generic-mips64-EB-cross-linux' > export SDECFG_ID='default-8.0-generic-mips64-EB-cross-linux' > > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [email protected] with a subject of: unsubscribe t2 ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [email protected] with a subject of: unsubscribe t2
