make buildkernel - error: 'IOSIZE_MAX' undeclared
Hi, Today I tried to build a new system/kernel for one of my boxes running FreeBSD9. make buildworld went ok, however during make buildkernel I got this: -- Cut here -- /usr/src/sys/kern/subr_uio.c: In function 'uiomove_faultflag': /usr/src/sys/kern/subr_uio.c:194: error: 'TDP_RESETSPUR' undeclared (first use in this function) /usr/src/sys/kern/subr_uio.c:194: error: (Each undeclared identifier is reported only once /usr/src/sys/kern/subr_uio.c:194: error: for each function it appears in.) /usr/src/sys/kern/subr_uio.c: In function 'uiomove_frombuf': /usr/src/sys/kern/subr_uio.c:259: error: 'IOSIZE_MAX' undeclared (first use in this function) /usr/src/sys/kern/subr_uio.c: In function 'copyinuio': /usr/src/sys/kern/subr_uio.c:486: error: 'IOSIZE_MAX' undeclared (first use in this function) *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. -- Cut here -- Has anybody seen this? Better yet - any known cure against this problem? Please note that I've cvsup-ed the sources right before building the system/kernel, so they should be up to date. I also tried re-cvsuping several times, but the error stays. Thanks much in advance for your help, -ewald ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make buildkernel error
--- On Sat, 10/4/08, Unga [EMAIL PROTECTED] wrote: I'm getting following compile error for /usr/src/sys/i386/i386/genassym.c : cc1: error: unrecognized command line option -mno-align-long-strings cc1: error: unrecognized command line option -fformat-extensions *** Error code 1 I found in /usr/src/gnu/usr.bin/cc/cc_tools/i386-freebsd.opt: mno-align-long-strings Target RejectNegative Report Mask(NO_ALIGN_LONG_STRINGS) Do not align long strings specially What does FreeBSD mean by Do not align long strings specially? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
make buildkernel error
Hi all I'm getting following compile error for /usr/src/sys/i386/i386/genassym.c : cc1: error: unrecognized command line option -mno-align-long-strings cc1: error: unrecognized command line option -fformat-extensions *** Error code 1 I'm using gcc version 4.3.1. Does this means above options are not compatible with gcc version 4.3.1? Is it safe to remove above options from kernel sources and recompile or what am I suppose to do now? This is RELENG_7, cvsup a month ago. Appreciate your reply very much. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildkernel error
On Sat, Oct 04, 2008 at 02:17:50AM -0700, Unga wrote: I'm getting following compile error for /usr/src/sys/i386/i386/genassym.c : cc1: error: unrecognized command line option -mno-align-long-strings cc1: error: unrecognized command line option -fformat-extensions *** Error code 1 I'm using gcc version 4.3.1. Does this means above options are not compatible with gcc version 4.3.1? Is it safe to remove above options from kernel sources and recompile or what am I suppose to do now? This is RELENG_7, cvsup a month ago. Appreciate your reply very much. I'm not sure about this, but doesn't building world require that you use the base system's gcc (e.g. /usr/bin/gcc), and not the one from ports? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildkernel ERROR ?Why?
Right John, I follow your instructions and it's OK. Thank you very much!! You have the umass device enabled which, as it says, requires scbus and da. Either remark the umass line or unremark the scbus and da lines in the SCSI peripherals section. Also, as you have the INET6 option remarked out, you probably won't need the faith device (in Pseudo devices). -- HTH, John. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
make buildkernel ERROR ¿Why?
Hi, this is my first time I customize my kernel. I'm working with Freebsd 6.0, I made a make buildkernel KERNELCONF=ALBABRAIN, and I get this error: ... cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror majors.c cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vnode_if.c touch hack.c cc -shared -nostdlib hack.c -o hack.So rm -f hack.c sh /usr/src/sys/conf/newvers.sh ALBABRAIN cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c linking kernel *** Error code 1 Stop in /usr/obj/usr/src/sys/ALBABRAIN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Any help will be apreciated!! This is my customized Kernel ALBABRAIN: machine i386 cpu I686_CPU ident ALBABRAIN options SCHED_4BSD #4BSD scheduler options INET #InterNETworking options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options MD_ROOT #MD is a potential root device options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS #Pseudo-filesystem framework options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 #Compatible with FreeBSD4 options KTRACE #ktrace(1) support options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. options PFIL_HOOKS # pfil(9) framework options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS options SMP # Symmetric MultiProcessor Kernel device apic # I/O APIC device isa device pci device fdc device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device vga # VGA video card driver device splash # Splash screen and screen saver support device sc device agp # support several AGP chipsets device npx device pmtimer device cbb # cardbus (yenta) bridge device pccard # PC Card (16-bit) bus device cardbus # CardBus (32-bit) bus device sio # 8250, 16[45]50 based serial ports device ppc device ppbus # Parallel port bus (required) device lpt # Printer device ppi # Parallel port interface device device txp # 3Com 3cR990 (``Typhoon'') device vx # 3Com 3c590, 3c595 (``Vortex'') device miibus # MII bus support device re # RealTek 8139C+/8169/8169S/8110S device rl # RealTek 8129/8139 device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # Pseudo devices - the number indicates how many units to allocate. device random # Entropy device device loop # Network loopback device ether # Ethernet support device sl # Kernel SLIP device ppp # Kernel PPP device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory disks device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) device bpf #
Re: make buildkernel ERROR ?Why?
On 2006-06-21 13:23, Jordi Pavon [EMAIL PROTECTED] wrote: Hi, this is my first time I customize my kernel. I'm working with Freebsd 6.0, I made a make buildkernel KERNELCONF=ALBABRAIN, and I get this error: ... cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls [...] -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c linking kernel *** Error code 1 Stop in /usr/obj/usr/src/sys/ALBABRAIN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Any help will be apreciated!! This is not the verbatim, unedited log and it is missing the error message. You are not building with -j2 or higher, right? This is my customized Kernel ALBABRAIN: machine i386 cpu I686_CPU ident ALBABRAIN options SCHED_4BSD #4BSD scheduler options INET #InterNETworking [...] Your mailer or something else that handled this message has changed this configuration file too much to make a comparison with GENERIC easy. Can you attach a text/plain MIME version of the configuration file, please? - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildkernel ERROR ?Why?
On 2006-06-21 13:23, Jordi Pavon wrote: Hi, this is my first time I customize my kernel. I'm working with Freebsd 6.0, I made a make buildkernel KERNELCONF=ALBABRAIN, and I get this error: ... cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls [...] -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c linking kernel *** Error code 1 Stop in /usr/obj/usr/src/sys/ALBABRAIN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Any help will be apreciated!! This is not the verbatim, unedited log and it is missing the error message. You are not building with -j2 or higher, right? Yes, you're right I'm not building with -j2 or higher, I just write make buildkernel KERNELCONF=ALBABRAIN This is the last 3 lines : cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c linking kernel *** Error code 1 Stop in /usr/obj/usr/src/sys/ALBABRAIN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. This is my customized Kernel ALBABRAIN: machine i386 cpu I686_CPU ident ALBABRAIN options SCHED_4BSD #4BSD scheduler options INET #InterNETworking [...] Your mailer or something else that handled this message has changed this configuration file too much to make a comparison with GENERIC easy. Can you attach a text/plain MIME version of the configuration file, please? - Giorgos The configuration File is attached, sorry for the Hotmail editor. # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.394.2.3 2004/01/26 19:42:11 nectar Exp $ machine i386 cpu I686_CPU ident ALBABRAIN #To statically compile in device wiring instead of /boot/device.hints #hints GENERIC.hints #Default places to look for devices. #makeoptionsDEBUG=-g#Build kernel with gdb(1) debug symbols options SCHED_4BSD #4BSD scheduler options INET#InterNETworking #optionsINET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options MD_ROOT #MD is a potential root device #optionsNFSCLIENT #Network Filesystem Client #optionsNFSSERVER #Network Filesystem Server #optionsNFS_ROOT#NFS usable as /, requires NFSCLIENT #optionsMSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS#Pseudo-filesystem framework options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 #Compatible with FreeBSD4 #optionsSCSI_DELAY=15000#Delay (in ms) before probing SCSI options KTRACE #ktrace(1) support #optionsSYSVSHM #SYSV-style shared memory #optionsSYSVMSG #SYSV-style message queues #optionsSYSVSEM
Re: make buildkernel ERROR ?Why?
Jordi Pavon [EMAIL PROTECTED] wrote: The configuration File is attached, sorry for the Hotmail editor. You have the umass device enabled which, as it says, requires scbus and da. Either remark the umass line or unremark the scbus and da lines in the SCSI peripherals section. Also, as you have the INET6 option remarked out, you probably won't need the faith device (in Pseudo devices). -- HTH, John. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildkernel ERROR ?Why?
On 6/21/06, Jordi Pavon [EMAIL PROTECTED] wrote: On 2006-06-21 13:23, Jordi Pavon wrote: Hi, this is my first time I customize my kernel. I'm working with Freebsd 6.0, I made a make buildkernel KERNELCONF=ALBABRAIN, and I get this error: ... cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls [...] -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c linking kernel *** Error code 1 Stop in /usr/obj/usr/src/sys/ALBABRAIN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Any help will be apreciated!! This is not the verbatim, unedited log and it is missing the error message. You are not building with -j2 or higher, right? Yes, you're right I'm not building with -j2 or higher, I just write make buildkernel KERNELCONF=ALBABRAIN This is the last 3 lines : cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c linking kernel *** Error code 1 Stop in /usr/obj/usr/src/sys/ALBABRAIN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. This is my customized Kernel ALBABRAIN: machine i386 cpu I686_CPU ident ALBABRAIN options SCHED_4BSD #4BSD scheduler options INET #InterNETworking [...] Your mailer or something else that handled this message has changed this configuration file too much to make a comparison with GENERIC easy. Can you attach a text/plain MIME version of the configuration file, please? - Giorgos The configuration File is attached, sorry for the Hotmail editor. You should be using a kernel override config file thingy (I don't know it's real name). check out the SMP kernel config file for an example. Also post a copy of /etc/make.conf... cc -c -O -pipe -mcpu=pentiumpro... it looks like you have some non-standard stuff in make.conf. -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildkernel error
On Fri, Sep 27, 2002 at 07:11:41AM +0700, - wrote: === VLAN mkdir -p /usr/obj/usr/src/sys cd /usr/src/sys/i386/conf; PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d /usr/obj/usr/src/sys/VLAN /usr/src/sys/i386/conf/VLAN config: /usr/src/sys/i386/conf/VLAN:76: devices with zero units are not likely to be correct *** Error code 1 Stop in /usr/src. *** Error code 1 so.. what's the meaning of devices with zero units are not likely to be correct and how i fix this problem ? It means you need to fix your kernel file to be compatible with 5.0. In this instance, it's talking about things like: device foo0 which needs to be changed to: device foo. Compare with the GENERIC and NOTES files for changed config syntax. It might be easier to just start again from GENERIC and add back what you want. Kris msg03133/pgp0.pgp Description: PGP signature