bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: Re: Glpk 5.0 compilation on Linux (ubuntu) Mint 19]


From: Andrew Makhorin
Subject: [Fwd: Re: Glpk 5.0 compilation on Linux (ubuntu) Mint 19]
Date: Fri, 03 Sep 2021 04:44:20 +0300

-------- Forwarded Message --------
From: Andrew Makhorin <mao@gnu.org>
To: João Flávio de Freitas Almeida <joaoflavio.ufmg@gmail.com>
Cc: bug_glpk@gnu.org
Subject: Re: Glpk 5.0 compilation on Linux (ubuntu) Mint 19
Date: Fri, 03 Sep 2021 04:42:10 +0300

> Hi João,
> 
> Thank you for your report.
> 
> 
> 
> On Thu, 2021-09-02 at 18:38 -0300, João Flávio de Freitas Almeida
> wrote:
> > Dear Andrew,
> > 
> > I was compiling Glpk 5.0 on linux and this red message appeared. I
> > don't know the meaning and it did not compromise the compilation,
> > but
> > I thought you would like to know that "something" happened. 
> > 
> > /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
> > -I.
> > -I..  -I. -I./amd -I./api -I./bflib -I./colamd -I./draft -I./env
> > -I./intopt -I./minisat -I./misc -I./mpl -I./npp -I./proxy
> > -I./simplex
> > -I./zlib   -g -O2 -MT libglpk_la-wclique1.lo -MD -MP -MF
> > .deps/libglpk_la-wclique1.Tpo -c -o libglpk_la-wclique1.lo `test -f
> > 'misc/wclique1.c' || echo './'`misc/wclique1.c
> > libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./amd -I./api
> > -I./bflib -I./colamd -I./draft -I./env -I./intopt -I./minisat
> > -I./misc
> > -I./mpl -I./npp -I./proxy -I./simplex -I./zlib -g -O2 -MT
> > libglpk_la-
> > wclique1.lo -MD -MP -MF .deps/libglpk_la-wclique1.Tpo -c
> > misc/wclique1.c  -fPIC -DPIC -o .libs/libglpk_la-wclique1.o
> > In file included from ./env/stdc.h:35,
> >                  from ./env/env.h:25,
> >                  from misc/wclique1.c:22:
> > 
> > In function 'memset',
> >     inlined from '_glp_wclique1' at misc/wclique1.c:111:7:
> > /usr/include/fortify/string.h:72:9: warning: '__builtin_memset'
> > specified bound between 18446744071562067968 and
> > 18446744073709551615
> > exceeds maximum object size 9223372036854775807 [-Wstringop-
> > overflow=]
> >    72 |  return __builtin_memset(__d, __c, __n);
> >       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > In function 'memset',
> >     inlined from '_glp_wclique1' at misc/wclique1.c:113:7:
> > /usr/include/fortify/string.h:72:9: warning: '__builtin_memset'
> > specified bound between 18446744071562067968 and
> > 18446744073709551615
> > exceeds maximum object size 9223372036854775807 [-Wstringop-
> > overflow=]
> >    72 |  return __builtin_memset(__d, __c, __n);
> >       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 
> > libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./amd -I./api
> > -I./bflib -I./colamd -I./draft -I./env -I./intopt -I./minisat
> > -I./misc
> > -I./mpl -I./npp -I./proxy -I./simplex -I./zlib -g -O2 -MT
> > libglpk_la-
> > wclique1.lo -MD -MP -MF .deps/libglpk_la-wclique1.Tpo -c
> > misc/wclique1.c -o libglpk_la-wclique1.o >/dev/null 2>&1
> > mv -f .deps/libglpk_la-wclique1.Tpo .deps/libglpk_la-wclique1.Plo
> > 
> > Bests,
> > --
> > João Flávio de Freitas Almeida
> 
> 
> There is no bug. It looks like a compiler warning. If you look at the
> context misc/wclique1.c:113:7:
> 
>       memset(&skip[1], 0, sizeof(char) * n);
> 
> you may note that if n (declared as int) were negative, it would be
> converted to unsigned int due to sizeof, in which case its value would
> be inappropriate. However, n is always non-negative here, so this may
> never happen.
> 
> 
> 
> Andrew Makhorin
> 
> 
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]