Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include 64-bit OS X gfortran in standard SAge #6981

Closed
williamstein opened this issue Sep 22, 2009 · 17 comments
Closed

include 64-bit OS X gfortran in standard SAge #6981

williamstein opened this issue Sep 22, 2009 · 17 comments

Comments

@williamstein
Copy link
Contributor

This will make the tarball bigger (by 24MB), but is the only way to go at present. With this one spkg update, building Sage 64-bit on OS X will be as simple as typing:

export SAGE64="yes"
make

Component: packages: standard

Author: William Stein

Reviewer: John Palmieri

Merged: Sage 4.1.2.alpha4

Issue created by migration from https://trac.sagemath.org/ticket/6981

@williamstein williamstein added this to the sage-4.1.2 milestone Sep 22, 2009
@williamstein
Copy link
Contributor Author

@jhpalmieri
Copy link
Member

comment:2

For the 64-bit version, is there a reason to copy a big bzipped tar file to SAGE_LOCAL? If not, then I think that in the file [{{/src/gfortran/fortran-OSX64-20090120/spkg-install}}}, the lines

cp src/gfortran-4.2.3.tar.bz2 $SAGE_LOCAL
cd $SAGE_LOCAL; tar -xjf gfortran-4.2.3.tar.bz2 -C .

should be changed to something like

cd $SAGE_LOCAL; tar -xjf $CUR/gfortran-4.2.3.tar.bz2 -C .

Also, there should be a message about the 64-bit version being installed: in the main spkg-install file, the function install_fortran_osx64 could start with a message like

print "Installing OSX 64-bit gfortran compiler"

Some people who are sticklers might complain about the format of SPGK.txt, but I don't care that much.

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 22, 2009

Author: William Stein

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 22, 2009

comment:3

Replying to @jhpalmieri:

For the 64-bit version, is there a reason to copy a big bzipped tar file to SAGE_LOCAL? If not, then I think that in the file [{{/src/gfortran/fortran-OSX64-20090120/spkg-install}}}, the lines

cp src/gfortran-4.2.3.tar.bz2 $SAGE_LOCAL
cd $SAGE_LOCAL; tar -xjf gfortran-4.2.3.tar.bz2 -C .

should be changed to something like

cd $SAGE_LOCAL; tar -xjf $CUR/gfortran-4.2.3.tar.bz2 -C .

Done. I have added your reviewer comment to src/gfortran/fortran-OSX64-20090120/spkg-install and committed this change in your name.

Also, there should be a message about the 64-bit version being installed: in the main spkg-install file, the function install_fortran_osx64 could start with a message like

print "Installing OSX 64-bit gfortran compiler"

Done. This line is now in the main spkg-install. The change has been committed in your name.

Some people who are sticklers might complain about the format of SPGK.txt, but I don't care that much.

Also taken care of. An updated spkg with reviewer changes can be found at

http://sage.math.washington.edu/home/mvngu/release/spkg/standard/fortran-20071120.p6.spkg

I'm reviewing the actual building of that package now. You're more than welcome to try building Sage 4.1.2.alpha2 from source with this updated Fortran package. The more the merrier :-)

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 22, 2009

comment:4

Replying to @jhpalmieri:

For the 64-bit version, is there a reason to copy a big bzipped tar file to SAGE_LOCAL? If not, then I think that in the file [{{/src/gfortran/fortran-OSX64-20090120/spkg-install}}}, the lines

cp src/gfortran-4.2.3.tar.bz2 $SAGE_LOCAL
cd $SAGE_LOCAL; tar -xjf gfortran-4.2.3.tar.bz2 -C .

should be changed to something like

cd $SAGE_LOCAL; tar -xjf $CUR/gfortran-4.2.3.tar.bz2 -C .

This results in the following error:

tar (child): /Volumes/LACIE/scratch/mvngu/sandbox-32/sage-4.1.2.alpha2/spkg/build/fortran-20071120.p6/src/gfortran/fortran-OSX64-20090120/gfortran-4.2.3.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Installing OS X 64-bit gfortran compiler






**********************************************************************






Error installing Fortran: Error installing OS X 64-bit gfortran

The actual command should be

cd $SAGE_LOCAL; tar -xjf $CUR/src/gfortran-4.2.3.tar.bz2 -C .

Notice the "src" part. The updated spkg includes this fix.

@jhpalmieri
Copy link
Member

comment:5

Mac OS 10.5: open a new terminal (and doublecheck that SAGE64 is not set). Untar sage-4.1.2.alpha2 and replace the fortran package there with the new one. Type 'make' and wait: I see

Installing OS X 64-bit gfortran compiler

I don't know why...

@williamstein
Copy link
Contributor Author

@jhpalmieri
Copy link
Member

comment:7

Almost perfect. To make it perfect, I would like to see this change from mvngu's version re-incorporated:

Also, there should be a message about the 64-bit version being installed: in the main spkg-install file, the function install_fortran_osx64 could start with a message like

print "Installing OSX 64-bit gfortran compiler"

@williamstein
Copy link
Contributor Author

comment:8

OK, I refreshed the spkg with that.

@jhpalmieri
Copy link
Member

comment:9

Looks good to me. The SPKG.txt file isn't in the right format, but I don't care.

@williamstein
Copy link
Contributor Author

comment:10

I've made a major improvement to how this spkg detects "64 bit" so it will work when building Sage on OS X 10.6 without explicitly specifying SAGE64. Instead of using that flag it simply checks the bitness of Python. Without this we would get a 32-bit compiler, which is completely wrong.

New spkg: http://sage.math.washington.edu/home/wstein/patches/fortran-20071120.p8.spkg

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 27, 2009

comment:11

New spkg up at

http://sage.math.washington.edu/home/mvngu/release/spkg/standard/fortran-20071120.p9.spkg

The only changes from .p8 are:

  • remove junk files: spkg-install~ and SPKG.txt~
  • add info to SPKG.txt

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 27, 2009

Merged: Sage 4.1.2.alpha3

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 27, 2009

Reviewer: John Palmieri

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 27, 2009

comment:12

See palmieri's and my reports at #6849.

@sagetrac-mvngu sagetrac-mvngu mannequin closed this as completed Sep 27, 2009
@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 27, 2009

Changed merged from Sage 4.1.2.alpha3 to Sage 4.1.2.alpha4

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 27, 2009

comment:13

There is no 4.1.2.alpha3. Sage 4.1.2.alpha3 was William Stein's release for working on making the notebook a standalone package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants