Re: /usr/src/sys/dev/aic7xxx errors when compiling
On Wed, 11 Feb 2004, Didier Wiroth wrote: > Hi, thanks for answering > I'm using this in make.conf > COPTFLAGS= -O2 -pipe -funroll-loops > CFLAGS= -O3 -pipe -funroll-loops Don't: - optimize the base system above -O, it's not officially supported. - top post, it makes things harder to read. - cross-post, it's almost always not necessary. Regards, Andy > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/> ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /usr/src/sys/dev/aic7xxx errors when compiling
You are right - only COPTFLAGS used when you compiling the kernel. BUT YOU should note that when you compile the kernel you don't compile only it ! You also compile many modules . You have problem namely with module. So COPTFLAGS= -O2 -pipe -funroll-loops has affect only on kernel. But CFLAGS= -O3 -pipe -funroll-loops will be used for compiling your modules. In other words kernel will be optimized with -O2 , but modules will be optimized with -O3. Actually you don't have problem with compiling your KERNEL. You have problem with compiling some modules. My solution actually - compiling with option -O2 such modules that cannot be compiled with -O3 . All other modules I has compiled with -O3. Didier WIROTH wrote: Hi, thanks for answering I'm using this in make.conf COPTFLAGS= -O2 -pipe -funroll-loops CFLAGS= -O3 -pipe -funroll-loops Thx for answering. But... hmm..., I'm not using -O3 for the kernel, or at least I thought I wasn't!? When using COPTFLAGS in make.conf, isn't CFLAGS ignored when building the kernel? I build the kernel with: make -j2 buildkernel KERNCONF=MYKERNEL Does it mean that COPTFLAGS & CFLAGS are actually merged?! This: COPTFLAGS= -O2 -pipe -funroll-loops CFLAGS= -O3 -pipe -funroll-loops Results in this: gcc -O2 -O3 -pipe -funroll-loops thx This is because using -O3 adds the option -finline-functions. You should only use -O when compiling the kernel and that's all that is actually supported. --roop ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: /usr/src/sys/dev/aic7xxx errors when compiling
> >Hi, thanks for answering > >I'm using this in make.conf > >COPTFLAGS= -O2 -pipe -funroll-loops > >CFLAGS= -O3 -pipe -funroll-loops Thx for answering. But... hmm..., I'm not using -O3 for the kernel, or at least I thought I wasn't!? When using COPTFLAGS in make.conf, isn't CFLAGS ignored when building the kernel? I build the kernel with: make -j2 buildkernel KERNCONF=MYKERNEL Does it mean that COPTFLAGS & CFLAGS are actually merged?! This: COPTFLAGS= -O2 -pipe -funroll-loops CFLAGS= -O3 -pipe -funroll-loops Results in this: gcc -O2 -O3 -pipe -funroll-loops thx > This is because using -O3 adds the option -finline-functions. > You should only use -O when compiling the kernel and that's > all that is actually supported. > > --roop > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /usr/src/sys/dev/aic7xxx errors when compiling
Hi, I've tried a few settings. I completly removed the coptflags and tried the following: 1)CFLAGS= -O3 -pipe -funroll-loops did not work 2) CFLAGS= -O2 -pipe -funroll-loops did not work 3) CFLAGS= -O -pipe -funroll-loops did not work 4) CFLAGS= -O -pipe did not work The only compile settings that I was able to use was: #CFLAGS= ... Yes, ;-( I had to comment and disable the CFLAGS because "every" optimisation setting I used, made it impossible to compile the kernel. The error was always the aicxxx ..etc error messages. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /usr/src/sys/dev/aic7xxx errors when compiling
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 <[EMAIL PROTECTED]> 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? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions- [EMAIL PROTECTED]"> ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /usr/src/sys/dev/aic7xxx errors when compiling
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 <[EMAIL PROTECTED]> 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? This is because using -O3 adds the option -finline-functions. You should only use -O when compiling the kernel and that's all that is actually supported. --roop ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /usr/src/sys/dev/aic7xxx errors when compiling
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 <[EMAIL PROTECTED]> 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? > > > > > >___ > >[EMAIL PROTECTED] mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to "freebsd-questions- > [EMAIL PROTECTED]"> > > > > > > > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"