[sage-devel] FLINT build error on OS X 10.5.5
Hi, I was attempting to build sage 3.1.4 on mac os x 10.5.5 with Xcode 3.1 (gcc 4.2) installed. I get the following error: -- gcc-4.2 -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/include/ -I/Users/ tc/sw/sage-3.1.4/sage-3.1.4/local/include -fPIC -funroll-loops -O3 - c mpn_extras.c -o mpn_extras.o In file included from mpn_extras.c:41: mpn_extras.h: In function ‘F_mpn_negate’: mpn_extras.h:75: error: ‘for’ loop initial declaration used outside C99 mode mpn_extras.h: In function ‘F_mpn_copy’: mpn_extras.h:96: error: ‘for’ loop initial declaration used outside C99 mode mpn_extras.h: In function ‘F_mpn_copy_forward’: mpn_extras.h:104: error: ‘for’ loop initial declaration used outside C99 mode mpn_extras.h: In function ‘F_mpn_clear’: mpn_extras.h:118: error: ‘for’ loop initial declaration used outside C99 mode mpn_extras.h: In function ‘F_mpn_set’: mpn_extras.h:129: error: ‘for’ loop initial declaration used outside C99 mode mpn_extras.h: In function ‘F_mpn_printx’: mpn_extras.h:145: error: ‘for’ loop initial declaration used outside C99 mode mpn_extras.c: In function ‘F_mpn_addmul’: mpn_extras.c:150: error: ‘for’ loop initial declaration used outside C99 mode make[2]: *** [mpn_extras.o] Error 1 Failed to build FLINT dylib. real0m0.116s user0m0.063s sys 0m0.044s sage: An error occurred while installing flint-1.0.13.p0 Please email sage-devel http://groups.google.com/group/sage-devel explaining the problem and send the relevant part of of /Users/tc/sw/sage-3.1.4/sage-3.1.4/install.log. Describe your computer, operating system, etc. If you want to try to fix the problem, yourself *don't* just cd to /Users/tc/sw/sage-3.1.4/sage-3.1.4/spkg/build/flint-1.0.13.p0 and type 'make'. Instead type "/Users/tc/sw/sage-3.1.4/sage-3.1.4/sage -sh" in order to set all environment variables correctly, then cd to /Users/tc/sw/sage-3.1.4/sage-3.1.4/spkg/build/flint-1.0.13.p0 (When you are done debugging, you can type "exit" to leave the subshell.) make[1]: *** [installed/flint-1.0.13.p0] Error 1 Following the directions to start a subshell I went in and re-ran gcc adding the '--std=c99' flag which seems to work. - Sage subshell$ gcc-4.2 -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/ include/ -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/include -fPIC - funroll-loops -O3 -c mpn_extras.c -o mpn_extras.o --std=c99 Sage subshell$ file mpn_extras.o mpn_extras.o: Mach-O object i386 - But I don't know enough about the make/build process to know what to edit to fix this. _Travis_Caldwell_ --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: FLINT build error on OS X 10.5.5
On Oct 19, 12:19 pm, Travis Caldwell <[EMAIL PROTECTED]> wrote: > Hi, Hi Travis, > I was attempting to build sage 3.1.4 on mac os x 10.5.5 with Xcode > 3.1 (gcc 4.2) installed. Did you select gcc 4.2 via gcc_select? I tried building with XCode 3.1 a while ago and at least the gcc 4.0 worked. I am not sure if I tried the gcc 4.2 via gselect. > I get the following error: > > -- > gcc-4.2 -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/include/ -I/Users/ > tc/sw/sage-3.1.4/sage-3.1.4/local/include -fPIC -funroll-loops -O3 - > c mpn_extras.c -o mpn_extras.o > In file included from mpn_extras.c:41: > mpn_extras.h: In function ‘F_mpn_negate’: > mpn_extras.h:75: error: ‘for’ loop initial declaration used outside > C99 mode > mpn_extras.h: In function ‘F_mpn_copy’: > mpn_extras.h:96: error: ‘for’ loop initial declaration used outside > C99 mode > mpn_extras.h: In function ‘F_mpn_copy_forward’: > mpn_extras.h:104: error: ‘for’ loop initial declaration used outside > C99 mode > mpn_extras.h: In function ‘F_mpn_clear’: > mpn_extras.h:118: error: ‘for’ loop initial declaration used outside > C99 mode > mpn_extras.h: In function ‘F_mpn_set’: > mpn_extras.h:129: error: ‘for’ loop initial declaration used outside > C99 mode > mpn_extras.h: In function ‘F_mpn_printx’: > mpn_extras.h:145: error: ‘for’ loop initial declaration used outside > C99 mode > mpn_extras.c: In function ‘F_mpn_addmul’: > mpn_extras.c:150: error: ‘for’ loop initial declaration used outside > C99 mode > make[2]: *** [mpn_extras.o] Error 1 > Failed to build FLINT dylib. > > real 0m0.116s > user 0m0.063s > sys 0m0.044s > sage: An error occurred while installing flint-1.0.13.p0 > Please email sage-develhttp://groups.google.com/group/sage-devel > explaining the problem and send the relevant part of > of /Users/tc/sw/sage-3.1.4/sage-3.1.4/install.log. Describe your > computer, operating system, etc. > If you want to try to fix the problem, yourself *don't* just cd to > /Users/tc/sw/sage-3.1.4/sage-3.1.4/spkg/build/flint-1.0.13.p0 and type > 'make'. > Instead type "/Users/tc/sw/sage-3.1.4/sage-3.1.4/sage -sh" > in order to set all environment variables correctly, then cd to > /Users/tc/sw/sage-3.1.4/sage-3.1.4/spkg/build/flint-1.0.13.p0 > (When you are done debugging, you can type "exit" to leave the > subshell.) > make[1]: *** [installed/flint-1.0.13.p0] Error 1 > > > > Following the directions to start a subshell I went in and re-ran gcc > adding the '--std=c99' flag which seems to work. Are you setting CFLAGS or anything like that? > - > Sage subshell$ gcc-4.2 -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/ > include/ -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/include -fPIC - > funroll-loops -O3 -c mpn_extras.c -o mpn_extras.o --std=c99 > Sage subshell$ file mpn_extras.o > mpn_extras.o: Mach-O object i386 > > - > > But I don't know enough about the make/build process to know what to > edit to fix this. > > _Travis_Caldwell_ Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: Heaviside step and impulse functions
Obviously, the intent is not just to have the function for certain values, but to employ other powers of sage, including differentiation and integration (not forgetting that the step function is the integrated delta function). There are, though some other problems with implementing those, including lack of support in the packages sage uses (there's some support for it in maxima, through the laplace transform). Yet, some stuff might be hard to implement, notably plotting, which is very useful. Currently, usage of lots of step functions is easier with numerical data, but that still isn't optimal for some applications. Ronan --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: FLINT build error on OS X 10.5.5
On Oct 19, 1:33 pm, mabshoff <[EMAIL PROTECTED]> wrote: > On Oct 19, 12:19 pm, Travis Caldwell <[EMAIL PROTECTED]> > wrote: > > > Hi, > > Hi Travis, > > > I was attempting to build sage 3.1.4 on mac os x 10.5.5 with Xcode > > 3.1 (gcc 4.2) installed. > > Did you select gcc 4.2 via gcc_select? I tried building with XCode 3.1 > a while ago and at least the gcc 4.0 worked. I am not sure if I tried > the gcc 4.2 via gselect. > I just tried: make CC=gcc-4.2 I'm not familiar with gcc_select. The only reason that I tried building with gcc 4.2 was that the readme implied that gcc 4.0 was seriously broken. > > > > I get the following error: > > > -- > > gcc-4.2 -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/include/ -I/Users/ > > tc/sw/sage-3.1.4/sage-3.1.4/local/include -fPIC -funroll-loops -O3 - > > c mpn_extras.c -o mpn_extras.o > > In file included from mpn_extras.c:41: > > mpn_extras.h: In function ‘F_mpn_negate’: > > mpn_extras.h:75: error: ‘for’ loop initial declaration used outside > > C99 mode > > mpn_extras.h: In function ‘F_mpn_copy’: > > mpn_extras.h:96: error: ‘for’ loop initial declaration used outside > > C99 mode > > mpn_extras.h: In function ‘F_mpn_copy_forward’: > > mpn_extras.h:104: error: ‘for’ loop initial declaration used outside > > C99 mode > > mpn_extras.h: In function ‘F_mpn_clear’: > > mpn_extras.h:118: error: ‘for’ loop initial declaration used outside > > C99 mode > > mpn_extras.h: In function ‘F_mpn_set’: > > mpn_extras.h:129: error: ‘for’ loop initial declaration used outside > > C99 mode > > mpn_extras.h: In function ‘F_mpn_printx’: > > mpn_extras.h:145: error: ‘for’ loop initial declaration used outside > > C99 mode > > mpn_extras.c: In function ‘F_mpn_addmul’: > > mpn_extras.c:150: error: ‘for’ loop initial declaration used outside > > C99 mode > > make[2]: *** [mpn_extras.o] Error 1 > > Failed to build FLINT dylib. > > > real 0m0.116s > > user 0m0.063s > > sys 0m0.044s > > sage: An error occurred while installing flint-1.0.13.p0 > > Please email sage-develhttp://groups.google.com/group/sage-devel > > explaining the problem and send the relevant part of > > of /Users/tc/sw/sage-3.1.4/sage-3.1.4/install.log. Describe your > > computer, operating system, etc. > > If you want to try to fix the problem, yourself *don't* just cd to > > /Users/tc/sw/sage-3.1.4/sage-3.1.4/spkg/build/flint-1.0.13.p0 and type > > 'make'. > > Instead type "/Users/tc/sw/sage-3.1.4/sage-3.1.4/sage -sh" > > in order to set all environment variables correctly, then cd to > > /Users/tc/sw/sage-3.1.4/sage-3.1.4/spkg/build/flint-1.0.13.p0 > > (When you are done debugging, you can type "exit" to leave the > > subshell.) > > make[1]: *** [installed/flint-1.0.13.p0] Error 1 > > > > > > Following the directions to start a subshell I went in and re-ran gcc > > adding the '--std=c99' flag which seems to work. > > Are you setting CFLAGS or anything like that? > > > - > > Sage subshell$ gcc-4.2 -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/ > > include/ -I/Users/tc/sw/sage-3.1.4/sage-3.1.4/local/include -fPIC - > > funroll-loops -O3 -c mpn_extras.c -o mpn_extras.o --std=c99 > > Sage subshell$ file mpn_extras.o > > mpn_extras.o: Mach-O object i386 > > > - > > > But I don't know enough about the make/build process to know what to > > edit to fix this. > > > _Travis_Caldwell_ > > Cheers, > > Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---