Bug 222901 - `make buildworld' fails if $NO_OBJ is set
Summary: `make buildworld' fails if $NO_OBJ is set
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-10 13:56 UTC by Wolfram Schneider
Modified: 2017-10-10 14:13 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer 2017-10-10 13:56:48 UTC
On one of my machines `make buildworld' failed after some seconds with the message:

cd /usr/src
make buildworld

[...]
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
cd /root/tmp/freebsd; MAKEOBJDIRPREFIX=/usr/obj/root/tmp/freebsd/tmp  INSTALL="sh /root/tmp/freebsd/tools/install.sh"  TOOLS_PREFIX=/usr/obj/root/tmp/freebsd/tmp  PATH=/usr/obj/root/tmp/freebsd/tmp/legacy/usr/sbin:/usr/obj/root/tmp/freebsd/tmp/legacy/usr/bin:/usr/obj/root/tmp/freebsd/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/root/tmp/freebsd/tmp  MAKEFLAGS="-m /root/tmp/freebsd/tools/build/mk  -m /root/tmp/freebsd/share/mk" make  -f Makefile.inc1  DESTDIR=  BOOTSTRAPPING=1101503  BWPHASE=bootstrap-tools  SSP_CFLAGS=  MK_HTML=no NO_LINT=yes MK_MAN=no  -DNO_PIC MK_PROFILE=no -DNO_SHARED  -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no  MK_CLANG_EXTRAS=no MK_CLANG_FULL=no  MK_LLDB=no MK_TESTS=no  MK_INCLUDES=yes bootstrap-tools
===> lib/clang/libllvmminimal (obj,all,install)
c++  -O2 -pipe -I/root/tmp/freebsd/lib/clang/include -I/root/tmp/freebsd/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd12.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd12.0\" -DDEFAULT_SYSROOT=\"/usr/obj/root/tmp/freebsd/tmp\" -ffunction-sections -fdata-sections -gline-tables-only -MD -MF.depend.Support_APFloat.o -MTSupport/APFloat.o -Qunused-arguments -I/usr/obj/root/tmp/freebsd/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti  -gline-tables-only -stdlib=libc++ -Wno-c++11-extensions  -c /root/tmp/freebsd/contrib/llvm/lib/Support/APFloat.cpp -o Support/APFloat.o
error: unable to open output file 'Support/APFloat.o': 'No such file or directory'
1 error generated.
*** Error code 1

Stop.
make[3]: stopped in /root/tmp/freebsd/lib/clang/libllvmminimal


Apparently, `make buildkernel' fails if $NO_OBJ is set to YES.

This affects stable/11 and -current.

PS: `make buildkernel' runs fine with NO_OBJ=YES
Comment 1 Dimitry Andric freebsd_committer 2017-10-10 14:13:27 UTC
I'm not sure if using NO_OBJ for buildworld is supported at all. :)