Re: r322769: make buildkernel/buildworld failure: Unable to determine compiler type for CC=cc

From: O. Hartmann <o.hartmann_at_walstatt.org>
Date: Tue, 22 Aug 2017 06:20:44 +0200
On Mon, 21 Aug 2017 23:47:54 +0200
Dimitry Andric <dim_at_FreeBSD.org> wrote:

> On 21 Aug 2017, at 20:52, O. Hartmann <ohartmann_at_walstatt.org> wrote:
> > 
> > I just updated to r322769 and now I face this when trying to recompile
> > kernel/world again:
> > 
> > make: "/usr/src/share/mk/bsd.compiler.mk" line 142: warning: "cc --version
> > || echo 0.0.0" exited on a signal make: "/usr/src/share/mk/bsd.compiler.mk"
> > line 155: Unable to determine compiler type for CC=cc.  Consider setting
> > COMPILER_TYPE.  
> 
> What is the output of "cc --version" ?
> 
> -Dimitry
> 
root_at_hostA:/usr/src # cc --version
FreeBSD clang version 5.0.0 (branches/release_50 311219) (based on LLVM
5.0.0svn) Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
[...]

I guess that is correct, since I did prior to this as usual a "make -jX
buildworld buildkernel", with META MODE set and filemon loaded. 

Another host, also at r322769, bails out with the very
same error when doing an update of the source tree, as shown below and the
"make buildworld" fails the very same :-(

[...]
root_at_hostB:/usr/src # make update
Segmentation fault
make: "/usr/src/share/mk/bsd.compiler.mk" line 159: warning: "echo "5.0.0
5.0.0svn)" | awk -F. '{print $1 * 10000 + $2 * 100 + $3;}'" returned non-zero
status Segmentation fault make: "/usr/src/share/mk/bsd.compiler.mk" line 164:
warning: "{ echo "__FreeBSD_cc_version" | cc -E - 2>/dev/null || echo
__FreeBSD_cc_version; } | sed -n '$p'" returned non-zero status Segmentation
fault make: "/usr/src/share/mk/bsd.linker.mk" line 45: warning: "(ld --version
|| echo none) | head -n 1" returned non-zero status make:
"/usr/src/share/mk/bsd.linker.mk" line 56: warning: Unknown linker from
LD=ld: , defaulting to bfd Segmentation fault make:
"/usr/src/share/mk/bsd.linker.mk" line 61: warning: "echo "2.17.50" |  awk -F.
'{print $1 * 10000 + $2 * 100 + $3;}'" returned non-zero status Segmentation
fault make[1]: "/usr/src/share/mk/bsd.compiler.mk" line 164: warning: "{ echo
"__FreeBSD_cc_version" | cc -E - 2>/dev/null || echo __FreeBSD_cc_version; } |
sed -n '$p'" returned non-zero status Segmentation fault make[1]:
"/usr/src/share/mk/bsd.linker.mk" line 45: warning: "(ld --version || echo
none) | head -n 1" returned non-zero status make[1]:
"/usr/src/share/mk/bsd.linker.mk" line 56: warning: Unknown linker from
LD=ld: , defaulting to bfd Segmentation fault make[1]:
"/usr/src/share/mk/bsd.linker.mk" line 61: warning: "echo "2.17.50" |  awk -F.
'{print $1 * 10000 + $2 * 100 + $3;}'" returned non-zero status Segmentation
fault Segmentation fault Segmentation fault Segmentation fault Segmentation
fault Segmentation fault Segmentation fault
Received on Tue Aug 22 2017 - 02:26:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC