Re: buildkernel avoidably building modules specified in the config

2023-02-07 Thread Warner Losh
On Tue, Feb 7, 2023, 5:20 PM Mateusz Guzik wrote: > ... then a lot of the code ends up being compiled twice for no good reason. > > This popped up again as clang 15 emits a ton of warnings vs K funcs. > > I don't know how this works internally, is it really a big problem to sort > out? > I

buildkernel avoidably building modules specified in the config

2023-02-07 Thread Mateusz Guzik
... then a lot of the code ends up being compiled twice for no good reason. This popped up again as clang 15 emits a ton of warnings vs K funcs. I don't know how this works internally, is it really a big problem to sort out? I figured config(8) could generate a bunch of WITHOUT_ of similar, but

Re: Building modules gives error: "invalid output constraint '=@cce' in asm"

2020-06-17 Thread Rajesh Kumar
HI Andriy Gapon, Thanks. It works. On Wed, Jun 17, 2020 at 11:53 AM Andriy Gapon wrote: > On 17/06/2020 04:53, Rajesh Kumar wrote: > > Then, I am trying to compile the driver modules and hit the > > compilation error. I haven't done "install world" as I don't want the > base > > 12.0 to be

Re: Building modules gives error: "invalid output constraint '=@cce' in asm"

2020-06-17 Thread Andriy Gapon
On 17/06/2020 04:53, Rajesh Kumar wrote: > Then, I am trying to compile the driver modules and hit the > compilation error. I haven't done "install world" as I don't want the base > 12.0 to be disturbed. You should do `make buildenv` and then do the module build in the subshell. This way you

Re: Building modules gives error: "invalid output constraint '=@cce' in asm"

2020-06-16 Thread Rajesh Kumar
Hi, Has anyone faced a similar issue? I had a 12.0-RELEASE kernel earlier. I cloned the master branch and built world, built kernel and installed kernel with a different kernel name (INSTKERNNAME) and rebooted the machine and see it booting to 13.0-CURRENT as expected. Then, I am trying to

Re: Building modules gives error: "invalid output constraint '=@cce' in asm"

2020-06-16 Thread Konstantin Belousov
On Tue, Jun 16, 2020 at 12:29:14PM +0530, Rajesh Kumar wrote: > Hi, > > I am trying to build my module with freebsd current branch. But I am > facing compilation issue with header files as below. I have built and > installed the freebsd current branch and booted to that kernel before > building

Building modules gives error: "invalid output constraint '=@cce' in asm"

2020-06-16 Thread Rajesh Kumar
Hi, I am trying to build my module with freebsd current branch. But I am facing compilation issue with header files as below. I have built and installed the freebsd current branch and booted to that kernel before building my module. So, not sure what is going wrong. *In file included from

Build broken and not building modules

2002-03-03 Thread Aleksander Rozman - Andy
Hi ! I am trying to compile in my code for kernel, but every time I start compile (even without my code) it stops in modules. It seems that latest commits have a lot of modules errors. Is there a way to override building modules. To build kernel I usually go to i386/compile/NAME directory

Re: Build broken and not building modules

2002-03-03 Thread Glenn Gombert
without my code) it stops in modules. It seems that latest commits have a lot of modules errors. Is there a way to override building modules. To build kernel I usually go to i386/compile/NAME directory and issue make command. Is there a switch I can use to stop building of modules (I have

building modules

2000-01-25 Thread Brian Beattie
I'm trying to figure out how to make a makefile to build a module and have run into something I do not understand. I am working with freshly cvsup'ed sources. When I try to build a module in /sys/modules, the command line contains a -DKERNEL, which I find in bsd.kmod.mk. This causes the wrong

Re: building modules

2000-01-25 Thread Bruce Evans
On Tue, 25 Jan 2000, Brian Beattie wrote: I'm trying to figure out how to make a makefile to build a module and have run into something I do not understand. I am working with freshly cvsup'ed sources. When I try to build a module in /sys/modules, the command line contains a -DKERNEL,