pls help me.. build kernel error.. I have to update their source code.. standart-supfile # IMPORTANT: Change the next line to use one of the CVSup mirror sites # listed at http://www.freebsd.org/doc/handbook/mirrors.html. *default host=CHANGE_THIS.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_8_0 *default delete use-rel-suffix src-all GENERIC Kernel use.. FreeBSD fbsd 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Fri Jan 1 15:31:27 EET 2010 root@fbsd:/usr/obj/usr/src/sys/GENERIC amd64 error ; make buildkernel and error.. ./pci_if.h:226: error: stray '\335' in program ./pci_if.h:226: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_MS' ./pci_if.h:226: error: stray '\335' in program ./pci_if.h:238: error: stray '\335' in program ./pci_if.h:238: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_MS' ./pci_if.h:238: error: stray '\335' in program cc1: warnings being treated as errors In file included from /usr/src/sys/dev/aic7xxx/aic7xxx_osm.h:72, from aic7xxx_reg_print.c:9: /usr/src/sys/dev/pci/pcivar.h: In function 'pci_get_subvendor': /usr/src/sys/dev/pci/pcivar.h:244: warning: implicit declaration of function 'BUS_READ_IVAR' /usr/src/sys/dev/pci/pcivar.h:244: warning: nested extern declaration of 'BUS_READ_IVAR' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_set_subvendor': /usr/src/sys/dev/pci/pcivar.h:244: warning: implicit declaration of function 'BUS_WRITE_IVAR' /usr/src/sys/dev/pci/pcivar.h:244: warning: nested extern declaration of 'BUS_WRITE_IVAR' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_read_config': /usr/src/sys/dev/pci/pcivar.h:274: warning: implicit declaration of function 'PCI_READ_CONFIG' /usr/src/sys/dev/pci/pcivar.h:274: warning: nested extern declaration of 'PCI_READ_CONFIG' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_write_config': /usr/src/sys/dev/pci/pcivar.h:280: warning: implicit declaration of function 'PCI_WRITE_CONFIG' /usr/src/sys/dev/pci/pcivar.h:280: warning: nested extern declaration of 'PCI_WRITE_CONFIG' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_enable_busmaster': /usr/src/sys/dev/pci/pcivar.h:318: warning: implicit declaration of function 'PCI_ENABLE_BUSMASTER' /usr/src/sys/dev/pci/pcivar.h:318: warning: nested extern declaration of 'PCI_ENABLE_BUSMASTER' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_disable_busmaster': /usr/src/sys/dev/pci/pcivar.h:324: warning: implicit declaration of function 'PCI_DISABLE_BUSMASTER' /usr/src/sys/dev/pci/pcivar.h:324: warning: nested extern declaration of 'PCI_DISABLE_BUSMASTER' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_enable_io': /usr/src/sys/dev/pci/pcivar.h:330: warning: implicit declaration of function 'PCI_ENABLE_IO' /usr/src/sys/dev/pci/pcivar.h:330: warning: nested extern declaration of 'PCI_ENABLE_IO' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_disable_io': /usr/src/sys/dev/pci/pcivar.h:336: warning: implicit declaration of function 'PCI_DISABLE_IO' /usr/src/sys/dev/pci/pcivar.h:336: warning: nested extern declaration of 'PCI_DISABLE_IO' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_get_vpd_ident': /usr/src/sys/dev/pci/pcivar.h:342: warning: implicit declaration of function 'PCI_GET_VPD_IDENT' /usr/src/sys/dev/pci/pcivar.h:342: warning: nested extern declaration of 'PCI_GET_VPD_IDENT' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_get_vpd_readonly': /usr/src/sys/dev/pci/pcivar.h:348: warning: implicit declaration of function 'PCI_GET_VPD_READONLY' /usr/src/sys/dev/pci/pcivar.h:348: warning: nested extern declaration of 'PCI_GET_VPD_READONLY' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_set_powerstate': /usr/src/sys/dev/pci/pcivar.h:393: warning: implicit declaration of function 'PCI_SET_POWERSTATE' /usr/src/sys/dev/pci/pcivar.h:393: warning: nested extern declaration of 'PCI_SET_POWERSTATE' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_get_powerstate': /usr/src/sys/dev/pci/pcivar.h:399: warning: implicit declaration of function 'PCI_GET_POWERSTATE' /usr/src/sys/dev/pci/pcivar.h:399: warning: nested extern declaration of 'PCI_GET_POWERSTATE' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_find_extcap': /usr/src/sys/dev/pci/pcivar.h:405: warning: implicit declaration of function 'PCI_FIND_EXTCAP' /usr/src/sys/dev/pci/pcivar.h:405: warning: nested extern declaration of 'PCI_FIND_EXTCAP' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_alloc_msi': /usr/src/sys/dev/pci/pcivar.h:411: warning: implicit declaration of function 'PCI_ALLOC_MSI' /usr/src/sys/dev/pci/pcivar.h:411: warning: nested extern declaration of 'PCI_ALLOC_MSI' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_alloc_msix': /usr/src/sys/dev/pci/pcivar.h:417: warning: implicit declaration of function 'PCI_ALLOC_MSIX' /usr/src/sys/dev/pci/pcivar.h:417: warning: nested extern declaration of 'PCI_ALLOC_MSIX' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_remap_msix': /usr/src/sys/dev/pci/pcivar.h:423: warning: implicit declaration of function 'PCI_REMAP_MSIX' /usr/src/sys/dev/pci/pcivar.h:423: warning: nested extern declaration of 'PCI_REMAP_MSIX' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_release_msi': /usr/src/sys/dev/pci/pcivar.h:429: warning: implicit declaration of function 'PCI_RELEASE_MSI' /usr/src/sys/dev/pci/pcivar.h:429: warning: nested extern declaration of 'PCI_RELEASE_MSI' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_msi_count': /usr/src/sys/dev/pci/pcivar.h:435: warning: implicit declaration of function 'PCI_MSI_COUNT' /usr/src/sys/dev/pci/pcivar.h:435: warning: nested extern declaration of 'PCI_MSI_COUNT' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_msix_count': /usr/src/sys/dev/pci/pcivar.h:441: warning: implicit declaration of function 'PCI_MSIX_COUNT' /usr/src/sys/dev/pci/pcivar.h:441: warning: nested extern declaration of 'PCI_MSIX_COUNT' *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1
On Sat, Jan 02, 2010 at 09:55:29PM +0200, E. O. wrote:> pls help me.. build kernel error.. > > I have to update their source code.. standart-supfile > > # IMPORTANT: Change the next line to use one of the CVSup mirror sites > # listed at http://www.freebsd.org/doc/handbook/mirrors.html. > *default host=CHANGE_THIS.FreeBSD.orgWhat host did you really use? CHANGE_THIS.FreeBSD.org doesn't exist.> GENERIC Kernel use.. > > > FreeBSD fbsd 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Fri Jan 1 15:31:27 EET > 2010 root@fbsd:/usr/obj/usr/src/sys/GENERIC amd64 > > > > > error ; > > make buildkernel and error.. > > ./pci_if.h:226: error: stray '\335' in programI think pci_if.h is a generated file. Clean out /usr/obj and try again. If that doesn't work, try updating your source again. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100102/7f64ea75/attachment.pgp
pls help me , kernel always returns an error /usr# ls -l /usr/ total 66 drwxrwxr-x 2 root operator 512 2 Oca 14:26 .snap lrwxr-xr-x 1 root wheel 10 1 Oca 20:35 X11R6 -> /usr/local drwxr-xr-x 2 root wheel 7168 2 Oca 12:43 bin drwxr-xr-x 3 root wheel 512 1 Oca 20:42 compat drwxr-xr-x 2 root wheel 512 1 Oca 16:21 games drwxr-xr-x 4 root wheel 512 1 Oca 16:51 home drwxr-xr-x 46 root wheel 5120 1 Oca 16:18 include drwxr-xr-x 6 root wheel 11776 1 Oca 16:21 lib drwxr-xr-x 3 root wheel 12288 21 Kas 16:31 lib32 drwxr-xr-x 5 root wheel 512 21 Kas 16:29 libdata drwxr-xr-x 5 root wheel 1536 1 Oca 16:21 libexec drwxr-xr-x 18 root wheel 512 1 Oca 20:55 local drwxr-xr-x 3 root wheel 512 2 Oca 22:47 obj drwxr-xr-x 69 root wheel 1536 2 Oca 18:01 ports drwxr-xr-x 2 root wheel 5120 1 Oca 16:18 sbin drwxr-xr-x 25 root wheel 512 21 Kas 17:03 share drwxr-xr-x 22 root wheel 1024 2 Oca 22:31 src I have re-operations, but still get an error .. # IMPORTANT: Change the next line to use one of the CVSup mirror sites # listed at http://www.freebsd.org/doc/handbook/mirrors.html. *default host=cvsup.FreeBSD.org <http://cvsup.freebsd.org/> *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_8_0 *default delete use-rel-suffix src-all source update and cd /usr/src make cleandir && make cleandir && rm -rf /usr/obj make buildkernel and error ./pci_if.h:214: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_RELEASE_MS' ./pci_if.h:214: error: stray '\335' in program ./pci_if.h:226: error: stray '\335' in program ./pci_if.h:226: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_MS' ./pci_if.h:226: error: stray '\335' in program ./pci_if.h:238: error: stray '\335' in program ./pci_if.h:238: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_MS' ./pci_if.h:238: error: stray '\335' in program cc1: warnings being treated as errors In file included from /usr/src/sys/dev/aic7xxx/aic7xxx_osm.h:72, from aic7xxx_reg_print.c:9: /usr/src/sys/dev/pci/pcivar.h: In function 'pci_get_subvendor': /usr/src/sys/dev/pci/pcivar.h:244: warning: implicit declaration of function 'BUS_READ_IVAR' /usr/src/sys/dev/pci/pcivar.h:244: warning: nested extern declaration of 'BUS_READ_IVAR' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_set_subvendor': /usr/src/sys/dev/pci/pcivar.h:244: warning: implicit declaration of function 'BUS_WRITE_IVAR' /usr/src/sys/dev/pci/pcivar.h:244: warning: nested extern declaration of 'BUS_WRITE_IVAR' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_read_config': /usr/src/sys/dev/pci/pcivar.h:274: warning: implicit declaration of function 'PCI_READ_CONFIG' /usr/src/sys/dev/pci/pcivar.h:274: warning: nested extern declaration of 'PCI_READ_CONFIG' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_write_config': /usr/src/sys/dev/pci/pcivar.h:280: warning: implicit declaration of function 'PCI_WRITE_CONFIG' /usr/src/sys/dev/pci/pcivar.h:280: warning: nested extern declaration of 'PCI_WRITE_CONFIG' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_enable_busmaster': /usr/src/sys/dev/pci/pcivar.h:318: warning: implicit declaration of function 'PCI_ENABLE_BUSMASTER' /usr/src/sys/dev/pci/pcivar.h:318: warning: nested extern declaration of 'PCI_ENABLE_BUSMASTER' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_disable_busmaster': /usr/src/sys/dev/pci/pcivar.h:324: warning: implicit declaration of function 'PCI_DISABLE_BUSMASTER' /usr/src/sys/dev/pci/pcivar.h:324: warning: nested extern declaration of 'PCI_DISABLE_BUSMASTER' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_enable_io': /usr/src/sys/dev/pci/pcivar.h:330: warning: implicit declaration of function 'PCI_ENABLE_IO' /usr/src/sys/dev/pci/pcivar.h:330: warning: nested extern declaration of 'PCI_ENABLE_IO' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_disable_io': /usr/src/sys/dev/pci/pcivar.h:336: warning: implicit declaration of function 'PCI_DISABLE_IO' /usr/src/sys/dev/pci/pcivar.h:336: warning: nested extern declaration of 'PCI_DISABLE_IO' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_get_vpd_ident': /usr/src/sys/dev/pci/pcivar.h:342: warning: implicit declaration of function 'PCI_GET_VPD_IDENT' /usr/src/sys/dev/pci/pcivar.h:342: warning: nested extern declaration of 'PCI_GET_VPD_IDENT' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_get_vpd_readonly': /usr/src/sys/dev/pci/pcivar.h:348: warning: implicit declaration of function 'PCI_GET_VPD_READONLY' /usr/src/sys/dev/pci/pcivar.h:348: warning: nested extern declaration of 'PCI_GET_VPD_READONLY' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_set_powerstate': /usr/src/sys/dev/pci/pcivar.h:393: warning: implicit declaration of function 'PCI_SET_POWERSTATE' /usr/src/sys/dev/pci/pcivar.h:393: warning: nested extern declaration of 'PCI_SET_POWERSTATE' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_get_powerstate': /usr/src/sys/dev/pci/pcivar.h:399: warning: implicit declaration of function 'PCI_GET_POWERSTATE' /usr/src/sys/dev/pci/pcivar.h:399: warning: nested extern declaration of 'PCI_GET_POWERSTATE' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_find_extcap': /usr/src/sys/dev/pci/pcivar.h:405: warning: implicit declaration of function 'PCI_FIND_EXTCAP' /usr/src/sys/dev/pci/pcivar.h:405: warning: nested extern declaration of 'PCI_FIND_EXTCAP' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_alloc_msi': /usr/src/sys/dev/pci/pcivar.h:411: warning: implicit declaration of function 'PCI_ALLOC_MSI' /usr/src/sys/dev/pci/pcivar.h:411: warning: nested extern declaration of 'PCI_ALLOC_MSI' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_alloc_msix': /usr/src/sys/dev/pci/pcivar.h:417: warning: implicit declaration of function 'PCI_ALLOC_MSIX' /usr/src/sys/dev/pci/pcivar.h:417: warning: nested extern declaration of 'PCI_ALLOC_MSIX' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_remap_msix': /usr/src/sys/dev/pci/pcivar.h:423: warning: implicit declaration of function 'PCI_REMAP_MSIX' /usr/src/sys/dev/pci/pcivar.h:423: warning: nested extern declaration of 'PCI_REMAP_MSIX' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_release_msi': /usr/src/sys/dev/pci/pcivar.h:429: warning: implicit declaration of function 'PCI_RELEASE_MSI' /usr/src/sys/dev/pci/pcivar.h:429: warning: nested extern declaration of 'PCI_RELEASE_MSI' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_msi_count': /usr/src/sys/dev/pci/pcivar.h:435: warning: implicit declaration of function 'PCI_MSI_COUNT' /usr/src/sys/dev/pci/pcivar.h:435: warning: nested extern declaration of 'PCI_MSI_COUNT' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_msix_count': /usr/src/sys/dev/pci/pcivar.h:441: warning: implicit declaration of function 'PCI_MSIX_COUNT' /usr/src/sys/dev/pci/pcivar.h:441: warning: nested extern declaration of 'PCI_MSIX_COUNT' *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1
On Sat, 2 Jan 2010, E. O. wrote:> source update and > > cd /usr/src > > make cleandir && make cleandir && rm -rf /usr/obj > > make buildkernel > > and errorAfter updating source, you should buildworld before trying to build the kernel. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html -Warren Block * Rapid City, South Dakota USA
*I have read the handbook but I'm getting constant errors.* *8.0-RELEASE amd64 GENERIC* # IMPORTANT: Change the next line to use one of the CVSup mirror sites # listed at http://www.freebsd.org/doc/handbook/mirrors.html. *default host=cvsup1.FreeBSD.org <http://cvsup1.freebsd.org/> *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_8 *default delete use-rel-suffix src-all cd /usr/ports/ && make fetchindex #cvsup -g -L 2 /etc/ports-supfile cvsup -g -L 2 /etc/standard-supfile rm -rf /usr/obj cd /usr/src make cleanworld && make cleandir make buildworld and make buildkernel -> *error* /usr/src/sys/dev/pci/pcivar.h:429: warning: implicit declaration of function 'PCI_RELEASE_MSI' /usr/src/sys/dev/pci/pcivar.h:429: warning: nested extern declaration of 'PCI_RELEASE_MSI' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_msi_count': /usr/src/sys/dev/pci/pcivar.h:435: warning: implicit declaration of function 'PCI_MSI_COUNT' /usr/src/sys/dev/pci/pcivar.h:435: warning: nested extern declaration of 'PCI_MSI_COUNT' /usr/src/sys/dev/pci/pcivar.h: In function 'pci_msix_count': /usr/src/sys/dev/pci/pcivar.h:441: warning: implicit declaration of function 'PCI_MSIX_COUNT' /usr/src/sys/dev/pci/pcivar.h:441: warning: nested extern declaration of 'PCI_MSIX_COUNT' *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1
On 2010-01-03 14:06, E. O. wrote:> cd /usr/src > make cleanworld&& make cleandir > make buildworld > make kernel-toolchain > make buildkernel *--> error* > > pls see error --> http://www.harmanyeri.web.tr/buildkernel.logOkay, this looks very strange: In file included from /usr/src/sys/sys/bus.h:542, from /usr/src/sys/dev/aic7xxx/aic7xxx_osm.h:44, from aic7xxx_reg_print.c:9: ./device_if.h:102: error: stray '\335' in program ./device_if.h:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CE_PROBE' Can you please upload the file /usr/obj/usr/src/sys/GENERIC/device_if.h there too? It looks like it has been generated incorrectly, but no idea why...
On 2010-01-03 14:49, E. O. wrote:>> Can you please upload the file /usr/obj/usr/src/sys/GENERIC/device_if.h >> there too? It looks like it has been generated incorrectly, but no idea >> why... > pls see --> http://www.harmanyeri.web.tr/device_if.h.txtAll "DEVICE_" prefixes have been changed to "DEV?CE_", which looks like either memory corruption, or file corruption. You should try the following: 1) Run a full memory test (<http://www.memtest.org/>) 2) Delete at least /usr/src/sys/kern/device_if.m, re-download that file, and do "make buildkernel" again 3) If that doesn't work, delete /usr/src entirely, re-download all of it, and do make buildworld + buildkernel again
E. O. wrote:> make buildkernel -> *error*Ok, have you changed anything in the GENERIC kernel config file? Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso
my kernel compile error -> http://www.harmanyeri.web.tr/buildkernel.log Thx Dimitry Andric.. 1 month I was dealing with this error. I wrote frebsd forums everywhere. but not. and ... are today, but thank you very much. I'm very happy. Dimitry Andric wrote of me ; Yes, your /etc/profile is fine, just leave your default settings for Turkish locale. You only need to use LC_ALL=C temporarily, for building world and kernel. For example, you could use: cd /usr/src unset LANG unset MM_CHARSET export LC_ALL=C make buildworld make buildkernel *and problem solved... *