Re: r322769: make buildkernel/buildworld failure: Unable to determine compiler type for CC=cc
Am Tue, 22 Aug 2017 12:56:22 +0200 Dimitry Andricschrieb: > On 22 Aug 2017, at 06:20, O. Hartmann wrote: > > > > On Mon, 21 Aug 2017 23:47:54 +0200 > > Dimitry Andric wrote: > > > >> On 21 Aug 2017, at 20:52, O. Hartmann 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@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@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 * 1 + $2 * 100 + $3;}'" returned > > non-zero > > status Segmentation fault > > Hmm, maybe your awk is borked? What happens if you run: > > echo hi there | awk '{print $1}' > > -Dimitry > echo hi there | awk '{print $1}' hi -- O. Hartmann Ich widerspreche der Nutzung oder Übermittlung meiner Daten für Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). pgpPgzW8hyzIY.pgp Description: OpenPGP digital signature
Re: r322769: make buildkernel/buildworld failure: Unable to determine compiler type for CC=cc
On 22 Aug 2017, at 06:20, O. Hartmannwrote: > > On Mon, 21 Aug 2017 23:47:54 +0200 > Dimitry Andric wrote: > >> On 21 Aug 2017, at 20:52, O. Hartmann 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@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@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 * 1 + $2 * 100 + $3;}'" returned non-zero > status Segmentation fault Hmm, maybe your awk is borked? What happens if you run: echo hi there | awk '{print $1}' -Dimitry signature.asc Description: Message signed with OpenPGP
Re: r322769: make buildkernel/buildworld failure: Unable to determine compiler type for CC=cc
On Mon, 21 Aug 2017 23:47:54 +0200 Dimitry Andricwrote: > On 21 Aug 2017, at 20:52, O. Hartmann 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@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@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 * 1 + $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 * 1 + $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 * 1 + $2 * 100 + $3;}'" returned non-zero status Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: r322769: make buildkernel/buildworld failure: Unable to determine compiler type for CC=cc
On 21 Aug 2017, at 20:52, O. Hartmannwrote: > > 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 signature.asc Description: Message signed with OpenPGP
Re: r322769: make buildkernel/buildworld failure: Unable to determine compiler type for CC=cc
O. Hartmannwrote: > 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. > > > System has been recompiled previously with filemon loaded. > > So, how is this to be solved? Ideas, please. I do not want to wreck my whole > farm here ... > Well first off you want to find what 'cc' was invoked above. See if it cored - if it is something that should have run successfully on the host. The fact that the errors say 'make:' rather than 'make[1]:' indicates this is the initial instance, if it were a sub-make you could add .META to the target that ran the sub-make and thus see from .meta file which 'cc' was run. You could perhaps write a trivial makefile (m) to do that. Ie. give it something like: .MAIN: all all: it it: .META ${MAKE} -C ${.CURDIR} whatever You *may* need it: .META MAKELEVEL=0 ${MAKE} -C ${.CURDIR} whatever to reproduce the cirsumstances better. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
r322769: make buildkernel/buildworld failure: Unable to determine compiler type for CC=cc
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. System has been recompiled previously with filemon loaded. So, how is this to be solved? Ideas, please. I do not want to wreck my whole farm here ... Thanks in advance, Oliver -- O. Hartmann Ich widerspreche der Nutzung oder Übermittlung meiner Daten für Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). pgpZE4XuINmLR.pgp Description: OpenPGP digital signature