Hi, small update on GCC 4.4 compilation, I managed to walk around ICE in snapshot and compile up to place where Singular fails because of use of strchr in 2 places, i.e. it uses "char * strchr(const char*, int)" while from version 4.4 gcc allows only "const char* strchr(const char*, int)" or "char* strchr(char*, int)" as described in http://gcc.gnu.org/gcc-4.4/porting_to.html and stops with:
error: invalid conversion from "const char*" to "char*" I wonder how it is that it works on any gcc 4.4 platform with above - anyway will try to build it tomorrow again and probably open ticked with some patches that were required, or attach to some current ticked depending what it will be... cheers, Andrzej. On Sun, May 31, 2009 at 2:12 PM, gsw <georgswe...@googlemail.com> wrote: > > Hi all, > > On 30 Mai, 16:34, William Stein <wst...@gmail.com> wrote: >> Hello, >> >> I have release sage-4.0. It's now available athttp://sagemath.org/src/. >> Binaries will follow in a day. >> >> William >> >> -- >> William Stein >> Associate Professor of Mathematics >> University of Washingtonhttp://wstein.org > > there seems to be a sporadic bug in the Sage-4.x series with libpng, > that already had been reported once by John H Palmieri for > Sage-4.0.rc0 (see the thread there): > > sage -t -long "devel/sage/sage/graphs/graph_plot.py" > libpng error: Image width or height is zero in IHDR > libpng error: Image width or height is zero in IHDR > ********************************************************************** > File "/Users/Shared/sage/sage-4.0/devel/sage/sage/graphs/ > graph_plot.py", line 349: > sage: GP.plot() > Exception raised: > Traceback (most recent call last): > File "/Users/Shared/sage/sage-4.0/local/bin/ncadoctest.py", line > 1231, in run_one_test > self.run_one_example(test, example, filename, compileflags) > File "/Users/Shared/sage/sage-4.0/local/bin/sagedoctest.py", > line 38, in run_one_example > OrigDocTestRunner.run_one_example(self, test, example, > filename, compileflags) > File "/Users/Shared/sage/sage-4.0/local/bin/ncadoctest.py", line > 1172, in run_one_example > compileflags, 1) in test.globs > File "<doctest __main__.example_4[6]>", line 1, in <module> > GP.plot()###line 349: > sage: GP.plot() > File "sage_object.pyx", line 98, in > sage.structure.sage_object.SageObject.__repr__ (sage/structure/ > sage_object.c:1321) > File "/Users/Shared/sage/sage-4.0/local/lib/python2.5/site- > packages/sage/plot/plot.py", line 861, in _repr_ > self.show() > File "/Users/Shared/sage/sage-4.0/local/lib/python2.5/site- > packages/sage/plot/plot.py", line 1278, in show > hgridlinesstyle=hgridlinesstyle) > File "/Users/Shared/sage/sage-4.0/local/lib/python2.5/site- > packages/sage/plot/plot.py", line 1610, in save > canvas.print_figure(filename, dpi=dpi) > File "/Users/Shared/sage/sage-4.0/local/lib/python/site-packages/ > matplotlib/backend_bases.py", line 1453, in print_figure > **kwargs) > File "/Users/Shared/sage/sage-4.0/local/lib/python/site-packages/ > matplotlib/backends/backend_agg.py", line 334, in print_png > filename_or_obj, self.figure.dpi) > RuntimeError: Error building image > ********************************************************************** > File "/Users/Shared/sage/sage-4.0/devel/sage/sage/graphs/ > graph_plot.py", line 351: > sage: GP.plot() > Exception raised: > Traceback (most recent call last): > File "/Users/Shared/sage/sage-4.0/local/bin/ncadoctest.py", line > 1231, in run_one_test > self.run_one_example(test, example, filename, compileflags) > File "/Users/Shared/sage/sage-4.0/local/bin/sagedoctest.py", > line 38, in run_one_example > OrigDocTestRunner.run_one_example(self, test, example, > filename, compileflags) > File "/Users/Shared/sage/sage-4.0/local/bin/ncadoctest.py", line > 1172, in run_one_example > compileflags, 1) in test.globs > File "<doctest __main__.example_4[8]>", line 1, in <module> > GP.plot()###line 351: > sage: GP.plot() > File "sage_object.pyx", line 98, in > sage.structure.sage_object.SageObject.__repr__ (sage/structure/ > sage_object.c:1321) > File "/Users/Shared/sage/sage-4.0/local/lib/python2.5/site- > packages/sage/plot/plot.py", line 861, in _repr_ > self.show() > File "/Users/Shared/sage/sage-4.0/local/lib/python2.5/site- > packages/sage/plot/plot.py", line 1278, in show > hgridlinesstyle=hgridlinesstyle) > File "/Users/Shared/sage/sage-4.0/local/lib/python2.5/site- > packages/sage/plot/plot.py", line 1610, in save > canvas.print_figure(filename, dpi=dpi) > File "/Users/Shared/sage/sage-4.0/local/lib/python/site-packages/ > matplotlib/backend_bases.py", line 1453, in print_figure > **kwargs) > File "/Users/Shared/sage/sage-4.0/local/lib/python/site-packages/ > matplotlib/backends/backend_agg.py", line 334, in print_png > filename_or_obj, self.figure.dpi) > RuntimeError: Error building image > ********************************************************************** > 1 items had failures: > 2 of 18 in __main__.example_4 > ***Test Failed*** 2 failures. > For whitespace errors, see the file /Users/Shared/sage/sage-4.0/ > tmp/.doctest_graph_plot.py > [12.4 s] > > > This was in a "make testlong" run for Sage-4.0, but when I reran "sage > -t -long" for this specific file ten times, it did not occur again: > > /Users/Shared/sage/sage-4.0 georgweber$ sage -t -long $SAGE_ROOT/devel/ > sage/sage/graphs/graph_plot.py > sage -t -long "devel/sage/sage/graphs/graph_plot.py" > [13.9 s] > > ---------------------------------------------------------------------- > All tests passed! > Total time for all tests: 13.9 seconds > > And it also did *not* occur when I had tested Sage-4.0.rc2 with "MAKE > testlong". John was using a Mac with OS X 10.5, I saw it on a MacIntel > with OS X 10.4, so this might be OS X specific. Or a timing issue/race > condition (I was using MAKE='make -j2'; both for Sage-4.0.rc2 and > Sage-4.0). Or whatsoever. > > Any thoughts? Should I open a ticket? > > Cheers, > gsw > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---