Bug 145231 - [build] boot code missing libficl build rule
Summary: [build] boot code missing libficl build rule
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2010-03-31 09:00 UTC by Enji Cooper
Modified: 2018-01-03 05:13 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer 2010-03-31 09:00:18 UTC
There's a missing dependency rule for sys/boot/ficl/libficl.a when
building the loader code directly from sys/boot/<target>/ ; example:

$ make -C /usr/src/sys/boot/i386/ -DLOADER_BZIP2_SUPPORT -DLOADER_GZIP_SUPPORT clean depend all
# ...
cc -O2 -pipe -fno-strict-aliasing -pipe -O2 -march=nocona -DLOADER_NFS_SUPPORT -DBOOT_FORTH -I/usr/src/sys/boot/i386/loader/../../ficl -I/usr/src/sys/boot/i386/loader/../../ficl/i386 -DLOADER_BZIP2_SUPPORT -DLOADER_GZIP_SUPPORT -DLOADER_GPT_SUPPORT -I/usr/src/sys/boot/i386/loader/../../common -I. -Wall -I/usr/src/sys/boot/i386/loader/.. -I/usr/src/sys/boot/i386/loader/../btx/lib -ffreestanding -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -m32 -march=i386 -std=gnu99  -c /usr/src/sys/boot/i386/loader/../../common/interp_forth.c
make: don't know how to make /usr/obj/usr/src/sys/boot/i386/loader/../../ficl/libficl.a. Stop
*** Error code 2

The workaround of course being:

for i in sys/boot/ficl sys/boot/<target>; do
    make -C $i clean depend all || break

I didn't attach a fix for this because this does seem like this should
be done in an .mk file, not localized to the <target> specific Makefile
(like an easy solution would do).

This issue also occurs in a 8-STABLE svn based off r204443 .

How-To-Repeat: make -C sys/boot/ficl clean
make -C sys/boot/<target> clean depend all
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:39 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped