head -r338319 all_subdir_stand/i386/btx/btx use of -no-integrated-as and WITHOUT_BINUTILS_BOOTSTRAP= resulted in

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 25 Aug 2018 19:26:25 -0700
Is head buildworld buildkernel supposed to work with:

WITHOUT_BINUTILS_BOOTSTRAP=

without providing an alternate binutils binding for clang to find? My attempt failed:

--- buildworld ---
make[1]: "/usr/src/Makefile.inc1" line 341: SYSTEM_COMPILER: Determined that CC=cc matches the source tree.  Not bootstrapping a cross-compiler.
make[1]: "/usr/src/Makefile.inc1" line 346: SYSTEM_LINKER: Determined that LD=ld matches the source tree.  Not bootstrapping a cross-linker.
--- buildworld_prologue ---
. . .
===> stand/i386/btx (all)
--- all_subdir_stand/i386/btx/btx ---
===> stand/i386/btx/btx (all)
Building /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/stand/i386/btx/btx/btx.o
. . .
--- all_subdir_stand ---
--- btx.o ---
cc: error: unable to execute command: Executable "as" doesn't exist!
cc: error: assembler command failed with exit code 1 (use -v to see invocation)
--- all_subdir_share ---
Building /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/share/i18n/esdb/ISO646/ISO646-SE.esdb
--- all_subdir_stand ---
*** [btx.o] Error code 1

make[6]: stopped in /usr/src/stand/i386/btx/btx
.ERROR_TARGET='btx.o'
.ERROR_META_FILE='/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/stand/i386/btx/btx/btx.o.meta'
.MAKE.LEVEL='6'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
_ERROR_CMD='cc -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp -B/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe   -I/usr/src/stand/i386/btx/lib -nostdinc -I/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/stand/libsa32 -I/usr/src/stand/libsa -D_STANDALONE -I/usr/src/sys -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface -DLOADER_GELI_SUPPORT -I/usr/src/stand/libsa/geli -DLOADER_DISK_SUPPORT -m32 -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -march=i386 -I. -DBTX_FLAGS=0x0 -I/usr/src/stand/i386/common -std=gnu99 -Wsystem-headers -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses  -Oz -Qunused-arguments -no-integrated-as   -c /usr/src/stand/i386/btx/btx/btx.S -o btx.o; ;'
.CURDIR='/usr/src/stand/i386/btx/btx'
.MAKE='make'
.OBJDIR='/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/stand/i386/btx/btx'
.TARGETS='all'
DESTDIR='/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp'
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/usr/src/share/mk'
MAKE_VERSION='20180512'
PATH='/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/usr/src'
OBJTOP='/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64'
.MAKE.MAKEFILES='/usr/src/share/mk/sys.mk /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk /root/src.configs/src.conf.amd64-clang.amd64-host /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk /dev/null /usr/src/stand/i386/btx/btx/Makefile /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk /usr/src/stand/i386/btx/btx/../Makefile.inc /usr/src/stand/i386/btx/btx/../../Makefile.inc /usr/src/stand/i386/btx/btx/../../../Makefile.inc /usr/src/stand/i386/btx/btx/../../../defs.mk /usr/src/share/mk/src.opts.mk /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.linker.mk /usr/src/share/mk/bsd.prog.mk /usr/src/share/mk/bsd.libnames.mk /usr/src/share/mk/src.libnames.mk /usr/src/share/mk/bsd.nls.mk /usr/src/share/mk/bsd.confs.mk /usr/src/share/mk/bsd.files.mk /usr/src/share/mk/bsd.dirs.mk /usr/src/share/mk/bsd.incs.mk /usr/src/share/mk/bsd.links.mk /usr/src/share/mk/bsd.man.mk /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk /usr/src/share/mk/bsd.sys.mk'
.PATH='. /usr/src/stand/i386/btx/btx'
1 error


For reference: examples of -no-integrated-as
(and CLANG_NO_IAS/CLANG_NO_IAS34) . . .

# grep -r "\-no-integrated-as" /usr/src/ | grep -v "/\.svn/" | more
/usr/src/share/mk/bsd.sys.mk:CLANG_NO_IAS=       -no-integrated-as
/usr/src/contrib/llvm/tools/clang/include/clang/Frontend/CodeGenOptions.def:CODEGENOPT(DisableIntegratedAS, 1, 0) ///< -no-integrated-as
/usr/src/contrib/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp:    CmdArgs.push_back("-no-integrated-as");
/usr/src/contrib/llvm/tools/clang/lib/Tooling/CompilationDatabase.cpp:  // Remove -no-integrated-as; it's not used for syntax checking,
/usr/src/contrib/llvm/tools/clang/lib/Tooling/CompilationDatabase.cpp:                            MatchesAny(std::string("-no-integrated-as"))),
/usr/src/sys/conf/kern.mk:CLANG_NO_IAS= -no-integrated-as
/usr/src/sys/conf/kern.mk:CLANG_NO_IAS34= -no-integrated-as

# grep -r "CLANG_NO_IAS" /usr/src/ | grep -v "/\.svn/" | more
/usr/src/lib/libz/Makefile:#ACFLAGS.gvmat64.S=  ${CLANG_NO_IAS}
/usr/src/share/mk/bsd.sys.mk:# only enable it for some files with CLFAGS.$FILE+=${CLANG_NO_IAS}.
/usr/src/share/mk/bsd.sys.mk:CLANG_NO_IAS=       -no-integrated-as
/usr/src/stand/i386/boot2/Makefile:CFLAGS.boot1.S=              ${CLANG_NO_IAS}
/usr/src/stand/i386/btx/btx/Makefile:CFLAGS.btx.S=              ${CLANG_NO_IAS}
/usr/src/stand/i386/btx/btxldr/Makefile:CFLAGS.btxldr.S=        ${CLANG_NO_IAS}
/usr/src/stand/i386/cdboot/Makefile:CFLAGS.cdboot.S=    ${CLANG_NO_IAS}
/usr/src/stand/i386/gptboot/Makefile:CFLAGS.gptldr.S=   ${CLANG_NO_IAS}
/usr/src/stand/i386/gptzfsboot/Makefile:CFLAGS.gptldr.S=        ${CLANG_NO_IAS}
/usr/src/stand/i386/libi386/Makefile:CFLAGS.amd64_tramp.S=      ${CLANG_NO_IAS}
/usr/src/stand/i386/libi386/Makefile:CFLAGS.multiboot_tramp.S=  ${CLANG_NO_IAS}
/usr/src/stand/i386/pxeldr/Makefile:CFLAGS.pxeldr.S=    ${CLANG_NO_IAS}
/usr/src/stand/i386/zfsboot/Makefile:CFLAGS.zfsldr.S=   ${CLANG_NO_IAS}
/usr/src/sys/conf/Makefile.amd64:ASM_CFLAGS.acpi_wakecode.S=    ${CLANG_NO_IAS34}
/usr/src/sys/conf/Makefile.amd64:ASM_CFLAGS.mpboot.S=           ${CLANG_NO_IAS34}
/usr/src/sys/conf/Makefile.i386:ASM_CFLAGS.acpi_wakecode.S=     ${CLANG_NO_IAS34}
/usr/src/sys/conf/Makefile.i386:ASM_CFLAGS.mpboot.s=            ${CLANG_NO_IAS34}
/usr/src/sys/conf/kern.mk:CLANG_NO_IAS= -no-integrated-as
/usr/src/sys/conf/kern.mk:CLANG_NO_IAS34= -no-integrated-as
/usr/src/sys/modules/bios/smapi/Makefile:CFLAGS.smapi_bios.S=   ${CLANG_NO_IAS34}



Context information:

# uname -apKU
FreeBSD FBSDUSSD 12.0-CURRENT FreeBSD 12.0-CURRENT  r337400M  amd64 amd64 1200076 1200076

# svnlite info /usr/src/ | grep "Re[plv]"
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 338319
Last Changed Rev: 338319

# more ~/src.configs/src.conf.amd64-clang.amd64-host 
TO_TYPE=amd64
#
KERNCONF=GENERIC-NODBG
TARGET=${TO_TYPE}
.if ${.MAKE.LEVEL} == 0
TARGET_ARCH=${TO_TYPE}
.export TARGET_ARCH
.endif
#
#WITH_CROSS_COMPILER=
WITH_SYSTEM_COMPILER=
WITH_SYSTEM_LINKER=
#
WITH_LIBCPLUSPLUS=
#WITH_LLD_BOOTSTRAP=
WITHOUT_BINUTILS_BOOTSTRAP=
WITH_ELFTOOLCHAIN_BOOTSTRAP=
#WITH_CLANG_BOOTSTRAP=
WITH_CLANG=
WITH_CLANG_IS_CC=
WITH_CLANG_FULL=
WITH_CLANG_EXTRAS=
WITH_LLD=
WITH_LLD_IS_LD=
WITHOUT_BINUTILS=
WITH_LLVM_LIBUNWIND=
WITH_LLDB=
#PORTS_MODULES=emulators/virtualbox-ose-additions-nox11
#PORTS_MODULES=emulators/virtualbox-ose-additions
#
WITH_BOOT=
WITH_LIB32=
#
WITHOUT_GCC_BOOTSTRAP=
WITHOUT_GCC=
WITHOUT_GCC_IS_CC=
WITHOUT_GNUCXX=
#
NO_WERROR=
#WERROR=
MALLOC_PRODUCTION=
#
WITH_REPRODUCIBLE_BUILD=
WITH_DEBUG_FILES=


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
Received on Sun Aug 26 2018 - 00:26:37 UTC

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