Re: warnings while kernel build
В чт, 23.10.2003, в 22:33, David O'Brien пишет: > On Thu, Oct 23, 2003 at 02:41:58PM +0400, Vladimir B. Grebenschikov wrote: > > ? ??, 23.10.2003, ? 02:13, Doug White ?: > > > On Wed, 22 Oct 2003, Vladimir B. Grebenschikov wrote: > > > > > > > > > > > While build kernel on RELENG_4 machine I have following warnings (they > > > > prevent success build unless -Werror disabled) > > > > > > Is there some reason you're trying to compile RELENG_4 with gcc 3.3, which > > > won't work? > > > > I am trying to compile -CURRENT code on RELENG_4 machine, with native > > RELENG_4 gcc: > > > > % gcc -v > > Using builtin specs. > > gcc version 2.95.4 20020320 [FreeBSD] > > % which gcc > > /usr/bin/gcc > > Install the GCC 3.3 port on your 4.x system and use "CC=gcc33 make" when > building the 5-CURRENT kernel sources. Looks like bad idea, with native gcc I can simple ignore warnings, but with gcc33 it fails on depend stage: # env CC=/usr/local/bin/gcc33 make KERNCONF=VBOOK buildkernel | & tee ~/build.report33 ... if [ -f .depend ]; then mv .depend .olddep; fi /usr/obj/ext/current/src/make.i386/make _kernel-depend /usr/local/bin/gcc33 -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/ext/current/src/sys -I/ext/current/src/sys/contrib/dev/acpica -I/ext/current/src/sys/contrib/ipfilter -I/ext/current/src/sys/contrib/dev/ath -I/ext/current/src/sys/contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -finline-limit=15000 -fno-strict-aliasing -O -mcpu=pentiumpro -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wno-inline /ext/current/src/sys/i386/i386/genassym.c cc1: error: invalid option `no-align-long-strings' *** Error code 1 Stop in /usr/obj/ext/current/src/sys/VBOOK. *** Error code 1 Stop in /usr/obj/ext/current/src/sys/VBOOK. *** Error code 1 Stop in /ext/current/src. *** Error code 1 Stop in /ext/current/src. # -- Vladimir B. Grebenschikov <[EMAIL PROTECTED]> SWsoft Inc. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: warnings while kernel build
On Thu, Oct 23, 2003 at 02:41:58PM +0400, Vladimir B. Grebenschikov wrote: > ? ??, 23.10.2003, ? 02:13, Doug White ?: > > On Wed, 22 Oct 2003, Vladimir B. Grebenschikov wrote: > > > > > > > > While build kernel on RELENG_4 machine I have following warnings (they > > > prevent success build unless -Werror disabled) > > > > Is there some reason you're trying to compile RELENG_4 with gcc 3.3, which > > won't work? > > I am trying to compile -CURRENT code on RELENG_4 machine, with native > RELENG_4 gcc: > > % gcc -v > Using builtin specs. > gcc version 2.95.4 20020320 [FreeBSD] > % which gcc > /usr/bin/gcc Install the GCC 3.3 port on your 4.x system and use "CC=gcc33 make" when building the 5-CURRENT kernel sources. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: warnings while kernel build
On Thu, 23 Oct 2003, Vladimir B. Grebenschikov wrote: > I am trying to compile -CURRENT code on RELENG_4 machine, with native > RELENG_4 gcc: > > % gcc -v > Using builtin specs. > gcc version 2.95.4 20020320 [FreeBSD] > % which gcc > /usr/bin/gcc hrm > > > /ext/current/src# make -j8 buildkernel > > > ... > > > /ext/current/src/sys/kern/kern_descrip.c:1914: warning: inlining failed > > > in call to `_fgetvp' > > > > > makeoptions CONF_CFLAGS="-O3 -mcpu=pentiumpro" > > > > This is an unsupported option. Do not compile the kernel with any > > optimization beyond -O. This might be the other reason why you are > > getting these inlining warnings. > > Ok, But it works for me from 5.0 branching (or about). Optimization levels beyond -O are known to generate incorrect code. You will end up with an unbootable or, worse, an incorrect kernel as a result. If you are having compile problems with anything but -O, revert to -O. If you are still having problems, wthen we'll talk. Youre _are_ following the instructions in /usr/src/UPDATING on how to upgrade from -STABLE to -CURRENT, right? -- Doug White| FreeBSD: The Power to Serve [EMAIL PROTECTED] | www.FreeBSD.org ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: warnings while kernel build
В чт, 23.10.2003, в 02:13, Doug White пишет: > On Wed, 22 Oct 2003, Vladimir B. Grebenschikov wrote: > > > > > While build kernel on RELENG_4 machine I have following warnings (they > > prevent success build unless -Werror disabled) > > Is there some reason you're trying to compile RELENG_4 with gcc 3.3, which > won't work? I am trying to compile -CURRENT code on RELENG_4 machine, with native RELENG_4 gcc: % gcc -v Using builtin specs. gcc version 2.95.4 20020320 [FreeBSD] % which gcc /usr/bin/gcc % pkg_glob gcc\* % > > /ext/current/src# make -j8 buildkernel > > ... > > /ext/current/src/sys/kern/kern_descrip.c:1914: warning: inlining failed > > in call to `_fgetvp' > > > makeoptions CONF_CFLAGS="-O3 -mcpu=pentiumpro" > > This is an unsupported option. Do not compile the kernel with any > optimization beyond -O. This might be the other reason why you are > getting these inlining warnings. Ok, But it works for me from 5.0 branching (or about). > gcc -v? 2.95.4 20020320 [FreeBSD] -- Vladimir B. Grebenschikov <[EMAIL PROTECTED]> SWsoft Inc. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: warnings while kernel build
On Wed, 22 Oct 2003, Doug White wrote: > On Wed, 22 Oct 2003, Vladimir B. Grebenschikov wrote: > > > > > While build kernel on RELENG_4 machine I have following warnings (they > > prevent success build unless -Werror disabled) > > Is there some reason you're trying to compile RELENG_4 with gcc 3.3, which > won't work? It works for me. %%% RCS file: /home/ncvs/src/sys/i386/i386/identcpu.c,v Working file: identcpu.c head: 1.130 ... revision 1.57.2.17 date: 2003/08/05 07:07:37; author: bde; state: Exp; lines: +20 -20 MFC: 1.94 and 1.125 (don't use hard newlines in string literals, and fix some style bugs on the same lines). This completes making some RELENG_3 kernels work when compiled by gcc-3.3. ... revision 1.80.2.16 date: 2003/08/05 07:05:39; author: bde; state: Exp; lines: +19 -19 MFC: 1.94 and 1.125 (don't use hard newlines in string literals, and fix some style bugs on the same lines). This completes making some RELENG_4 kernels work when compiled by gcc-3.3. I intended to make more than some work, but gave up on LINT. GENERIC compliles but has not been tested at runtime. %%% Bruce ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: warnings while kernel build
On Wed, 22 Oct 2003, Vladimir B. Grebenschikov wrote: > > While build kernel on RELENG_4 machine I have following warnings (they > prevent success build unless -Werror disabled) Is there some reason you're trying to compile RELENG_4 with gcc 3.3, which won't work? > /ext/current/src# make -j8 buildkernel > ... > /ext/current/src/sys/kern/kern_descrip.c:1914: warning: inlining failed > in call to `_fgetvp' > makeoptions CONF_CFLAGS="-O3 -mcpu=pentiumpro" This is an unsupported option. Do not compile the kernel with any optimization beyond -O. This might be the other reason why you are getting these inlining warnings. gcc -v? -- Doug White| FreeBSD: The Power to Serve [EMAIL PROTECTED] | www.FreeBSD.org ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
warnings while kernel build
While build kernel on RELENG_4 machine I have following warnings (they prevent success build unless -Werror disabled) /ext/current/src# make -j8 buildkernel ... /ext/current/src/sys/kern/kern_descrip.c:1914: warning: inlining failed in call to `_fgetvp' /ext/current/src/sys/kern/kern_descrip.c:1935: warning: called from here /ext/current/src/sys/kern/kern_descrip.c:1914: warning: inlining failed in call to `_fgetvp' /ext/current/src/sys/kern/kern_descrip.c:1942: warning: called from here /ext/current/src/sys/kern/kern_descrip.c:1914: warning: inlining failed in call to `_fgetvp' /ext/current/src/sys/kern/kern_descrip.c:1949: warning: called from here ... /ext/current/src/sys/vm/vm_map.c:287: warning: inlining failed in call to `vmspace_dofree' /ext/current/src/sys/vm/vm_map.c:319: warning: called from here /ext/current/src/sys/vm/vm_map.c:287: warning: inlining failed in call to `vmspace_dofree' /ext/current/src/sys/vm/vm_map.c:343: warning: called from here kernel config below == machine "i386" ident VBOOK maxusers0 options SCHED_4BSD options INCLUDE_CONFIG_FILE # Include this file in kernel cpu "I686_CPU" # aka Pentium Pro(tm) options COMPAT_43 options COMPAT_FREEBSD4 # Enable FreeBSD4 compatibility syscalls makeoptions CONF_CFLAGS="-O3 -mcpu=pentiumpro" #makeoptions CONF_CFLAGS=-fno-builtin #Don't allow use of memcmp, etc. makeoptions DEBUG=-g #makeoptionsKERNEL=foo options INET#Internet communications protocols device ether #Generic Ethernet device loop#Network loopback device device bpf #Berkeley packet filter options PPP_BSDCOMP #PPP BSD-compress support options PPP_DEFLATE #PPP zlib/deflate/gzip support options PPP_FILTER #enable bpf filtering (needs bpfilter) options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #print information about dropped packets options IPFIREWALL_FORWARD #enable transparent proxy support #options"IPFIREWALL_VERBOSE_LIMIT=100" #limit verbosity options IPDIVERT#divert sockets options DUMMYNET options PFIL_HOOKS options FFS #Fast filesystem options PSEUDOFS options PROCFS #Process filesystem options SOFTUPDATES # Allow this many swap-devices. device scbus #base SCSI code device da #SCSI direct access devices (aka disks) device sa #SCSI tapes device cd #SCSI CD-ROMs device pass#CAM passthrough driver options SCSI_DELAY=1000 device pty #Pseudo ttys - can go as high as 256 device speaker #Play IBM BASIC-style noises out your speaker device md # Memory "disks" device isa device atkbdc device atkbd device psm device vga device sc options MAXCONS=16 # number of virtual consoles #optionsSC_DFLT_FONT# compile font in #makeoptionsSC_DFLT_FONT="cp866-vio" options SC_HISTORY_SIZE=1024# number of history buffer lines #optionsSC_DISABLE_REBOOT # disable reboot key sequence options SC_NO_SUSPEND_VTYSWITCH device npx #device aha device ata device atadisk# ATA disk drives device atapicd# ATAPI CDROM drives #device atapifd# ATAPI floppy drives #device atapist# ATAPI tape drives #device fdc device sio device pci #device apm device smbus device intpm device smb device iicbus device iicbb device ic device iic device iicsmb device pmtimer ## to module #device ppbus #device vpo #device lpt #device plip #device ppi ##devicepps #device lpbb #device ppc options "EXT2FS" #optionsKTRACE #kernel tracing options DDB options BREAK_TO_DEBUGGER #a BREAK on a comconsole goes to #DDB, if available. # OLDCARD #device pcic #device card 1 # NEWCARD # Pcmcia and cardbus bridge support #device cbb # cardbus (yenta) bridge #device pccard #device cardbus #device wlan #device wi device random options _KPOSIX_PRIORITY_SCHEDULING #device acpica #options ACPI_DEBUG options KBD_INSTALL_CDEV #device uhci #device ohci #device