Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 15 Oct 2019, 22:11
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
g77 fortran compiler for pup301?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
r__hughes

Joined: 13 Apr 2006
Posts: 357
Location: Montreal, Canada

PostPosted: Thu 13 Dec 2007, 20:11    Post subject:  g77 fortran compiler for pup301?
Subject description: Is there a package somewhere?
 

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.

_________________
--- 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.
Back to top
View user's profile Send private message 
r__hughes

Joined: 13 Apr 2006
Posts: 357
Location: Montreal, Canada

PostPosted: Thu 13 Dec 2007, 22:35    Post subject:  

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/viewtopic.php?t=1132&highlight=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.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6756
Location: hobart

PostPosted: Fri 14 Dec 2007, 01:20    Post subject:  

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.php?q=current/gcc-g77-3.4.6-i486-1

http://packages.slackware.it/package.php?q=current/gcc-gfortran-4.1.2-i486-1
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2504
Location: Hell more grotesque than any medieval woodcut

PostPosted: Fri 14 Dec 2007, 08:04    Post subject:  

Isn't it already in the devx?? It used to be in the past.
_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6756
Location: hobart

PostPosted: Fri 14 Dec 2007, 19:26    Post subject:  

Of course,

never occurred to me to look! It is with pup2.16, but I don't know about 3.01?
Back to top
View user's profile Send private message 
r__hughes

Joined: 13 Apr 2006
Posts: 357
Location: Montreal, Canada

PostPosted: Sat 15 Dec 2007, 18:22    Post subject:  

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

Code:
~# 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


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.

_________________
--- 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.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6756
Location: hobart

PostPosted: Sat 15 Dec 2007, 18:52    Post subject:  

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:

Code:

# 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>.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6756
Location: hobart

PostPosted: Sat 15 Dec 2007, 19:07    Post subject:  

And here's a link to some online g77 docs:

http://gcc.gnu.org/onlinedocs/gcc-3.4.6/g77/
Back to top
View user's profile Send private message 
r__hughes

Joined: 13 Apr 2006
Posts: 357
Location: Montreal, Canada

PostPosted: Sun 16 Dec 2007, 17:23    Post subject:  

Thank you for the suggestions & links muggins - I will investigate

In answer to your question :-

from the console I get this
Code:
~# g77 --help
bash: g77: command not found
~#


and trying to compile a test.f file from within geany gives the following messages:-

Code:
g77-Wall -c test.f in directory /mnt/hda1/temp
/bin/sh:g77:command not found
Compilation failed


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 Smile

_________________
--- 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.
Back to top
View user's profile Send private message 
carolus

Joined: 14 Feb 2007
Posts: 128

PostPosted: Sun 16 Dec 2007, 20:25    Post subject:  

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.
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2504
Location: Hell more grotesque than any medieval woodcut

PostPosted: Mon 17 Dec 2007, 08:49    Post subject:  

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.

And isn't gfortran in the devx? Barry usually has the full GCC package...

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
carolus

Joined: 14 Feb 2007
Posts: 128

PostPosted: Mon 17 Dec 2007, 10:56    Post subject:  

Dougal wrote:

And isn't gfortran in the devx? Barry usually has the full GCC package...


I would be grateful if someone who has the current devx installed would answer this question. With version number, if gfortran is present.

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.
Back to top
View user's profile Send private message 
r__hughes

Joined: 13 Apr 2006
Posts: 357
Location: Montreal, Canada

PostPosted: Mon 17 Dec 2007, 16:26    Post subject:  

This is what I get from pup301 (with devx_301.sfs in /mnt/home)

Code:
~# 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
~#


seems that neither gfortran nor g77 are there Sad
----------------------------------------------------
------ 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:
/mnt/hda1/Junk_2# unsquashfs -l devx_216.sfs | grep g77
squashfs-root/usr/bin/g77


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

Code:
/mnt/hda1/Junk_2# md5sum -c devx_217*.txt
devx_217.sfs: OK


I get an unsquash error -- see below
Code:
/mnt/hda1/Junk_2# unsquashfs -l devx_217.sfs
Can't find a SQUASHFS superblock on devx_217.sfs


--- anybody know why the devx_216.sfs doesn't work (even when renamed to devx_301.sfs) - perhaps a kernel issue?

_________________
--- 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.
Back to top
View user's profile Send private message 
r__hughes

Joined: 13 Apr 2006
Posts: 357
Location: Montreal, Canada

PostPosted: Thu 20 Dec 2007, 21:23    Post subject:  

Thank you muggins your link to
http://packages.slackware.it/package.php?q=current/gcc-gfortran-4.1.2-i486-1
gave me the extra installation files for g77 & gfortran Smile
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.
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2504
Location: Hell more grotesque than any medieval woodcut

PostPosted: Fri 21 Dec 2007, 10:26    Post subject:  

r__hughes wrote:
I get an unsquash error -- see below
Code:
/mnt/hda1/Junk_2# unsquashfs -l devx_217.sfs
Can't find a SQUASHFS superblock on devx_217.sfs


--- anybody know why the devx_216.sfs doesn't work (even when renamed to devx_301.sfs) - perhaps a kernel issue?

It might be the different types of squashfs: lzma and gzip.

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1240s ][ Queries: 11 (0.0168s) ][ GZIP on ]