================================================== == == PROBLEM: Bailey's quad double == (Workaround from Mike Rubinstein) ================================================== Hi William. I came across a funny compilation bug that will affect some people who try to compile sage. I happened to have Bailey's quad double package installed on one of my machines. It has an include file: /usr/local/include/qd/qd.h Line 30 of /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h is coincidentally: #include which conflicts with Bailey's /usr/local/include/qd/qd.h (it also appears that mac os x is not case sensitive). The ApplicationServices.h header file is included at some point during the make. See below. Temporarily removing Bailey's include file solved the problem, but that's not a good solution for the typical user (especially someone who doesn't have root access). You might want to make a work around, or at least point this out somewhere. Best, Mike ============================================================= Here is what eventually happened when I tried to make sage: (lots of stuff deleted) gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Python/sysmodule.o Python/sysmodule.c gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Python/traceback.o Python/traceback.c gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Python/getopt.o Python/getopt.c gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Python/pystrtod.o Python/pystrtod.c gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Python/dynload_shlib.o Python/dynload_shlib.c gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Python/mactoolboxglue.o Python/mactoolboxglue.c In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30, <===== problem here, Mike from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24, from ./Include/pymactoolbox.h:10, from Python/mactoolboxglue.c:27: /usr/local/include/QD/QD.h:26:20: error: iostream: No such file or directory In file included from /usr/local/include/QD/QD.h:28, from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30, from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24, from ./Include/pymactoolbox.h:10, from Python/mactoolboxglue.c:27: /usr/local/include/qd/dd.h:35: error: parse error before 'dd_real' /usr/local/include/qd/dd.h:35: error: syntax error before '{' token /usr/local/include/qd/dd.h:42: error: parse error before '_pi16' /usr/local/include/qd/dd.h:43: error: parse error before 'sin_table' /usr/local/include/qd/dd.h:44: error: parse error before 'cos_table' /usr/local/include/qd/dd.h:46: error: parse error before ':' token /usr/local/include/qd/dd.h:50: error: parse error before ':' token etc (make failed) ================================================== == == PROBLEM: I can't install a certain package. == ================================================== > I downloaded the current Sage source from > > http://modular.math.washington.edu/sage/dist/src/sage-1.3.6.2.tar > > and attempted a build on our main axiom server. This is a shared > virtual host running: > > $ uname -a > Linux axiom-developer.org 2.6.16.14-RH202rc19 #3 SMP > Sun May 7 18:39:41 CDT 2006 i686 i686 i386 GNU/Linux > > with > > $ gcc --version > gcc (GCC) 3.4.4 > > Unfortunately, the build fails apparently when trying to run > clisp for the first time with the message: > > Cannot map memory to address 0x68087000 . > [spvw_mmap.d:359] errno = ENOMEM: Not enough memory. > > Do you have any suggestions for how I can complete this build? Just don't bother to build clisp. Make sure you have it installed on the machine somehow (e.g., from binary), then from the SAGE_ROOT directory, type touch spkg/installed/clisp-2.38.p1 and SAGE will skip building clisp and go on. NOTE -- when the clisp package gets upgraded later, if you do a "sage -upgrade", you'll have to do a similar touch. I'll find a good way to make it so packages are skipped in all future builds (I just haven't done that yet). If you also want to skip building maxima (if, e.g., you don't have lisp), type touch spkg/installed/maxima-5.9.3 If you do this, make sure you have maxima 5.9.3 installed on your system, though. > Thank you very much for making this exciting new computer > algebra system available as open source. You're very welcome! Any and all feedback will be greatly appreciated. -- William ================================================== == == PROBLEM: SAGE won't start even though the install == works fine. I get this error message: == == ImportError: /usr/local/sage-1.3.6/local/lib/libpari-gmp.so.2: cannot == restore segment prot after reloc: Permission denied == ================================================== Your problem is SE Linux. Try googling it or see: http://www.ittvis.com/services/techtip.asp?ttid=3092