Bug 165845 - [build] Unable to build kernel on 8.2-STABLE
Summary: [build] Unable to build kernel on 8.2-STABLE
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: amd64 (show other bugs)
Version: 8.2-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-08 03:30 UTC by freebsd.users
Modified: 2018-05-31 15:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd.users 2012-03-08 03:30:12 UTC
The build fails at /usr/src/sys/modules/aac. Here are full details - http://paste.pocoo.org/show/562737/

My env - http://paste.pocoo.org/show/562246/

The build fails with GENERIC and custom KERNCONF at same stage. I am buildworld and kernel-toolchain without any problem.

How-To-Repeat: csup the source tree with stable-supfile & rebuild the kernel.
Comment 1 peter 2012-03-08 07:27:42 UTC
This is some sort of user error and a problematic bug report as well.

First.. please don't use pastebin type things that expire.  When the
context goes away in 31 days, the bug report becomes meaningless and
loses its search reference value.  In a month or two, somebody might
have the same problem and if there's a documented solution here then
the search engines will never find the context to give them the
solution.

Second..   The last error you hit was:
ld  -d -warn-common -r -d -o aac.ko.debug aac.o aac_pci.o aac_disk.o aac_ca=
m.o
-L VERSION -g -o aac.ko.debug aac.o aac_pci.o aac_disk.o aac_cam.o
-L:No such file or directory

The only things that look like that are in share/mk/sys.mk:
# C Type Format data is required for DTrace
CTFFLAGS        ?=3D      -L VERSION"

And that's used with a SYSTEM_CTFMERGE in the kernel makefiles.

So, what you've done is partially disabled dtrace or CDDL or the CTF
flags.  Or you've got a stale /usr/obj/* tree.  Or got stray, stale
build files in your source tree.

This is an environmental issue on your end in some way.  (I don't mean
the $ENV variables.. It is something else.)

--=20
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV
"All of this is for nothing if we don't go to the stars" - JMS/B5
"If Java had true garbage collection, most programs would delete
themselves upon execution." -- Robert Sewell
Comment 2 freebsd.users 2012-03-08 10:41:35 UTC
Yup, I removed DTrace support from kernel and make.conf. It works now.
I guess I need DTrace support, what do I do to fix it.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:24 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
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2018-05-31 15:43:12 UTC
Unfortunately this PR was never addressed before these versions of FreeBSD went out of support.  Sorry.

If this is still a problem, please open a new PR.  Thanks.