tech-toolchain archive

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

re: Upgrading toolchain gcc to 7.2

> I have already tried to follow the commands in README.mknative, but it
> seems I'm doing something wrong.
> On the host (!= target) I have trouble executing step 3:  In src/tools/gcc,
> do "nbmake-MACHINE HAVE_GCC=48 bootstrap-libgcc".

HAVE_GCC=<n> is something that controls which GCC netbsd builds
and installs.  what tree are you running this in?  it doesn't
have GC 4.8 anymore and i wouldn't expect this to be usable on
anything except netbsd-7 branch hosts.

> The command I run:
> ../../../obj.netbsd/tooldir.Linux-4.13.3-1-ARCH-i686/bin/nbmake-evbearm-el
> MKGCCCMDS=yes  HAVE_GCC=48 bootstrap-libgcc
> is failing with the reason:
> checking how to run the C preprocessor... /lib/cpp
> configure: error: in
> `/home/rchmiela/experiments/obj.netbsd/tools/gcc/build/arm--netbsdelf-eabi/libgcc':
> configure: error: C preprocessor "/lib/cpp" fails sanity check
> See `config.log' for more details.
> nbgmake: *** [configure-target-libgcc] Error 1

look in this config.log and see what is up.  often the errors
are in the middle sections of the file and not obvious to find.
> Should I be running this command on target? Or maybe it's the fault of my
> host gcc (7.2.0)?

not really understanding how your setup is (for minix, or how
do you want to use this?) it's hard to give further advice.
can you explain how minix's current setup works, compared to

i do hope to have GCC 6 imported in the coming weeks, but i
have not looked at GCC 7 yet.
> > On Tue, Jan 09, 2018 at 08:22:25AM +0100, rchmielarz . wrote:
> > > 3) A more general question about the build system. I understand that
> > > /tools/gcc has the makefiles for building the cross-compilation
> > toolchain.
> > > But what is the purpose of /external/gpl3/gcc/lib and usr.bin. Why do
> > they
> > > have to be separate from the ../dist? And how have You came up what files
> > > to include in those tools?

the makefiles in this directory build the "native cc" that we ship
in /usr/bin/cc, etc.  they are targetted for the installed system
and are not considered cross compilers, though they are built with
a cross compiler (the tools/gcc one.)


Home | Main Index | Thread Index | Old Index