> Does it make any difference having it in mk.conf or not?

At the moment, I am looking into the same question. Yesterday, I went
through the compiler upgrade steps on an i386-current machine.
Probably, I have ended up with a gcc3-compiled gcc4 on my i386 system,
although I had thought I had re-compiled gcc4 with itself as per the
second step of the instructions in the the FAQ.

However, after looking at
 /usr/src/share/mk/bsd.own.mk  (see snipplet below)
it looks to me as if gcc4 is currently only set "automagically" on
am64 and sparc64. Right now, I am trying to re-compile (on my i386
machine) gcc4 with itself after having set COMPILER_VERSION=gcc4
manually in /etc/mk.conf , as per Marco's instructions.

In an hour or so I should know if this solves the compile error I had
encoutered while building the userland, although the building of the
kernel was fine (still on i386). As per Marco's table, gcc4 is OK also
on i386.

Rolf

...
# gcc3
.if ${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "m88k" || \
    ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "vax"
USE_GCC3?=no
COMPILER_VERSION?=gcc2
.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "sparc64"
COMPILER_VERSION?=gcc4
.else
USE_GCC3?=yes
COMPILER_VERSION?=gcc3
.endif
...

Reply via email to