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_at_FreeBSD.org>Received on Fri May 17 2013 - 18:46:41 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:37 UTC