Re: kernel build problem

2005-05-12 Thread Cristiano Deana
2005/5/11, Ananth.G [EMAIL PROTECTED]:

 i have attached my config file.

 # Bus support.  Do not remove isa, even if you have no isa slots

DO NOT REMOVE ISA...

 #device isa

uncomment the line above

 device  umass   # Disks/Mass storage - Requires scbus and da

REQUIRES scbus and da

 # SCSI peripherals
 #device scbus   # SCSI bus (required for SCSI)
 #device da  # Direct Access (disks)

uncomment lines above...

...and read comments on kernel config file

-- 
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


kernel build problem

2005-05-11 Thread Ananth.G
dear all,
  im having trouble compiling kernel on 5.3 , i did a `make depend` and 
`make`.
The following is the error that i got, i might have missed a module  
i guess...

cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  
-nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica 
-I../../../contrib/altq -I../../../contrib/ipfilter 
-I../../../contrib/pf -I../../../contrib/dev/ath 
-I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL 
-include opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000  
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding 
-Werror  vers.c
linking kernel
umass.o(.text+0x1b73): In function `umass_cam_attach_sim':
: undefined reference to `cam_simq_alloc'
umass.o(.text+0x1bc4): In function `umass_cam_attach_sim':
: undefined reference to `cam_sim_alloc'
umass.o(.text+0x1bd3): In function `umass_cam_attach_sim':
: undefined reference to `cam_simq_free'
umass.o(.text+0x1bf5): In function `umass_cam_attach_sim':
: undefined reference to `xpt_bus_register'
umass.o(.text+0x1c21): In function `umass_cam_rescan_callback':
: undefined reference to `xpt_free_path'
umass.o(.text+0x1c94): In function `umass_cam_rescan':
: undefined reference to `xpt_periph'
umass.o(.text+0x1ca3): In function `umass_cam_rescan':
: undefined reference to `xpt_create_path'
umass.o(.text+0x1cbf): In function `umass_cam_rescan':
: undefined reference to `xpt_setup_ccb'
umass.o(.text+0x1cdc): In function `umass_cam_rescan':
: undefined reference to `xpt_action'
umass.o(.text+0x1dda): In function `umass_cam_detach_sim':
: undefined reference to `xpt_bus_deregister'
umass.o(.text+0x1df6): In function `umass_cam_detach_sim':
: undefined reference to `cam_sim_free'
umass.o(.text+0x1e4d): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1ec4): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1ee5): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1f76): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x204a): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x208e): more undefined references to `xpt_done' follow
umass.o(.text+0x2254): In function `umass_cam_action':
: undefined reference to `cam_calc_geometry'
umass.o(.text+0x225c): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x226d): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x227e): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x22ec): In function `umass_cam_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x23db): In function `umass_cam_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x23ff): more undefined references to `xpt_done' follow
fdc.o(.text+0xf33): In function `fdc_worker':
: undefined reference to `isa_dmadone'
fdc.o(.text+0x199b): In function `fdc_worker':
: undefined reference to `isa_dmastart'
fdc.o(.text+0x1d08): In function `fdc_worker':
: undefined reference to `isa_dmadone'
fdc.o(.text+0x2cd4): In function `fdc_detach':
: undefined reference to `isa_dma_release'
fdc.o(.text+0x2ead): In function `fdc_attach':
: undefined reference to `isa_dma_acquire'
fdc.o(.text+0x2eca): In function `fdc_attach':
: undefined reference to `isa_dmainit'
fdc_acpi.o(.text+0x1d6): In function `fdc_acpi_attach':
: undefined reference to `fdc_isa_alloc_resources'
ppc.o(.text+0xff7): In function `ppcintr':
: undefined reference to `isa_dmadone'
ppc.o(.text+0x11b3): In function `ppc_write':
: undefined reference to `isa_dmastart'
ppc.o(.text+0x1214): In function `ppc_write':
: undefined reference to `isa_dmadone'
ppc.o(.text+0x1963): In function `ppc_attach':
: undefined reference to `isa_dma_acquire'
ppc.o(.text+0x1976): In function `ppc_attach':
: undefined reference to `isa_dmainit'
sio.o(.text+0x62a): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x7fa): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x81c): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x856): In function `sioprobe':
: undefined reference to `isa_irq_pending'
*** Error code 1

Stop in /usr/src/sys/i386/compile/kernel_opt.
thanks in advance,
ananth.g
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel build problem

2005-05-11 Thread Sergey S. Ropchan
Check config file carefully, and you will find next string:

device  umass   # Disks/Mass storage - Requires scbus and da

in your config da and scbus -disabeled, 


# SCSI peripherals
#device scbus   # SCSI bus (required for SCSI)
.
.
.
#device da  # Direct Access (disks)
.
.
.

you need enable it - and all will works ...


 i have attached my config file.
 
 regrds,
 ananth.g
 
 
 Sergey S. Ropchan wrote:
 
 Content of kernel config please ? It's look like wrong option in config.
 
 
   
 
 dear all,
im having trouble compiling kernel on 5.3 , i did a `make depend` and 
 `make`.
 The following is the error that i got, i might have missed a module  
 i guess...
 
 cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls 
 -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
 -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  
 -nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica 
 -I../../../contrib/altq -I../../../contrib/ipfilter 
 -I../../../contrib/pf -I../../../contrib/dev/ath 
 -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL 
 -include opt_global.h -fno-common -finline-limit=8000 --param 
 inline-unit-growth=100 --param large-function-growth=1000  
 -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding 
 -Werror  vers.c
 linking kernel
 umass.o(.text+0x1b73): In function `umass_cam_attach_sim':
 : undefined reference to `cam_simq_alloc'
 umass.o(.text+0x1bc4): In function `umass_cam_attach_sim':
 : undefined reference to `cam_sim_alloc'
 umass.o(.text+0x1bd3): In function `umass_cam_attach_sim':
 : undefined reference to `cam_simq_free'
 umass.o(.text+0x1bf5): In function `umass_cam_attach_sim':
 : undefined reference to `xpt_bus_register'
 umass.o(.text+0x1c21): In function `umass_cam_rescan_callback':
 : undefined reference to `xpt_free_path'
 umass.o(.text+0x1c94): In function `umass_cam_rescan':
 : undefined reference to `xpt_periph'
 umass.o(.text+0x1ca3): In function `umass_cam_rescan':
 : undefined reference to `xpt_create_path'
 umass.o(.text+0x1cbf): In function `umass_cam_rescan':
 : undefined reference to `xpt_setup_ccb'
 umass.o(.text+0x1cdc): In function `umass_cam_rescan':
 : undefined reference to `xpt_action'
 umass.o(.text+0x1dda): In function `umass_cam_detach_sim':
 : undefined reference to `xpt_bus_deregister'
 umass.o(.text+0x1df6): In function `umass_cam_detach_sim':
 : undefined reference to `cam_sim_free'
 umass.o(.text+0x1e4d): In function `umass_cam_action':
 : undefined reference to `xpt_done'
 umass.o(.text+0x1ec4): In function `umass_cam_action':
 : undefined reference to `xpt_done'
 umass.o(.text+0x1ee5): In function `umass_cam_action':
 : undefined reference to `xpt_done'
 umass.o(.text+0x1f76): In function `umass_cam_action':
 : undefined reference to `xpt_done'
 umass.o(.text+0x204a): In function `umass_cam_action':
 : undefined reference to `xpt_done'
 umass.o(.text+0x208e): more undefined references to `xpt_done' follow
 umass.o(.text+0x2254): In function `umass_cam_action':
 : undefined reference to `cam_calc_geometry'
 umass.o(.text+0x225c): In function `umass_cam_action':
 : undefined reference to `xpt_done'
 umass.o(.text+0x226d): In function `umass_cam_action':
 : undefined reference to `xpt_done'
 umass.o(.text+0x227e): In function `umass_cam_action':
 : undefined reference to `xpt_done'
 umass.o(.text+0x22ec): In function `umass_cam_cb':
 : undefined reference to `xpt_done'
 umass.o(.text+0x23db): In function `umass_cam_cb':
 : undefined reference to `xpt_done'
 umass.o(.text+0x23ff): more undefined references to `xpt_done' follow
 fdc.o(.text+0xf33): In function `fdc_worker':
 : undefined reference to `isa_dmadone'
 fdc.o(.text+0x199b): In function `fdc_worker':
 : undefined reference to `isa_dmastart'
 fdc.o(.text+0x1d08): In function `fdc_worker':
 : undefined reference to `isa_dmadone'
 fdc.o(.text+0x2cd4): In function `fdc_detach':
 : undefined reference to `isa_dma_release'
 fdc.o(.text+0x2ead): In function `fdc_attach':
 : undefined reference to `isa_dma_acquire'
 fdc.o(.text+0x2eca): In function `fdc_attach':
 : undefined reference to `isa_dmainit'
 fdc_acpi.o(.text+0x1d6): In function `fdc_acpi_attach':
 : undefined reference to `fdc_isa_alloc_resources'
 ppc.o(.text+0xff7): In function `ppcintr':
 : undefined reference to `isa_dmadone'
 ppc.o(.text+0x11b3): In function `ppc_write':
 : undefined reference to `isa_dmastart'
 ppc.o(.text+0x1214): In function `ppc_write':
 : undefined reference to `isa_dmadone'
 ppc.o(.text+0x1963): In function `ppc_attach':
 : undefined reference to `isa_dma_acquire'
 ppc.o(.text+0x1976): In function `ppc_attach':
 : undefined reference to `isa_dmainit'
 sio.o(.text+0x62a): In function `sioprobe':
 : undefined reference to `isa_irq_pending'
 sio.o(.text+0x7fa): In function `sioprobe':
 : undefined reference to `isa_irq_pending'
 sio.o(.text+0x81c): In function `sioprobe':
 : undefined reference to 

Re: kernel build problem

2005-05-11 Thread Ananth.G
i have attached my config file.
regrds,
ananth.g
Sergey S. Ropchan wrote:
Content of kernel config please ? It's look like wrong option in config.
 

dear all,
  im having trouble compiling kernel on 5.3 , i did a `make depend` and 
`make`.
The following is the error that i got, i might have missed a module  
i guess...

cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  
-nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica 
-I../../../contrib/altq -I../../../contrib/ipfilter 
-I../../../contrib/pf -I../../../contrib/dev/ath 
-I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL 
-include opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000  
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding 
-Werror  vers.c
linking kernel
umass.o(.text+0x1b73): In function `umass_cam_attach_sim':
: undefined reference to `cam_simq_alloc'
umass.o(.text+0x1bc4): In function `umass_cam_attach_sim':
: undefined reference to `cam_sim_alloc'
umass.o(.text+0x1bd3): In function `umass_cam_attach_sim':
: undefined reference to `cam_simq_free'
umass.o(.text+0x1bf5): In function `umass_cam_attach_sim':
: undefined reference to `xpt_bus_register'
umass.o(.text+0x1c21): In function `umass_cam_rescan_callback':
: undefined reference to `xpt_free_path'
umass.o(.text+0x1c94): In function `umass_cam_rescan':
: undefined reference to `xpt_periph'
umass.o(.text+0x1ca3): In function `umass_cam_rescan':
: undefined reference to `xpt_create_path'
umass.o(.text+0x1cbf): In function `umass_cam_rescan':
: undefined reference to `xpt_setup_ccb'
umass.o(.text+0x1cdc): In function `umass_cam_rescan':
: undefined reference to `xpt_action'
umass.o(.text+0x1dda): In function `umass_cam_detach_sim':
: undefined reference to `xpt_bus_deregister'
umass.o(.text+0x1df6): In function `umass_cam_detach_sim':
: undefined reference to `cam_sim_free'
umass.o(.text+0x1e4d): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1ec4): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1ee5): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1f76): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x204a): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x208e): more undefined references to `xpt_done' follow
umass.o(.text+0x2254): In function `umass_cam_action':
: undefined reference to `cam_calc_geometry'
umass.o(.text+0x225c): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x226d): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x227e): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x22ec): In function `umass_cam_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x23db): In function `umass_cam_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x23ff): more undefined references to `xpt_done' follow
fdc.o(.text+0xf33): In function `fdc_worker':
: undefined reference to `isa_dmadone'
fdc.o(.text+0x199b): In function `fdc_worker':
: undefined reference to `isa_dmastart'
fdc.o(.text+0x1d08): In function `fdc_worker':
: undefined reference to `isa_dmadone'
fdc.o(.text+0x2cd4): In function `fdc_detach':
: undefined reference to `isa_dma_release'
fdc.o(.text+0x2ead): In function `fdc_attach':
: undefined reference to `isa_dma_acquire'
fdc.o(.text+0x2eca): In function `fdc_attach':
: undefined reference to `isa_dmainit'
fdc_acpi.o(.text+0x1d6): In function `fdc_acpi_attach':
: undefined reference to `fdc_isa_alloc_resources'
ppc.o(.text+0xff7): In function `ppcintr':
: undefined reference to `isa_dmadone'
ppc.o(.text+0x11b3): In function `ppc_write':
: undefined reference to `isa_dmastart'
ppc.o(.text+0x1214): In function `ppc_write':
: undefined reference to `isa_dmadone'
ppc.o(.text+0x1963): In function `ppc_attach':
: undefined reference to `isa_dma_acquire'
ppc.o(.text+0x1976): In function `ppc_attach':
: undefined reference to `isa_dmainit'
sio.o(.text+0x62a): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x7fa): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x81c): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x856): In function `sioprobe':
: undefined reference to `isa_irq_pending'
*** Error code 1

Stop in /usr/src/sys/i386/compile/kernel_opt.
thanks in advance,
ananth.g
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]
   

___
freebsd-stable@freebsd.org mailing list

Re: kernel build problem

2005-05-11 Thread Paig Chong Woo
Le 11 mai 2005 à 16:28, Ananth.G a écrit :
i have attached my config file.
regrds,
ananth.g
Sergey S. Ropchan wrote:

Content of kernel config please ? It's look like wrong option in  
config.



dear all,
  im having trouble compiling kernel on 5.3 , i did a `make  
depend` and `make`.
The following is the error that i got, i might have missed a  
module  i guess...

cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested- 
externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith  
-Winline -Wcast-qual-fformat-extensions -std=c99  -nostdinc -I-  - 
I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/ 
altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../ 
contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../ 
contrib/ngatm -D_KERNEL -include opt_global.h -fno-common - 
finline-limit=8000 --param inline-unit-growth=100 --param large- 
function-growth=1000  -mno-align-long-strings -mpreferred-stack- 
boundary=2 -ffreestanding -Werror  vers.c
linking kernel
snip bunch of lines
fdc_acpi.o(.text+0x1d6): In function `fdc_acpi_attach':
: undefined reference to `fdc_isa_alloc_resources'
ppc.o(.text+0xff7): In function `ppcintr':
: undefined reference to `isa_dmadone'
ppc.o(.text+0x11b3): In function `ppc_write':
: undefined reference to `isa_dmastart'
ppc.o(.text+0x1214): In function `ppc_write':
: undefined reference to `isa_dmadone'
ppc.o(.text+0x1963): In function `ppc_attach':
: undefined reference to `isa_dma_acquire'
ppc.o(.text+0x1976): In function `ppc_attach':
: undefined reference to `isa_dmainit'
sio.o(.text+0x62a): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x7fa): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x81c): In function `sioprobe':
: undefined reference to `isa_irq_pending'
sio.o(.text+0x856): In function `sioprobe':
: undefined reference to `isa_irq_pending'
*** Error code 1
Stop in /usr/src/sys/i386/compile/kernel_opt.
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
snip irrelevant parts
# Bus support.  Do not remove isa, even if you have no isa slots
#deviceisa
#deviceeisa
devicepci
I'm no expert in FreeBSD kernel, but it seems the compile stops on a  
isa-related error, and that you removed device isa even if the  
config file told you not to. :)

Putting back device isa should cure it.
--
See you!!!
PAIG Chong Woo.
E-Mail : [EMAIL PROTECTED]
ICQ : 1305386
Page web : http://www.valken.org
---
The historian is a prophet in reverse.
Friedrich von Schlegel

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: kernel build problem

2005-05-11 Thread Zimmerman, Eric
i have attached my config file.

regrds,
ananth.g


this looks like an issue (cut/pasted from kernel config file). Isa is
required, no? 

# Bus support.  Do not remove isa, even if you have no isa slots
#device isa
#device eisa
device  pci
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


4.10 kernel build problem

2004-11-29 Thread witichis Gladdy
Hi,
I'm stuck trying to build a kernel to get support for my atapi cd burner.
Why is atapicam support for ide burners wich are pretty much mainstream 
these days not build in by default?

I have a 4.10 freeBSD and did cvsup with src-all.
Then I needed to update the configure program itself because of version
diffences complaints.
Then I did a make buildworld wich took hours but it completed without 
errors.

The error when doing make depend is:
bash-2.05b# make depend
rm -f .olddep
if [ -f .depend ]; then mv .depend .olddep; fi
make _kernel-depend
cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
-Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. 
-I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq 
-I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath 
-I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL 
-include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 
--param large-function-growth=1000 -mno-align-long-strings 
-mpreferred-stack-boundary=2 -ffreestanding ../../../i386/i386/genassym.c
cc: inline-unit-growth=100: No such file or directory
cc: large-function-growth=1000: No such file or directory
cc1: Invalid option `no-align-long-strings'
cc1: unknown C standard `c99'
cc1: Invalid option `-finline-limit=8000'
cc1: Invalid option `-fparam'
cc1: Invalid option `-fparam'
*** Error code 1

Stop in /usr/src/sys/i386/compile/MY2.
*** Error code 1
Stop in /usr/src/sys/i386/compile/MY2.
bash-2.05b# p
What can be tried to make it compile? Delete all src and start over?
TIA
--
Andreas
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 4.10 kernel build problem

2004-11-29 Thread Ruben de Groot
On Mon, Nov 29, 2004 at 06:02:28PM +, witichis Gladdy typed:
 Hi,
 
 I'm stuck trying to build a kernel to get support for my atapi cd burner.
 
 Why is atapicam support for ide burners wich are pretty much mainstream 
 these days not build in by default?
 
 I have a 4.10 freeBSD and did cvsup with src-all.
 Then I needed to update the configure program itself because of version
 diffences complaints.
 Then I did a make buildworld wich took hours but it completed without 
 errors.
 
 The error when doing make depend is:
 
 bash-2.05b# make depend
 rm -f .olddep
 if [ -f .depend ]; then mv .depend .olddep; fi
 make _kernel-depend
 cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls 
 -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
 -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. 
 -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq 
 -I../../../contrib/ipfilter -I../../../contrib/pf 
 -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd 
 -I../../../contrib/ngatm -D_KERNEL -include opt_global.h 
 -finline-limit=8000 --param inline-unit-growth=100 --param 
 large-function-growth=1000 -mno-align-long-strings 
 -mpreferred-stack-boundary=2 -ffreestanding ../../../i386/i386/genassym.c
 cc: inline-unit-growth=100: No such file or directory
 cc: large-function-growth=1000: No such file or directory
 cc1: Invalid option `no-align-long-strings'
 cc1: unknown C standard `c99'
 cc1: Invalid option `-finline-limit=8000'
 cc1: Invalid option `-fparam'
 cc1: Invalid option `-fparam'
 *** Error code 1

use the new method of building your kernel (make buildkernel).
That way the build will use the toolchain generated by the
previous buildworld.

Ruben

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 4.10 kernel build problem

2004-11-29 Thread witichis Gladdy

From: Ruben de Groot [EMAIL PROTECTED]
To: witichis Gladdy [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: 4.10 kernel build problem
Date: Mon, 29 Nov 2004 19:35:54 +0100
On Mon, Nov 29, 2004 at 06:02:28PM +, witichis Gladdy typed:
 Hi,

 I'm stuck trying to build a kernel to get support for my atapi cd 
burner.

 Why is atapicam support for ide burners wich are pretty much mainstream
 these days not build in by default?

 I have a 4.10 freeBSD and did cvsup with src-all.
 Then I needed to update the configure program itself because of version
 diffences complaints.
 Then I did a make buildworld wich took hours but it completed without
 errors.

 The error when doing make depend is:

 bash-2.05b# make depend
 rm -f .olddep
 if [ -f .depend ]; then mv .depend .olddep; fi
 make _kernel-depend
 cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls
 -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes 
-Wpointer-arith
 -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I.
 -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq
 -I../../../contrib/ipfilter -I../../../contrib/pf
 -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd
 -I../../../contrib/ngatm -D_KERNEL -include opt_global.h
 -finline-limit=8000 --param inline-unit-growth=100 --param
 large-function-growth=1000 -mno-align-long-strings
 -mpreferred-stack-boundary=2 -ffreestanding 
../../../i386/i386/genassym.c
 cc: inline-unit-growth=100: No such file or directory
 cc: large-function-growth=1000: No such file or directory
 cc1: Invalid option `no-align-long-strings'
 cc1: unknown C standard `c99'
 cc1: Invalid option `-finline-limit=8000'
 cc1: Invalid option `-fparam'
 cc1: Invalid option `-fparam'
 *** Error code 1

use the new method of building your kernel (make buildkernel).
That way the build will use the toolchain generated by the
previous buildworld.
Ruben
Thanks - that got me further.
The kernel compiled after putting device.hints into /boot
I needed to comment out /proc and msdos and ntfs partitions from fstab - bad
a uname -a tells me :
FreeBSD deepthought 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Mon Nov 29 22:04:37 
CET 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MY2  i386
Looks like its very bleedy now because top and ps are not working any more 
(no /proc).
Still I can't get my cd burner to work though.
I reboot to the 4.10 kernel and cvsup with *default tag=RELENG_5_3 for 
another build.

cheers
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Kernel build problem 5.2.1

2004-07-04 Thread Gene Bomgardner
Hi All:
  I'm trying to build a 5.2.1 kernel. I've used both the original method as 
well as the newer make buildkernel I keep getting the error during the 
make depend phase:

src/i386/usr/include  /usr/src/sys/modules/syscons/logo/logo_saver.c 
/usr/src/sys/modules/syscons/logo/logo.c

The error is:
/usr/src/sys/modules/syscons/logo/logo_saver.c:47:18: logo.c: No such file 
or directory
mkdep: compile failed
*** Error code 1

However, the files exist. I can open them up and look at them.:
# pwd
/usr/src
# ls sys/modules/syscons/logo/logo_saver.c
sys/modules/syscons/logo/logo_saver.c
# ls sys/modules/syscons/logo/logo.c
sys/modules/syscons/logo/logo.c
Anyone have an idea what might be wrong?
thanx...
Gene
_
Get tips for maintaining your PC, notebook accessories and reviews in 
Technology 101. http://special.msn.com/tech/technology101.armx

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Kernel build problem after make world

2004-02-24 Thread fjaspers
HI,

Sorry my information was somewhat obscure, you're answer however wasn't.
The 4BSD_SCHED option did the trick.

The real problem was mee being impatient trying to build a 5.2 KERNEL with
a 5.0 config file.
I made a new config file patiently copying lines in from NOTES and GENERIC.
Now the world smiles again. :)

Thnx for your help.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Kernel build problem after make world

2004-02-24 Thread Kent Stewart
On Tuesday 24 February 2004 03:43 am, [EMAIL PROTECTED] wrote:
 HI,

 Sorry my information was somewhat obscure, you're answer however
 wasn't. The 4BSD_SCHED option did the trick.

I was kind of stretching on that one. It was the only sched option you 
were missing that I had and it stood out. 


 The real problem was mee being impatient trying to build a 5.2 KERNEL
 with a 5.0 config file.
 I made a new config file patiently copying lines in from NOTES and
 GENERIC. Now the world smiles again. :)

 Thnx for your help.


Great!!

I think it is important to cp GENERIC to your kernel config for each 
major update. Then, start adding # in column 1 to comment out 
features. It may seem like work but it saves more time trying to figure 
out why something is broken. 

My systems are pretty simple when it comes to the configuration and I 
can take a GENERIC and convert it into a new config file in probably 
less than 5-10 minutes. If you keep a copy of the old one around, you 
can run diff on your old and new config and see what is different.

When you start with a copy of GENERIC and delete features, your kernel 
config file is much more self documenting. Saving a few 100 bytes is 
not as important as keeping the structure of your config file so that 
people can key in very quickly on what you changed. This is especially 
true when you want free support :).

I am retired but got talked into helping resurect an old project for a 
couple of weeks for an old friend. That dropped 8 hours a day from the 
time I had available to figure out FreeBSD errors. I simply didn't have 
the time to take a 5.2 GENERIC and see what you had chosen to use.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Kernel build problem after make world

2004-02-22 Thread Kent Stewart
On Sunday 22 February 2004 04:28 am, [EMAIL PROTECTED] wrote:
 Hi,

 I upgraded my system from RELEASE 5.0 to RELENG_5_2.
 Used cvsup to get the sources, made buildworld; made a generic
 kernel; installed world. Everything went well, i was able to boot
 into multi-user mode.

 BUT now i would like build a custom kernel. This doesnt work anymore.
 I tried it both ways. (make builkernel KERNCONF=MYKERNEL,
 or config MYKERNEL, make depend; make;)

 The kernel sources seem to compile, but when the linker starts my
 screen is flooded with unknown Unknown referernces errors

 Would anybody known what causes this?
 Should there be some magic new entry in /etc/make.conf?


For starters, I think we would need to see the messages. What has me 
concerned is whether you installed your kernel before you did the 
installworld. Version 5.2 has a different statfs, which needs the new 
kernel to run. An old world and a new kernel was fine but an old kernel 
and a new world was a show stopper. You had to use the fixit disk to 
recover your system. 

There are different options in the config file for 5.2 and you would 
need to start with a new GENERIC to create your MYKERNEL. Beyond that, 
I don't have any ideas at this point.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Re: Kernel build problem after make world

2004-02-22 Thread fjaspers

Hi,
   
  
you are right, should have included the messages in my first mail. Sorry.
   
  
I followed the procedure in the handbook,
make buildworld; make buildkernel; make installkernel; reboot; make installworld
   
  
Intermediate that left me with a new kernel in an old world, which
worked like i supposed it would.
   
  
Is it possible one of the kernel options caused the messages?
It doesn't seem to me, everything compiled ok, it's the linking process
complaining. Missing header files??
   
  
All my kernel options (see below) seem also in either GENERIC or NOTES.
   
  
again any help appreciated.
   
  
Frans Jaspers [EMAIL PROTECTED]
   
  
   
  
In my make.conf are only perl things.
   
  
   
  
Here's my uname -a
FreeBSD desktop.localnetwork 5.2.1-RC2 FreeBSD 5.2.1-RC2 #0: Sat Feb 21 22:18:28 GMT 
2004 root@:/usr/obj/usr/src/sys/FJ_20040221_GENERIC  i386
   
  
So that's the running new generic kernel.
   
  
   
  
Here's the errors:
   
  
$cd /usr/src
$make buildkernel KERNCONF=FJ_20040221_01
--
 Kernel build for FJ_20040221_01 started on Sun Feb 22 22:16:49 GMT 2004
--
=== FJ_20040221_01
   
  
-- SNIP --
   
  
linking kernel
init_main.o: In function `proc0_init':
init_main.o(.text+0x2b9): undefined reference to `kse0_sched'
init_main.o(.text+0x2c3): undefined reference to `ksegrp0_sched'
init_main.o(.text+0x2cd): undefined reference to `proc0_sched'
init_main.o(.text+0x2d7): undefined reference to `thread0_sched'
kern_clock.o: In function `statclock':
   
  
--- Many more -
   
  
vm_pageout.o(.text+0x170c): undefined reference to `sched_nice'
machdep.o: In function `cpu_idle':
machdep.o(.text+0x151e): undefined reference to `sched_runnable'
*** Error code 1
   
  
Stop in /usr/obj/usr/src/sys/FJ_20040221_01.
*** Error code 1
   
  
Stop in /usr/src.
*** Error code 1
   
  
Stop in /usr/src.
   
  
   
  
Here's my config file,
  

Re: Kernel build problem after make world

2004-02-22 Thread Kent Stewart
On Sunday 22 February 2004 03:00 pm, [EMAIL PROTECTED] wrote:
 Hi,

 you are right, should have included the messages in my first mail.
 Sorry.

 I followed the procedure in the handbook,
 make buildworld; make buildkernel; make installkernel; reboot; make
 installworld

 Intermediate that left me with a new kernel in an old world, which
 worked like i supposed it would.

 Is it possible one of the kernel options caused the messages?
 It doesn't seem to me, everything compiled ok, it's the linking
 process complaining. Missing header files??

I had to look at my 5.2-current system. I was hopping your kernel config 
was a commented version of GENERIC. That makes it much easier to see 
errors. With what you have listed, we can't see anything to trigger our 
memory of setup options. I wasn't surprised to not see someone respond 
to your message. You made it really difficult :).

For starters, I think you need the following line
options SCHED_4BSD  #4BSD scheduler

There may be other errors but I didn't have time enough to look at the 
rest of your configuration.

Kent


 All my kernel options (see below) seem also in either GENERIC or
 NOTES.

 again any help appreciated.

 Frans Jaspers [EMAIL PROTECTED]


 In my make.conf are only perl things.


 Here's my uname -a
 FreeBSD desktop.localnetwork 5.2.1-RC2 FreeBSD 5.2.1-RC2 #0: Sat Feb
 21 22:18:28 GMT 2004
 root@:/usr/obj/usr/src/sys/FJ_20040221_GENERIC  i386

 So that's the running new generic kernel.


 Here's the errors:

 $cd /usr/src
 $make buildkernel KERNCONF=FJ_20040221_01
 --

  Kernel build for FJ_20040221_01 started on Sun Feb 22 22:16:49
  GMT 2004

 --
 === FJ_20040221_01

 -- SNIP --

 linking kernel
 init_main.o: In function `proc0_init':
 init_main.o(.text+0x2b9): undefined reference to `kse0_sched'
 init_main.o(.text+0x2c3): undefined reference to `ksegrp0_sched'
 init_main.o(.text+0x2cd): undefined reference to `proc0_sched'
 init_main.o(.text+0x2d7): undefined reference to `thread0_sched'
 kern_clock.o: In function `statclock':

 --- Many more -

 vm_pageout.o(.text+0x170c): undefined reference to `sched_nice'
 machdep.o: In function `cpu_idle':
 machdep.o(.text+0x151e): undefined reference to `sched_runnable'
 *** Error code 1

 Stop in /usr/obj/usr/src/sys/FJ_20040221_01.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.


 Here's my config file,

 machine i386
 cpu I686_CPU
 ident   FJ_20040221_01
 maxusers0


 options INET
 options INET6

 options FFS
 options SOFTUPDATES
 options UFS_ACL
 options UFS_DIRHASH
 options MD_ROOT
 options NFSCLIENT
 options NFSSERVER
 options NFS_ROOT
 options MSDOSFS
 options CD9660

 options PROCFS
 options PSEUDOFS

 options COMPAT_43
 options COMPAT_FREEBSD4

 options KTRACE

 options SYSVSHM
 options SYSVMSG
 options SYSVSEM

 options _KPOSIX_PRIORITY_SCHEDULING

 options KBD_INSTALL_CDEV

 options INVARIANT_SUPPORT

 device  isa
 device  eisa
 device  pci

 device  pci
 device  fdc
 device  ata
 device  atadisk
 device  atapicd
 device  atapifd
 options ATA_STATIC_ID
 device  atkbdc
 device  atkbd
 device  psm
 device  vga
 device  splash
 device  sc
 device  agp
 device  npx
 device  pmtimer
 device  sio
 device  ppc
 device  ppbus
 device  lpt
 device  ppi
 device  miibus
 device  vr
 device  random
 device  loop
 device  ether
 device  ppp
 device  tun
 device  pty
 device  md
 device  gif
 device  faith
 device  uhci
 device  usb
 device  ugen


-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]