Mark Leeds | 25 Dec 2011 04:39
Picon

install warning on fedora 16

Hi: I am working on some code in a package I'm writing and I'm getting the
warning below when I do
the install on a newly installed fedora 16 OS. But when I run the same
install on windows, I don't get the error.  and when I used to run the
install on Fedora 14 ( I missed Fedora 15 ), I didn't get the warning
there either ?

Does anyone know what the problem might be ? Maybe a difference with gcc ?
It's only a warning but it scares me a little because the variables should
be getting used contrary to what the warning says.
Thanks a lot for any hints/suggestions.

My session Info is below and the install output is after that. and happy
holidays to all also. and

#=======================================================================

 sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: i386-redhat-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
LC_TIME=C                  LC_COLLATE=C
LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=C                 LC_NAME=C
LC_ADDRESS=C               LC_TELEPHONE=C
LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
(Continue reading)

Tom Callaway | 4 Jan 2012 23:01
Picon
Favicon
Gravatar

Re: install warning on fedora 16

On 12/24/2011 10:39 PM, Mark Leeds wrote:
> Does anyone know what the problem might be ? Maybe a difference with gcc ?
> It's only a warning but it scares me a little because the variables should
> be getting used contrary to what the warning says.
> Thanks a lot for any hints/suggestions.

Well, I can't find the source code to be sure, but the gcc in F16 is
newer than the ones before it, and each new gcc is usually stricter
about std compliance than the one before. In addition, -std=gnu99 is
being passed as an optflag, which may result in these warnings when they
would not otherwise.

I would look very closely at those variables and be sure there is not a
logic path where they are set but not actually used.

~tom

==
Fedora Project
Mark Leeds | 4 Jan 2012 23:06
Picon

Re: install warning on fedora 16

thanks tom: I've just been letting the error happen and everything seems
fine. When you have a chance, could you explain what you'd like me to do ?
I'd love to look into
it further but I'm not sure what you mean by your last statement. thanks.

On Wed, Jan 4, 2012 at 5:01 PM, Tom Callaway <tcallawa@...> wrote:

> On 12/24/2011 10:39 PM, Mark Leeds wrote:
> > Does anyone know what the problem might be ? Maybe a difference with gcc
> ?
> > It's only a warning but it scares me a little because the variables
> should
> > be getting used contrary to what the warning says.
> > Thanks a lot for any hints/suggestions.
>
> Well, I can't find the source code to be sure, but the gcc in F16 is
> newer than the ones before it, and each new gcc is usually stricter
> about std compliance than the one before. In addition, -std=gnu99 is
> being passed as an optflag, which may result in these warnings when they
> would not otherwise.
>
> I would look very closely at those variables and be sure there is not a
> logic path where they are set but not actually used.
>
> ~tom
>
> ==
> Fedora Project
>

(Continue reading)

Tom Callaway | 4 Jan 2012 23:12
Picon
Favicon
Gravatar

Re: install warning on fedora 16

On 01/04/2012 05:06 PM, Mark Leeds wrote:
> thanks tom: I've just been letting the error happen and everything seems
> fine. When you have a chance, could you explain what you'd like me to do
> ? I'd love to look into
> it further but I'm not sure what you mean by your last statement. thanks.
> 

Look at the gcc invocation lines and the warnings:

gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c ar1_functions.c -o ar1_functions.o
ar1_functions.c: In function ‘calc_ar1_hessian’:
ar1_functions.c:261:10: warning: variable ‘phigrad’ set but not used
[-Wunused-but-set-variable]
ar1_functions.c:260:10: warning: variable ‘alphagrad’ set but not used
[-Wunused-but-set-variable]
ar1_functions.c:259:10: warning: variable ‘betagrad’ set but not used
[-Wunused-but-set-variable]
ar1_functions.c:258:10: warning: variable ‘rhograd’ set but not used
[-Wunused-but-set-variable]
gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c ma1_functions.c -o ma1_functions.o
ma1_functions.c: In function ‘calc_ma1_hessian’:
ma1_functions.c:246:10: warning: variable ‘alphagrad’ set but not used
[-Wunused-but-set-variable]
ma1_functions.c:245:10: warning: variable ‘betagrad’ set but not used
(Continue reading)

Mark Leeds | 4 Jan 2012 23:19
Picon

Re: install warning on fedora 16

thanks a lot tom. I'll read below carefully tomorrow and then do the
associated
investigation. your detailed response is really appreciated.

On Wed, Jan 4, 2012 at 5:12 PM, Tom Callaway <tcallawa@...> wrote:

> On 01/04/2012 05:06 PM, Mark Leeds wrote:
> > thanks tom: I've just been letting the error happen and everything seems
> > fine. When you have a chance, could you explain what you'd like me to do
> > ? I'd love to look into
> > it further but I'm not sure what you mean by your last statement. thanks.
> >
>
> Look at the gcc invocation lines and the warnings:
>
> gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2 -g
> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -c ar1_functions.c -o ar1_functions.o
> ar1_functions.c: In function ‘calc_ar1_hessian’:
> ar1_functions.c:261:10: warning: variable ‘phigrad’ set but not used
> [-Wunused-but-set-variable]
> ar1_functions.c:260:10: warning: variable ‘alphagrad’ set but not used
> [-Wunused-but-set-variable]
> ar1_functions.c:259:10: warning: variable ‘betagrad’ set but not used
> [-Wunused-but-set-variable]
> ar1_functions.c:258:10: warning: variable ‘rhograd’ set but not used
> [-Wunused-but-set-variable]
> gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2 -g
> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
(Continue reading)


Gmane