Date: Sat, 18 May 2013 00:46:18 +0400 From: Lev Serebryakov <lev@FreeBSD.org> To: freebsd-current@freebsd.org Cc: Brooks Davis <brooks@FreeBSD.org> Subject: WITHOUT_CLANG + WITHOUT_GCC vs XCC + WITHOUT_CROSS_COMPILER Message-ID: <1713488536.20130518004618@serebryakov.spb.ru>
next in thread | raw e-mail | index | archive | help
Hello, Freebsd-current. I've explored new options to build world and kernel with external compiler. My goal is not to use "modern" compiler or "true" cross-compilation, but fast building of system, which (almost) identical to host system and doesn't need compiler (NanoBSD image for router). What I found, that if WITHOUT_LCNAG and WITHOUT_GCC are both set, and WITHOUT_CROSS_COMPILER and XCC/XCXX/XCPP are NOT set, world and kernel is build with "system" compiler, but without "cross" options (like -isystem and --sysroot). So, it works only by accident, and not in way, that user (developer) could expect. So, even if here is no any settings for "cross"-build, build goes by "cross" (external toolchain) path, with usage of plain "cc" / "c++" / "cpp" binaries without full path and special options. What I expected, that in such case cross-clang will be built at "stage 3: cross tools" and used to build world, but no clang (And support libraries) or gcc will be built at "stage 4.4: building everything". Do we need such mode? Is current behavior (risky on, IMHO) Ok? I think, ideal situation is when WITHOUT_CLANG + WITHOUT_GCC but no WITHOUT_CROSS_COMPILER IS supported "as expected" (compiler-as-cross-tool is built, but compiler-as-part-of-everything is not), but at least system need to abort "both compilers are disabled and no cross-tools set" configuration for now, am I right? -- // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1713488536.20130518004618>