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. real 0m0.116s user 0m0.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 -~----------~----~----~----~------~----~------~--~---