Re: A few quick questions about gfortran under cygwin
- From: "Dr Ivan D. Reid" <Ivan.Reid@xxxxxxxxxxxx>
- Date: Fri, 3 Jun 2005 09:28:56 +0000 (UTC)
On Wed, 01 Jun 2005 01:57:04 GMT, Tim Prince <timothyprince@xxxxxxxxxxxxx>
wrote in <QB8ne.852$IE7.532@xxxxxxxxxxxxxxxxxxxxxxxxxx>:
> Dr Ivan D. Reid wrote:
>> b) I've seen mention of compiling it oneself, but no instructions on how
>> to do it. Are they available anywhere?
> http://gcc.gnu.org/wiki/GFortran
> Grab the source version of your choice, follow gcc build instructions at
> gcc.gnu.org. Minimum build is C and f95:
I still haven't found any explicit instructions; they seem to be
well hidden. For a while I was trying to build from an inappropriate
directory.
> set appropriate compile flags, e.g.
> export CFLAGS='-O2 -march=pentium-m -pipe -g'
> export BOOT_CFLAGS='-O2 -march=pentium-m -pipe'
> default install prefix is /usr/local/
Install bison & flex.
Install patch:
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00009.html
$ find . -name config.cache -exec rm {} \;
$ mkdir obj
$ cd obj
> refer to the configure flags posted on gcc-testresults,typically
> ../configure --enable-threads=posix
> --enable-sjlj-exceptions --disable-libmudflap --enable-languages=f95
$ ../configure --prefix=/usr/local/gcc-4_1 --enable-threads=posix
--disable-libgcj --enable-sjlj-exceptions --with-system-zlib --enable-nls
--disable-libmudflap --enable-version-specific-runtime-libs
--without-included-gettext --disable-shared
--enable-languages=c,c++,f95,java
> make bootstrap-lean
> make -k check
This failed due to no autogen
> make install
$ du /usr/local/gcc-4_1/
....
118463 /usr/local/gcc-4_1/
$ ls /usr/local/gcc-4_1/
bin include info lib libexec man share
$ ls /usr/local/gcc-4_1/bin/
c++.exe gccbug gjnih.exe i686-pc-cygwin-gcc.exe
cpp.exe gcj.exe grepjar.exe i686-pc-cygwin-gcj.exe
fastjar.exe gcjh.exe i686-pc-cygwin-c++.exe i686-pc-cygwin-gcjh.exe
g++.exe gcov.exe i686-pc-cygwin-g++.exe jcf-dump.exe
gcc.exe gfortran.exe i686-pc-cygwin-gcc-4.1.0 jv-scan.exe
I now have the tree in a 32 MB .tgz file of the tree if anyone
wants to try it; mail me. I just need to find public-facing storage with
enough space.
--
Ivan Reid, Electronic & Computer Engineering, ___ CMS Collaboration,
Brunel University. Ivan.Reid@xxxxxxxxxxxx Room 40-1-B12, CERN
KotPT -- "for stupidity above and beyond the call of duty".
.
- References:
- A few quick questions about gfortran under cygwin
- From: Dr Ivan D. Reid
- Re: A few quick questions about gfortran under cygwin
- From: Tim Prince
- A few quick questions about gfortran under cygwin
- Prev by Date: Re: Improve efficiency of 3 big array ops.
- Next by Date: Re: creating directories on the fly
- Previous by thread: Re: A few quick questions about gfortran under cygwin
- Next by thread: Re: implementation of DACOSD
- Index(es):
Relevant Pages
|