Re: Issues building gcc natively on mipsel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kai,

Looking at the native gcc config is what I did last night -- low and
behold, passing several args that seemed meaningful produced a working
gcc-7.3.0!

Here is the successful config:
$ ../gcc-7.3.0/configure --enable-languages=c,c++ --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--disable-multiarch --with-arch-32=mips32r2 --with-fp-32=xx --with-madd4=no
--with-lxc1-sxc1=no --enable-checking=release --build=mipsel-linux-gnu
--host=mipsel-linux-gnu --target=mipsel-linux-gnu

Of course I still had to pass the CPATH and LIBRARY_PATH adjustments, but
that doesn't bother me:

CPATH=/usr/include/mipsel-linux-gnu LIBRARY_PATH=/usr/lib/mipsel-linux-gnu


Best regards,
Martin


On Wed, 1 Aug 2018 at 09:01, Kai Ruottu <kai.ruottu@xxxxxxxxxxx> wrote:

> martin krastev kirjoitti 1.8.2018 klo 1.29:
> > Hi YunQiang,
> >
> > Nope, I haven't passed to the config anything beyond what I already
> posted
> > in the original post.
> >
> > I'll drop --with-float=hard next and see what happens, as a shot in the
> > dark.
>
> >>>> libtool: compile:  /home/gru/proj/gcc_build/./gcc/xgcc -shared-libgcc
> >>>> -B/home/gru/proj/gcc_build/./gcc -nostdinc++
> >>>> -L/home/gru/proj/gcc_build/mipsel-linux-gnu/libstdc++-v3/src
> >>>> -L/home/gru/proj/gcc_build/mipsel-linux-gnu/libstdc++-v3/src/.libs
> >>>>
> >>
>
> When the current native GCC ("gcc") in the system works, it would be
> wise to look at
> how it was configured. What special options ('-mcpu=', '-march=' etc)
> was used when
> it was configured. Then try them first if possible.
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux