g77 fortran compiler for pup301?
g77 fortran compiler for pup301?
Can I compile Fortran77 programs in pup301 using g77? (see link)
http://www.gnu.org/software/fortran/fortran.html
Reason for the question is that I have several Fortran77 *.F program files and I was interested to see that pup301's geanie tries to invoke g77 when asked to compile them.
How would I install Gnu g77 into pup301 - is there a package or has anybody done it?
-------------------------------
edited to give more info -
I have devx_301.sfs in my /mnt/home and C programs compile fine using geany.
http://www.gnu.org/software/fortran/fortran.html
Reason for the question is that I have several Fortran77 *.F program files and I was interested to see that pup301's geanie tries to invoke g77 when asked to compile them.
How would I install Gnu g77 into pup301 - is there a package or has anybody done it?
-------------------------------
edited to give more info -
I have devx_301.sfs in my /mnt/home and C programs compile fine using geany.
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
After much searching I finally found an old forum discussion which touches on G77 as part of a GCC package
http://www.murga-linux.com/puppy/viewto ... hlight=gcc
this gives the following link
http://members.lycos.nl/mennoterhaseborg/pupgcc/
to the 3-part pupgcc package
gccbin.tar.gz
gccinc.tar.gz
gcclib.tar.gz
The fortran compiler G77 seems to be a very small part of this package - I wonder how much of it could stand alone in pup301? As shown below the packages contain many folders/filenames which already exist in pup301 & I am extremely reluctant to overwrite them - expert advice is sought here.
The full package contains
-----------------------------------------------
1) the gcc/bin files
as g77 gcc ld make tcc
look as though they belong in /usr/bin but pup301's /usr/bin already
contains many of the names.
as yes
g77 no
gcc yes
ld yes
make yes
tcc no
-----------------------------------------------
2) the gcc/include files
aio.h endian.h ieee754.h neteconet sched.h termio.h
aliases.h envz.h ifaddrs.h netinet scsi termios.h
alloca.h err.h inttypes.h netipx search.h tgmath.h
ansidecl.h errno.h langinfo.h netpacket semaphore.h thread_db.h
a.out.h error.h lastlog.h netrom setjmp.h time.h
argp.h execinfo.h libgen.h netrose sgtty.h ttyent.h
argz.h fcntl.h libiberty.h nfs shadow.h ucontext.h
ar.h features.h libintl.h nl_types.h signal.h ulimit.h
arpa fenv.h libio.h nss.h spawn.h unistd.h
asm fmtmsg.h limits.h obstack.h stab.h ustat.h
assert.h fnmatch.h link.h paths.h stdint.h utime.h
bfd.h fpu_control.h locale.h poll.h stdio_ext.h utmp.h
bfdlink.h fstab.h malloc.h printf.h stdio.h utmpx.h
bits fts.h math.h protocols stdlib.h values.h
byteswap.h ftw.h mcheck.h pthread.h string.h wait.h
complex.h _G_config.h memory.h pty.h strings.h wchar.h
cpio.h gconv.h mntent.h pwd.h stropts.h wctype.h
crypt.h getopt.h monetary.h re_comp.h symcat.h wordexp.h
ctype.h glob.h net regex.h sys xlocale.h
dirent.h gnu netash regexp.h syscall.h
dis-asm.h gnu-versions.h netatalk resolv.h sysexits.h
dlfcn.h grp.h netax25 rpc syslog.h
elf.h iconv.h netdb.h rpcsvc tar.h
look as though they belong in /usr/include but again pup301's /usr/include already contains many of the names.
-----------------------------------------------
3) the gcc/lib files
gcc-lib libc.so libg2c.so libgcc_s.so
libbfd-2.13.90.0.16.so libdl.so libg2c.so.0 libgcc_s.so.1
libc_nonshared.a libfrtbegin.a libg2c.so.0.0.0 tcc
look as though they belong in /usr/lib but again pup301's /usr/lib already contains many of the names.
-----------------------------------------------
http://www.murga-linux.com/puppy/viewto ... hlight=gcc
this gives the following link
http://members.lycos.nl/mennoterhaseborg/pupgcc/
to the 3-part pupgcc package
gccbin.tar.gz
gccinc.tar.gz
gcclib.tar.gz
The fortran compiler G77 seems to be a very small part of this package - I wonder how much of it could stand alone in pup301? As shown below the packages contain many folders/filenames which already exist in pup301 & I am extremely reluctant to overwrite them - expert advice is sought here.
The full package contains
-----------------------------------------------
1) the gcc/bin files
as g77 gcc ld make tcc
look as though they belong in /usr/bin but pup301's /usr/bin already
contains many of the names.
as yes
g77 no
gcc yes
ld yes
make yes
tcc no
-----------------------------------------------
2) the gcc/include files
aio.h endian.h ieee754.h neteconet sched.h termio.h
aliases.h envz.h ifaddrs.h netinet scsi termios.h
alloca.h err.h inttypes.h netipx search.h tgmath.h
ansidecl.h errno.h langinfo.h netpacket semaphore.h thread_db.h
a.out.h error.h lastlog.h netrom setjmp.h time.h
argp.h execinfo.h libgen.h netrose sgtty.h ttyent.h
argz.h fcntl.h libiberty.h nfs shadow.h ucontext.h
ar.h features.h libintl.h nl_types.h signal.h ulimit.h
arpa fenv.h libio.h nss.h spawn.h unistd.h
asm fmtmsg.h limits.h obstack.h stab.h ustat.h
assert.h fnmatch.h link.h paths.h stdint.h utime.h
bfd.h fpu_control.h locale.h poll.h stdio_ext.h utmp.h
bfdlink.h fstab.h malloc.h printf.h stdio.h utmpx.h
bits fts.h math.h protocols stdlib.h values.h
byteswap.h ftw.h mcheck.h pthread.h string.h wait.h
complex.h _G_config.h memory.h pty.h strings.h wchar.h
cpio.h gconv.h mntent.h pwd.h stropts.h wctype.h
crypt.h getopt.h monetary.h re_comp.h symcat.h wordexp.h
ctype.h glob.h net regex.h sys xlocale.h
dirent.h gnu netash regexp.h syscall.h
dis-asm.h gnu-versions.h netatalk resolv.h sysexits.h
dlfcn.h grp.h netax25 rpc syslog.h
elf.h iconv.h netdb.h rpcsvc tar.h
look as though they belong in /usr/include but again pup301's /usr/include already contains many of the names.
-----------------------------------------------
3) the gcc/lib files
gcc-lib libc.so libg2c.so libgcc_s.so
libbfd-2.13.90.0.16.so libdl.so libg2c.so.0 libgcc_s.so.1
libc_nonshared.a libfrtbegin.a libg2c.so.0.0.0 tcc
look as though they belong in /usr/lib but again pup301's /usr/lib already contains many of the names.
-----------------------------------------------
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
I'm not sure what version gcc pup3.01 is using, but as it has full slackware compatibility, why not look for an already compiled slack fortran?
A search of packages.slackware.it gives these two as possibilities:
http://packages.slackware.it/package.ph ... 4.6-i486-1
http://packages.slackware.it/package.ph ... 1.2-i486-1
A search of packages.slackware.it gives these two as possibilities:
http://packages.slackware.it/package.ph ... 4.6-i486-1
http://packages.slackware.it/package.ph ... 1.2-i486-1
Thanks for the replies - I will check out the links asap.
As mentioned above I do have devx_301.sfs in my /mnt/home and C programs compile fine from geany (and also using command line cc and gcc commands.
This is all I can find about the gcc version in pup301
any other comments and/or suggestions would be welcome - especially what minimum files/libraries need to be added to give me a fortran compiling capability.
As mentioned above I do have devx_301.sfs in my /mnt/home and C programs compile fine from geany (and also using command line cc and gcc commands.
This is all I can find about the gcc version in pup301
Code: Select all
~# gcc --v
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.1.2/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.1.2/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.1.2
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
r__hughes,
I've never tried using the fortran compiler, so can't give any useful info there, but following on from Dougal's query, what response do you get from entering:
g77 --help
On pup2.16 I get:
I've never tried using the fortran compiler, so can't give any useful info there, but following on from Dougal's query, what response do you get from entering:
g77 --help
On pup2.16 I get:
Code: Select all
# g77 --help
Usage: g77 [options] file...
Options:
-pass-exit-codes Exit with highest error code from a phase
--help Display this information
--target-help Display target specific command line options
(Use '-v --help' to display command line options of sub-processes)
-dumpspecs Display all of the built in spec strings
-dumpversion Display the version of the compiler
-dumpmachine Display the compiler's target processor
-print-search-dirs Display the directories in the compiler's search path
-print-libgcc-file-name Display the name of the compiler's companion library
-print-file-name=<lib> Display the full path to library <lib>
-print-prog-name=<prog> Display the full path to compiler component <prog>
-print-multi-directory Display the root directory for versions of libgcc
-print-multi-lib Display the mapping between command line options and
multiple library search directories
-print-multi-os-directory Display the relative path to OS libraries
-Wa,<options> Pass comma-separated <options> on to the assembler
-Wp,<options> Pass comma-separated <options> on to the preprocessor
-Wl,<options> Pass comma-separated <options> on to the linker
-Xassembler <arg> Pass <arg> on to the assembler
-Xpreprocessor <arg> Pass <arg> on to the preprocessor
-Xlinker <arg> Pass <arg> on to the linker
-save-temps Do not delete intermediate files
-pipe Use pipes rather than intermediate files
-time Time the execution of each subprocess
-specs=<file> Override built-in specs with the contents of <file>
-std=<standard> Assume that the input sources are for <standard>
-B <directory> Add <directory> to the compiler's search paths
-b <machine> Run gcc for target <machine>, if installed
-V <version> Run gcc version number <version>, if installed
-v Display the programs invoked by the compiler
-### Like -v but options quoted and commands not executed
-E Preprocess only; do not compile, assemble or link
-S Compile only; do not assemble or link
-c Compile and assemble, but do not link
-o <file> Place the output into <file>
-x <language> Specify the language of the following input files
Permissible languages include: c c++ assembler none
'none' means revert to the default behavior of
guessing the language based on the file's extension
Options starting with -g, -f, -m, -O, -W, or --param are automatically
passed on to the various sub-processes invoked by g77. In order to pass
other options on to these processes the -W<letter> options must be used.
For bug reporting instructions, please see:
<URL:http://gcc.gnu.org/bugs.html>.
Thank you for the suggestions & links muggins - I will investigate
In answer to your question :-
from the console I get this
and trying to compile a test.f file from within geany gives the following messages:-
which seems to confirm that although gcc has been compiled to support fortran (+other languages) the g77 command (+other possible support libraries) have not been included in puppy301
----- the search for truth & justice in the face of the powers of chaos & darkness continues
In answer to your question :-
from the console I get this
Code: Select all
~# g77 --help
bash: g77: command not found
~#
Code: Select all
g77-Wall -c test.f in directory /mnt/hda1/temp
/bin/sh:g77:command not found
Compilation failed
----- the search for truth & justice in the face of the powers of chaos & darkness continues
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
My understanding is:
g77 is no longer actively supported and will not run on current versions of gcc. To install g77 you must use a version of gcc < 4.0.
g77 has been replaced by gfortran since gcc 4.0. Both g77 and gfortran use gcc as the back end.
I too would be interested in having gfortan on Puppy.
g77 is no longer actively supported and will not run on current versions of gcc. To install g77 you must use a version of gcc < 4.0.
g77 has been replaced by gfortran since gcc 4.0. Both g77 and gfortran use gcc as the back end.
I too would be interested in having gfortan on Puppy.
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
And isn't gfortran in the devx? Barry usually has the full GCC package...carolus wrote:My understanding is:
g77 is no longer actively supported and will not run on current versions of gcc. To install g77 you must use a version of gcc < 4.0.
g77 has been replaced by gfortran since gcc 4.0. Both g77 and gfortran use gcc as the back end.
I too would be interested in having gfortan on Puppy.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
I would be grateful if someone who has the current devx installed would answer this question. With version number, if gfortran is present.Dougal wrote: And isn't gfortran in the devx? Barry usually has the full GCC package...
gfortran is still buggy and is in active development, but I think the current bugs are in fortran 95 features; gfortran is said to be reliable for fortran 77 code. I've played with gfortran a bit, and with fortran 77 code, if you simply replace FC=g77 with FC=gfortran in your environment, the old makefiles all work. You may have conflicts with reserved words in fortran 95 that were not reserved in fortran 77.
The "full GCC" includes pascal, lisp, etc. if you mean the GNU distribution.
This is what I get from pup301 (with devx_301.sfs in /mnt/home)
seems that neither gfortran nor g77 are there
----------------------------------------------------
------ edited 20dec07
I am using Pup301 for all the following:
I have tried to use devx_216.sfs instead of devx_301.sfs & although an
unsquash list shows the g77 command
when this is mounted in pup301 the g77 is absent from /usr/bin
(the cc and gcc commands work fine though)
--------------------
I have also tried to use devx_217.sfs but although md5sum checks OK
I get an unsquash error -- see below
--- anybody know why the devx_216.sfs doesn't work (even when renamed to devx_301.sfs) - perhaps a kernel issue?
Code: Select all
~# gcc --v
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.1.2/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.1.2/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.1.2
~# gfortran
bash: gfortran: command not found
~#
----------------------------------------------------
------ edited 20dec07
I am using Pup301 for all the following:
I have tried to use devx_216.sfs instead of devx_301.sfs & although an
unsquash list shows the g77 command
Code: Select all
/mnt/hda1/Junk_2# unsquashfs -l devx_216.sfs | grep g77
squashfs-root/usr/bin/g77
(the cc and gcc commands work fine though)
--------------------
I have also tried to use devx_217.sfs but although md5sum checks OK
Code: Select all
/mnt/hda1/Junk_2# md5sum -c devx_217*.txt
devx_217.sfs: OK
Code: Select all
/mnt/hda1/Junk_2# unsquashfs -l devx_217.sfs
Can't find a SQUASHFS superblock on devx_217.sfs
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
Thank you muggins your link to
http://packages.slackware.it/package.ph ... 1.2-i486-1
gave me the extra installation files for g77 & gfortran
but I get a compilation error - missing shared library 'libmpfr.so.1'
the search continues - many thanks so far - any further suggestions would be appreciated.
http://packages.slackware.it/package.ph ... 1.2-i486-1
gave me the extra installation files for g77 & gfortran
but I get a compilation error - missing shared library 'libmpfr.so.1'
the search continues - many thanks so far - any further suggestions would be appreciated.
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
It might be the different types of squashfs: lzma and gzip.r__hughes wrote:I get an unsquash error -- see below--- anybody know why the devx_216.sfs doesn't work (even when renamed to devx_301.sfs) - perhaps a kernel issue?Code: Select all
/mnt/hda1/Junk_2# unsquashfs -l devx_217.sfs Can't find a SQUASHFS superblock on devx_217.sfs
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind