2009/9/6 John H Palmieri <[email protected]>: > > > > On Sep 6, 12:58 pm, John H Palmieri <[email protected]> wrote: >> On Sep 5, 11:18 pm, Minh Nguyen <[email protected]> wrote: >> >> > Hi David, >> >> > On Sat, Sep 5, 2009 at 9:58 PM, Dr. David Kirkby<[email protected]> >> > wrote: >> >> > <SNIP> >> >> > An updated spkg can be found at >> >> >http://sage.math.washington.edu/home/mvngu/release/spkg/standard/ecl-... >> >> > and am now testing it under various platforms. >> >> Using this, I can build successfully on Mac OS X 10.5, 32-bit, but not >> 64-bit. > > Well, now it seems to have built on 64-bit as well. It doesn't work > if I first execute > > export MAKE='make -j2' > > but it works if MAKE='make'. Here's the tail end of the installation > with MAKE='make -j2'; I think I get a similar error with 32-bit or 64- > bit, but this is from the 64-bit attempt: >
John, I'm not convinced that is building a 64-bit version. This is based on 2 things. 1) CFLAGS is set to -m64 in that .spkg, but not exported, so -m64 is not added to the build compile line. 2) The main ECL developer has said on the ECL list that -m64 will break it, but he added an ABI option which is only effective on OS X, but will not hurt on other platforms. It is not however clear if that ABI option is in ECL 9.8.4, or only in the CVS. I tried setting ABI=64, and that fails, but I note there is a warning that the only two values accepted for ABI are 'long' and 'longlong'. I am going to suggest he permit 32 or 64 too, or if not, throw an error, rather than a warning, if ABI is set to a non-standard value. I tried setting the ABI to 'longlong', but I'm not convinced that is making a 64-bit build, as I never see '-m64' on any compile line at all. Also when I run file ./local/lib/libecl.9.8.4.dylib to see if it has created a 64-bit library, it does not appear to me at has. It says: ./local/lib/libecl.9.8.4.dylib: Mach-O dynamically linked shared library i386 whereas for other libraries 'file' reports: ./local/lib/libzn_poly.dylib: Mach-O 64-bit dynamically linked shared library x86_64 I'd be intersted what you get if you run 'file' on the library. I believe you will find you are generating a 32-bit library, not the 64-bit you think you are. I've created another .spkg file, which fixes some issues in the previous ones posted. It also unsets 'make' so you should find a parallel build will not break ECL, as it ignores the '-j2' now. The new .spkg can be found here: http://sage.math.washington.edu/home/kirkby/Solaris-fixes/ecl-9.8.4.p0-5th-attempt/ecl-9.8.4.p0.spkg but note it is not building a 64-bit version properly. I've set the ABI to 'longlong' but it is NOT making a 64-bit library. I do not know if * One is supposed to add -m64 and set ABI to longlong. * Whether the ABI code is actually present in the version of ECL we are using. Whatever we need to build a 64-bit library on OS X, I don't think it is as simple as just changing the configure line as in Minh's file. It needs something else. Dave --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
