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

Request for adding gfortran #2

Open
bug-fixed opened this issue Apr 18, 2015 · 4 comments
Open

Request for adding gfortran #2

bug-fixed opened this issue Apr 18, 2015 · 4 comments
Assignees

Comments

@bug-fixed
Copy link

Hi, @jlinoff , thank you very much for these scripts! It helps me a lot and saves me a lot of time!

If convenient, could you please add the gfortran compilation in the scripts? Thanks!

Another request is the python compilation. Because the boost-python would depend on python, could you please add a python-2.7 compilation before that? so that the compiled boost-python would only depend on the compiled python, not the old one or the system one.

@jlinoff
Copy link
Owner

jlinoff commented Apr 18, 2015

That is a great idea.

I will update some of the more recent scripts to support language choices by providing the --enable-languages command line option or an environment variable like the deprecated LANGUAGES environment variable for the configuration script.

Meanwhile, you can enable FORTRAN by modifying the bld.sh script following these steps:

  1. find the line in the script that contains --enable-languages='c,c++,go'
  2. change it to --enable-languages='c,c++,go,fortran'

Please note that the following language targets are available:

    all        All languages.
               This is the same as --enable-languages='c,c++,fortran,go,objc,java'
               on platforms that support all of them.

    c          C. This is required as far as I can tell.

    c++      C++.

    fortran  FORTRAN.

    go        GO.

    java      Java.

    objc      Objective C.

@jlinoff jlinoff self-assigned this Apr 18, 2015
@bug-fixed
Copy link
Author

@jlinoff , that's great! Thank you very much for developing these scripts!

@bug-fixed
Copy link
Author

@jlinoff , I've used your latest build script [https://github.com/jlinoff/gcc-4.9.2-boost-1.57] to compile the gcc-4.9.2 with gfortran. As you suggested, I modified the --enable-languages, but it seems we should also add the --disable-multilib into the compilation settings, or the compilation of gfortran might have problems. I have this comment as I have faced this problem when used your former build script to build gfortran once before. I'm not very sure which version of gcc I built, but I remember that I should download gcc-common-*.tar.gz to build the gfortran successfully. And since then, when I want to compile the gfortran, I always add the --disable-multilib.

@jlinoff
Copy link
Owner

jlinoff commented Apr 19, 2015

Thanks again. You are not the first person to mention --disable-multilib. I will test that option in my environments and add it with the other changes.

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