Re: signbit issues

2016-09-29 Thread Vlad Zakharov
Hello, I found the same issue as discussed in this thread. I tried to build "lftp" package for both ARC and ARM architectures using GCC 6.2 and an error occurred: -->8 ../lib/math.h:2577:1: error: ‘int signbit(float)’ conflicts

Re: signbit issues

2016-02-20 Thread Paul Eggert
Orion Poplawski wrote: Some comments from fedora-devel: https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/ Thanks, I didn't understand those comments about #defining signbit to 1, but it does appear that the recent patch shou

Re: signbit issues

2016-02-19 Thread Paul Eggert
Orion Poplawski wrote: That appears to do the trick. Thanks. OK, I installed that. Savannah is currently very slow, so it may take a while for you to get it.

Re: signbit issues

2016-02-19 Thread Orion Poplawski
On 02/19/2016 03:56 PM, Paul Eggert wrote: > On 02/19/2016 01:05 PM, Orion Poplawski wrote: >> It appears that if gnulib detects the "signbit compiler built-ins" it insists >> on using them. > It sounds like lib/math.in.h should be changed to not use the builtins when > compiling C++. Does the atta

Re: signbit issues

2016-02-19 Thread Paul Eggert
On 02/19/2016 01:05 PM, Orion Poplawski wrote: It appears that if gnulib detects the "signbit compiler built-ins" it insists on using them. It sounds like lib/math.in.h should be changed to not use the builtins when compiling C++. Does the attached patch fix your problem, and if not, can you su

Re: signbit issues

2016-02-19 Thread Orion Poplawski
On 02/19/2016 12:45 PM, Paul Eggert wrote: > On 02/19/2016 11:32 AM, Orion Poplawski wrote: >> g++ -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 -MT foobar.o -MD -MP -MF >> .deps/foobar.Tpo -c -o foobar.o foobar.cpp >> In file included from foobar.cpp:3:0: >> ../lib/math.h: In function ‘int signbit(f

Re: signbit issues

2016-02-19 Thread Orion Poplawski
On 02/19/2016 12:45 PM, Paul Eggert wrote: > On 02/19/2016 11:32 AM, Orion Poplawski wrote: >> g++ -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 -MT foobar.o -MD -MP -MF >> .deps/foobar.Tpo -c -o foobar.o foobar.cpp >> In file included from foobar.cpp:3:0: >> ../lib/math.h: In function ‘int signbit(f

Re: signbit issues

2016-02-19 Thread Paul Eggert
On 02/19/2016 11:32 AM, Orion Poplawski wrote: g++ -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 -MT foobar.o -MD -MP -MF .deps/foobar.Tpo -c -o foobar.o foobar.cpp In file included from foobar.cpp:3:0: ../lib/math.h: In function ‘int signbit(float)’: ../lib/math.h:2576:1: error: ‘int signbit(float

Re: signbit issues

2016-02-19 Thread Orion Poplawski
On 02/19/2016 11:39 AM, Paul Eggert wrote: > On 02/18/2016 10:52 AM, Orion Poplawski wrote: >> Any ideas anyone? > > I'm afraid I don't understand your email, as it's ouit of context. Perhaps you > could try sending another email with a complete, self-contained test case > illustrating the bug. O

Re: signbit issues

2016-02-19 Thread Paul Eggert
On 02/18/2016 10:52 AM, Orion Poplawski wrote: Any ideas anyone? I'm afraid I don't understand your email, as it's ouit of context. Perhaps you could try sending another email with a complete, self-contained test case illustrating the bug.

Re: signbit issues

2016-02-18 Thread Orion Poplawski
On 02/07/2016 02:59 PM, Orion Poplawski wrote: > With a simple: > > #include > #include > #include > > int main(int argc,char **argv) { > } > > I'm able to reproduce the compile error: > > g++ -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 -MT foobar.o -MD -MP -MF > .deps/foobar.Tpo -c -o fooba

Re: signbit issues

2016-02-07 Thread Mike Miller
On Fri, Feb 05, 2016 at 16:38:08 -0700, Orion Poplawski wrote: > I'm afraid I'm not very experience with automake/autoconf so perhaps I've > messed something else up. > > $ cat configure.ac > AC_INIT(test, 1.0, or...@nwra.com) > AC_CONFIG_SRCDIR(src/foobar.cpp) > AM_INIT_AUTOMAKE > AC_PROG_CC > gl

Re: signbit issues

2016-02-07 Thread Orion Poplawski
On 02/07/2016 01:56 PM, Mike Miller wrote: On Fri, Feb 05, 2016 at 16:38:08 -0700, Orion Poplawski wrote: I'm afraid I'm not very experience with automake/autoconf so perhaps I've messed something else up. $ cat configure.ac AC_INIT(test, 1.0, or...@nwra.com) AC_CONFIG_SRCDIR(src/foobar.cpp) AM

signbit issues

2016-02-05 Thread Orion Poplawski
I'm trying to track down a possible issue with gnulib signbit and gcc 6 as reported here: https://savannah.gnu.org/bugs/index.php?47073 In file included from /usr/include/suitesparse/cs.h:5:0, from ./util/oct-sparse.h:77, from array/CSparse.cc:55: ../libgnu/math.h: In function 'int signbit(float)