Re: 64-bit MIPS cross toolchain?

Yunqiang Su <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <CAKcpw6UgUuAyoJyzpSr_vqmK9T2E-K-76_pg7m0mi3CvEEbwew@mail.gmail.com>
>Hi,

> Is there a cross 64-bit toolchain for MIPS that is being actively maintained?  If so, are  there any hardware boxes or emulators that will run the binaries that are produced?

> I've used the instructions at http://psas.pdx.edu/DebianCrossCompilerHowto/ to install the 'mipsel' gcc, but it produces mips32 binaries.

> Any advice would be appreciated.  There's lots of info out there but much of it seems to be old.  I'm beginning to wonder if this particular target is still of interest to anyone else.

> --Bob

Hi, sorry for possible break thread :-( as I didn't subscribe this list.

I have one of this toolchains.
Mini howto(On a amd64/sid host, do it in a chroot environment please):

sudo -i
echo "deb http://mips64el.debian.net/debian sid main" >> /etc/apt/sources.list
dpkg --add-architecuture mips64el
apt-get update
apt-get install gcc-4.9-mips64el-linux-gnuabi64
g++-4.9-mips64el-linux-gnuabi64 gccgo-4.9-mips64el-linux-gnuabi64
gdc-4.9-mips64el-linux-gnuabi64 gobjc-4.9-mips64el-linux-gnuabi64
gobjc++-4.9-mips64el-linux-gnuabi64
gfortran-4.9-mips64el-linux-gnuabi64 gcj-4.9-mips64el-linux-gnuabi64

apt-get install g++-4.9-multilib-mips64el-linux-gnuabi64
gcc-4.9-multilib-mips64el-linux-gnuabi64
gccgo-4.9-multilib-mips64el-linux-gnuabi64
gfortran-4.9-multilib-mips64el-linux-gnuabi64
gobjc-4.9-multilib-mips64el-linux-gnuabi64
gobjc++-4.9-multilib-mips64el-linux-gnuabi64

If multilib packages installed, "-mabi=32" and "-mabi=n32" can used to
work with libc6 (n32, o32)


It generates mips64r2 and mips32r2 objects by default.



-- 
Yunqiang Su
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.