Re: Problem building kernel STABLE12 amd64 arch

2019-02-17 Thread David Wolfskill
On Sun, Feb 17, 2019 at 09:11:46AM +, Filippo Moretti via freebsd-stable 
wrote:
> I tried to update stable to yesterday build and I get the following error on 
> amd64 arch
> linking kernel
> ld: error: undefined symbol: iflib_get_softc
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_legacy_intr)
> 
> ld: error: undefined symbol: iflib_admin_intr_deferred
> ...
> Stop.
> make: stopped in /usr/src
> 
> Any help appreciatedsincerelyFilippo
> 

It appears that your kernel configuration file -- unlike that of GENERIC
-- does not include the entry:

| # PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
| device  iflib

This is pointed out in src/UPDATING:

| 20190214:
| Iflib is no longer unconditionally compiled into the kernel.  Drivers
| using iflib and statically compiled into the kernel, now require
| the 'device iflib' config option.  For the same drivers loaded as
| modules on kernels not having 'device iflib', the iflib.ko module
| is loaded automatically.

A way to avoid the problem (and others of a similar nature) is to
have your custom kernel configuration

| include GENERIC

and then customize from that point.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
There's a "national security emergency" all right -- at 1600 Pennsylvania Ave.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


signature.asc
Description: PGP signature


Re: Problem building kernel STABLE12 amd64 arch

2019-02-17 Thread Paul Mather
On Feb 17, 2019, at 4:11 AM, Filippo Moretti via freebsd-stable 
 wrote:

> I tried to update stable to yesterday build and I get the following error on 
> amd64 arch
> linking kernel
> ld: error: undefined symbol: iflib_get_softc
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_legacy_intr)
> 
> ld: error: undefined symbol: iflib_admin_intr_deferred
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_legacy_intr)
> 
> ld: error: undefined symbol: iflib_get_softc
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_tx_queues_alloc)
> 
> ld: error: undefined symbol: iflib_dma_alloc_align
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_tx_queues_alloc)
> ld: error: undefined symbol: iflib_get_softc
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_rx_queues_alloc)
> 
> ld: error: undefined symbol: iflib_dma_alloc_align
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_rx_queues_alloc)
> 
> ld: error: undefined symbol: iflib_get_softc
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_queues_free)
> 
> ld: error: undefined symbol: iflib_dma_free
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_queues_free)
> 
> ld: error: undefined symbol: iflib_get_dev
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_pre)>>>   
 if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_get_sctx
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_get_softc_ctx
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_get_ifp
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_get_media
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_set_mac
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_pre)
> ld: error: undefined symbol: iflib_get_softc_ctx
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_post)
> 
> ld: error: undefined symbol: iflib_get_softc
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_post)
> 
> ld: error: undefined symbol: iflib_dma_alloc_align
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_post)
> 
> ld: error: undefined symbol: iflib_dma_alloc_align
 referenced by if_vmx.c
if_vmx.o:(vmxnet3_attach_post)
> 
> ld: error: too many errors emitted, stopping now (use -error-limit=0 to see 
> all errors)
> *** Error code 1
> 
> Stop.
> Stop.
> make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/STING_VT
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src
> 
> Any help appreciatedsincerelyFilippo


Please see the 20190214 entry in /usr/src/UPDATING to fix this problem.

Cheers,

Paul.

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Problem building kernel STABLE12 amd64 arch

2019-02-17 Thread Konstantin Belousov
On Sun, Feb 17, 2019 at 09:11:46AM +, Filippo Moretti via freebsd-stable 
wrote:
> I tried to update stable to yesterday build and I get the following error on 
> amd64 arch
> linking kernel
> ld: error: undefined symbol: iflib_get_softc
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_legacy_intr)
> 
> ld: error: undefined symbol: iflib_admin_intr_deferred
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_legacy_intr)
> 
> ld: error: undefined symbol: iflib_get_softc
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_tx_queues_alloc)
> 
> ld: error: undefined symbol: iflib_dma_alloc_align
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_tx_queues_alloc)
> ld: error: undefined symbol: iflib_get_softc
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_rx_queues_alloc)
> 
> ld: error: undefined symbol: iflib_dma_alloc_align
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_rx_queues_alloc)
> 
> ld: error: undefined symbol: iflib_get_softc
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_queues_free)
> 
> ld: error: undefined symbol: iflib_dma_free
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_queues_free)
> 
> ld: error: undefined symbol: iflib_get_dev
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_pre)>>>   
> >>>if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_get_sctx
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_get_softc_ctx
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_get_ifp
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_get_media
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_pre)
> 
> ld: error: undefined symbol: iflib_set_mac
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_pre)
> ld: error: undefined symbol: iflib_get_softc_ctx
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_post)
> 
> ld: error: undefined symbol: iflib_get_softc
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_post)
> 
> ld: error: undefined symbol: iflib_dma_alloc_align
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_post)
> 
> ld: error: undefined symbol: iflib_dma_alloc_align
> >>> referenced by if_vmx.c
> >>>   if_vmx.o:(vmxnet3_attach_post)
> 
> ld: error: too many errors emitted, stopping now (use -error-limit=0 to see 
> all errors)
> *** Error code 1
> 
> Stop.
> Stop.
> make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/STING_VT
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src
> 
> Any help appreciatedsincerelyFilippo

Read UPDATING note 20190214.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Problem building kernel STABLE12 amd64 arch

2019-02-17 Thread Filippo Moretti via freebsd-stable
I tried to update stable to yesterday build and I get the following error on 
amd64 arch
linking kernel
ld: error: undefined symbol: iflib_get_softc
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_legacy_intr)

ld: error: undefined symbol: iflib_admin_intr_deferred
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_legacy_intr)

ld: error: undefined symbol: iflib_get_softc
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_tx_queues_alloc)

ld: error: undefined symbol: iflib_dma_alloc_align
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_tx_queues_alloc)
ld: error: undefined symbol: iflib_get_softc
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_rx_queues_alloc)

ld: error: undefined symbol: iflib_dma_alloc_align
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_rx_queues_alloc)

ld: error: undefined symbol: iflib_get_softc
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_queues_free)

ld: error: undefined symbol: iflib_dma_free
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_queues_free)

ld: error: undefined symbol: iflib_get_dev
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_pre)>>>   
>>>if_vmx.o:(vmxnet3_attach_pre)

ld: error: undefined symbol: iflib_get_sctx
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_pre)

ld: error: undefined symbol: iflib_get_softc_ctx
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_pre)

ld: error: undefined symbol: iflib_get_ifp
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_pre)

ld: error: undefined symbol: iflib_get_media
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_pre)

ld: error: undefined symbol: iflib_set_mac
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_pre)
ld: error: undefined symbol: iflib_get_softc_ctx
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_post)

ld: error: undefined symbol: iflib_get_softc
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_post)

ld: error: undefined symbol: iflib_dma_alloc_align
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_post)

ld: error: undefined symbol: iflib_dma_alloc_align
>>> referenced by if_vmx.c
>>>   if_vmx.o:(vmxnet3_attach_post)

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all 
errors)
*** Error code 1

Stop.
Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/STING_VT
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

Any help appreciatedsincerelyFilippo


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"