Date: Thu, 12 Feb 2004 00:55:16 +0300 From: den <moreau@myrealbox.com> To: Didier Wiroth <didier.wiroth@mcesr.etat.lu>, freebsd-questions@freebsd.org Subject: Re: /usr/src/sys/dev/aic7xxx errors when compiling Message-ID: <402AA4C4.1090009@myrealbox.com> In-Reply-To: <175d01534a.1534a175d0@etat.lu> References: <175d01534a.1534a175d0@etat.lu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is your mistake :) I have had the same problem when I compile my kernel with such options. It is undesirable to use strong optimization in compiling kernel, although usually it does not lead to problem. But this is the case when problem is appeared. Optimization with CFLAGS = -O3 cause this warnings and compiler enter in infinit loop. My decision of this problem was : # make 1>out 2>&1 & # tail -f out when you will see that compiler enter in loop - break off compiling. Open in editor file "out" and find string when compiler start compiling usr/src/sys/dev/aic7xxx. Cut all warnings to the end of file and stay only this line. change option in compiler from "-O3" to "-O2" Go to directory pointed in compiling string and place your file there. # chmod 0777 out #./out This will compile needed module with option "-O2". Then come back into your kernel compile directory and type # make this will proceed compilation of your kernel. Actually it is will not be a single case when compiler enter to infinit loop. Such cases will be around of four. In each case you should repeat this steps with problem module. Another and simple sloution : change CFLAGS= -O3 -pipe to CFLAGS= -O2 -pipe Didier Wiroth wrote: >Hi, thanks for answering >I'm using this in make.conf >COPTFLAGS= -O2 -pipe -funroll-loops >CFLAGS= -O3 -pipe -funroll-loops > > > >---- Messages d´origine ---- >De: den <moreau@myrealbox.com> >Date: mercredi, février 11, 2004 6:56 pm >Objet: Re: /usr/src/sys/dev/aic7xxx errors when compiling > > > >>What options you use for compiling your kernel ? >>In other words - post your /etc/make.conf >> >>Didier WIROTH wrote: >> >> >> >>>Hi, >>>(error on 5.2 and 5.2.1-rc) >>>When compiling the kernel I get 100... of errors like this: >>>/usr/src/sys/dev/aic7xxx/aic7xxx.c:147: warning: called from here >>>@/dev/aic7xxx/aic7xxx_inline.h:141: warning: inlining failed in >>> >>> >>call to >> >> >>>'ahc_release_untagged_queues' >>> >>>/usr/src/sys/dev/aic7xxx/aic7xxx.c:5118: warning: called from here >>>@/dev/aic7xxx/aic7xxx_inline.h:570: warning: inlining failed in >>> >>> >>call to >> >> >>>'ahc_release_untagged_queues'etc... >>> >>> >>>I've removed every scsi device in my custom kernel file as I >>> >>> >>don't use scsi >> >> >>>and usbmass devices. >>> >>>Are other users experiencing this problem? >>> >>> >>>_______________________________________________ >>>freebsd-questions@freebsd.org mailing list >>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>To unsubscribe, send any mail to "freebsd-questions- >>> >>> >>unsubscribe@freebsd.org"> >> >> >>> >>> >>> >>> >> >> >> > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?402AA4C4.1090009>