OPNsense Forum

English Forums => General Discussion => Topic started by: Jhonraushan on July 04, 2025, 10:45:17 PM

Title: Opnsense Kernel Building error
Post by: Jhonraushan on July 04, 2025, 10:45:17 PM
Hello OPNSENSE family,


i am just building a opnsense iso. face this issue onn when i make kernel.
.

ERROR: ctfconvert: bwiphy.o doesn't have type data to con

ERROR: ctfconvert: ichss.o doesn't have type data to conv ERROR: ctfconvert: pnphy.o doesn't have type data to conv

ERROR: ctfconvert: efidev.o doesn't have type data to com

ERROR: ctfconvert: dcphy.o doesn't have type data to conv

ERROR: ctfconvert: efirtc.o doesn't have type data to com

ERROR: ctfconvert: bwirf.o doesn't have type data to conv ERROR: ctfconvert

: efirt.o doesn't have type data to conv ERROR: ctfconvert: if_bwi.o doesn't have type data to con

^C*** Error code 2
Title: Re: Opnsense Kernel Building error
Post by: patient0 on July 05, 2025, 07:21:06 AM
Please provide more information on the setup you use to build the ISO. Did you follow Setting up a build system (https://github.com/opnsense/tools/blob/master/README.md#setting-up-a-build-system)?
Title: Re: Opnsense Kernel Building error
Post by: Jhonraushan on July 08, 2025, 09:59:37 AM
Yes i follow this steps https://github.com/opnsense/tools/blob/master/README.md#setting-up-a-build-system
 this is my cmd history.

pkg install git
git clone https://github.com/opnsense/tools
cd tools/
make update
ls
cd /usr/local/opnsense/build/25.1/amd64/sets/
ls
cd /usr/ports/ports-mgmt/pkg
pkg -v
make reinstall
make deinstall
pkg -v
make reinstall
pkg -v
 pkg versio is 1.9..
cd /usr/tools/
make dvd -j20 . and then this error show
Title: Re: Opnsense Kernel Building error
Post by: patient0 on July 08, 2025, 10:36:41 AM
Mmmmh, I gave it a go according to the README right after you posted the thread and it worked well for me. Minus the pkg reinstall, I did that later when the compiling complained and suggested what to do.

Quotegit clone https://github.com/opnsense/tools
I assume changed to /usr before doing that?

And what is the system you are compiling it on? FreeBSD 14.2, 14.3, 13?
Title: Re: Opnsense Kernel Building error
Post by: Jhonraushan on July 08, 2025, 03:10:51 PM
FreeBSD 14.2
Title: Re: Opnsense Kernel Building error
Post by: patient0 on July 08, 2025, 06:03:33 PM
Quote from: Jhonraushan on July 04, 2025, 10:45:17 PMERROR: ctfconvert: dcphy.o doesn't have type data to conv
While building the kernel for itself (make kernel) I also get these messages but the build does complete. What happens for you when you let it run/compile?
Title: Re: Opnsense Kernel Building error
Post by: Patrick M. Hausen on July 08, 2025, 06:32:01 PM
Did you do a "make buildworld" before that "make kernel"?
Title: Re: Opnsense Kernel Building error
Post by: patient0 on July 08, 2025, 07:45:24 PM
Quote from: Patrick M. Hausen on July 08, 2025, 06:32:01 PMDid you do a "make buildworld" before that "make kernel"?
Nope, I didn't. Followed the tools/README.md, just ran 'make base'. Running 'make buildworld' after 'make base'?
Title: Re: Opnsense Kernel Building error
Post by: Patrick M. Hausen on July 08, 2025, 08:23:29 PM
OK - that's OPNsense specific. No idea. Check what "make base" does.

In FreeBSD you must run "make buildworld" before "make buildkernel". "make kernel" is just short for "make buildkernel; make installkernel".
Title: Re: Opnsense Kernel Building error
Post by: franco on July 15, 2025, 07:56:02 AM
ERROR: ctfconvert: bwiphy.o doesn't have type data to con

ERROR: ctfconvert: ichss.o doesn't have type data to conv ERROR: ctfconvert: pnphy.o doesn't have type data to conv

ERROR: ctfconvert: efidev.o doesn't have type data to com

ERROR: ctfconvert: dcphy.o doesn't have type data to conv

ERROR: ctfconvert: efirtc.o doesn't have type data to com

ERROR: ctfconvert: bwirf.o doesn't have type data to conv ERROR: ctfconvert

: efirt.o doesn't have type data to conv ERROR: ctfconvert: if_bwi.o doesn't have type data to con

^C*** Error code 2

That's non-fatal "ERROR"s from the kernel build process.  It's a question for FreeBSD why these are necessary to appear on stderr.

The fact that you pressed CTRL-C makes me wonder why you did not wait for the build to finish?


Cheers,
Fraco
Title: Re: Opnsense Kernel Building error
Post by: Jhonraushan on July 21, 2025, 08:26:31 AM
Thank You Everybody Now Build Succeed