[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Mark Dickinson
Mark Dickinson added the comment: Many thanks. Looks like no double rounding then; that's good news. (32-bit Linux on x86 typically produces 10...0004.0 for this example). -- ___ Python tracker __

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
Alan Hourihane added the comment: GCC was munging math.h when it did fixincludes. I'm fixing the GCC port now. Result of 1e16+2.9 is... 10002.00 -- ___ Python tracker _

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Mark Dickinson
Mark Dickinson added the comment: I'm glad you sorted it out. :) Any chance you could tell us what the fix was, in case anyone else runs into something similar? Or is that unlikely to happen? Also, while you're there, I have a favour to ask: could you tell me what the result of doing >>>

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
Alan Hourihane added the comment: It's ok, I see what the problem is. It's GCC's headers that are causing trouble. Closing. -- status: open -> closed ___ Python tracker ___

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Mark Dickinson
Mark Dickinson added the comment: > Note that cmathmodule.c compiles fine and that does reference > log1p() too. Now that's *really* peculiar. I can't imagine why one would work and the other not. Some ideas about how to proceed from here: - try doing a debug build (./configure --with-pydebu

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
Alan Hourihane added the comment: Ah. right. I see what you mean about the macro expansion. So I'm on an Atari FreeMiNT platform which is an m68k box which has no shared libraries so I'm setting up for static only via Setup.dist. Note that cmathmodule.c compiles fine and that does reference lo

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Mark Dickinson
Mark Dickinson added the comment: It might also be helpful if you could tell me how you're building Python (what configure options, etc.), and which version of the source you have---is this the 2.6.2 tarball from python.org, or a recent svn; if the latter, which revision? Thanks! --

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Mark Dickinson
Mark Dickinson added the comment: math_log1p should be produced by the line FUNC1(log1p, log1p, 1, ... FUNC1 is a macro that (in this instance) creates the math_log1p function. The original error message that you posted seems to say that it's log1p that's undeclared, not math_log1p. It's str

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
Alan Hourihane added the comment: I do have log1p() available... checking for log1p... yes And it's in math.h and libm.a on my system. I still can't see any reference to math_log1p() in mathmodule.c which is why it's barfing. -- ___ Python tracker

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report. Could you please tell me what platform you're on? And does the configure script detect that log1p is available? (There should be a line in the (stdout) output of the configure script that looks something like: checking for log1p... yes

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
New submission from Alan Hourihane : mathmodule.c fails to compile because math_log1p() is missing in mathmodule.c... gcc -fno-strict-aliasing -DNDEBUG -O2 -pipe -fomit-frame-pointer -I. -IInclude -I./Include -DPy_BUILD_CORE -c ./Modules/mathmodule.c -o Modules/mathmodule.o ./Modules/mathmod