Re: impossible to installkernel without a compiler?

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 22 May 2019 17:46:03 +0300
On 22/05/2019 16:37, Warner Losh wrote:
> Try setting _NO_INCLUDE_COMPILERMK=t in your environment and then doing the make
> install.

This works a bit worse than my original hack:

sh: ld: not found
make[1]: "/usr/devel/svn/head/share/mk/bsd.linker.mk" line 58: warning: Unable
to determine linker type from LD=ld
make[1]: "/usr/devel/svn/head/share/mk/bsd.linker.mk" line 71: warning: Unknown
linker from LD=ld: none, defaulting to bfd
--------------------------------------------------------------
>>> Install check kernel
--------------------------------------------------------------
--------------------------------------------------------------
>>> Installing kernel KERNEL on Wed May 22 14:43:41 UTC 2019
--------------------------------------------------------------
make[2]: "/usr/devel/svn/head/sys/conf/kern.pre.mk" line 157: Malformed
conditional (${LINKER_TYPE} != "lld")
make[2]: Fatal errors encountered -- cannot continue


> On Wed, May 22, 2019 at 2:09 AM Andriy Gapon <avg_at_freebsd.org
> <mailto:avg_at_freebsd.org>> wrote:
> 
> 
>     Trying to update a small system with a kernel built for it on a bigger machine I
>     get this:
> 
>     sh: cc: not found
>     make: "/usr/devel/svn/head/share/mk/bsd.compiler.mk
>     <http://bsd.compiler.mk>" line 176: Unable to
>     determine compiler type for CC=cc.  Consider setting COMPILER_TYPE.
> 
>     Sources and objects are mounted over NFS, all configuration knobs match.
>     Just adding COMPILER_TYPE=gcc to the command line allows the installation to
>     succeed with a little bit of noise:
> 
>     sh: cc: not found
>     sh: ld: not found
>     make: "/usr/devel/svn/head/share/mk/bsd.linker.mk <http://bsd.linker.mk>"
>     line 58: warning: Unable to
>     determine linker type from LD=ld
>     make: "/usr/devel/svn/head/share/mk/bsd.linker.mk <http://bsd.linker.mk>"
>     line 71: warning: Unknown
>     linker from LD=ld: none, defaulting to bfd
>     sh: cc: not found
>     sh: ld: not found
>     make[1]: "/usr/devel/svn/head/share/mk/bsd.linker.mk <http://bsd.linker.mk>"
>     line 58: warning: Unable
>     to determine linker type from LD=ld
>     make[1]: "/usr/devel/svn/head/share/mk/bsd.linker.mk <http://bsd.linker.mk>"
>     line 71: warning: Unknown
>     linker from LD=ld: none, defaulting to bfd
>     sh: cc: not found
>     sh: cc: not found
>     --------------------------------------------------------------
>     >>> Install check kernel
>     --------------------------------------------------------------
>     --------------------------------------------------------------
>     >>> Installing kernel KERNEL on Wed May 22 08:00:33 UTC 2019
>     --------------------------------------------------------------
>     ...
>     --------------------------------------------------------------
>     >>> Installing kernel KERNEL completed on Wed May 22 08:00:42 UTC 2019
>     --------------------------------------------------------------
> 
>     I think that installkernel should not care about cc (and ld) at all.
> 
>     -- 
>     Andriy Gapon
>     _______________________________________________
>     freebsd-current_at_freebsd.org <mailto:freebsd-current_at_freebsd.org> mailing list
>     https://lists.freebsd.org/mailman/listinfo/freebsd-current
>     To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org
>     <mailto:freebsd-current-unsubscribe_at_freebsd.org>"
> 


-- 
Andriy Gapon
Received on Wed May 22 2019 - 13:48:50 UTC

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