This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Please help with building gfortran 4.2.1 on OpenBSD


On Thu, Aug 30, 2012 at 06:46:07PM +0000, John Long wrote:
> On Thu, Aug 30, 2012 at 11:05:08AM -0700, Steve Kargl wrote:
> > On Thu, Aug 30, 2012 at 04:09:19PM +0000, John Long wrote:
> > > Hi,
> > > 
> > > OpenBSD has a system of scripts to build various software. Unfortunately
> > > gfortran is not building on the current version of OpenBSD running on a
> > > Fuloong (mips64el). I read there is a Fuloong in gcc's build farm so I
> > > hope somebody has already figured this problem out and can tell me how to
> > > fix it.
> > > 
> > > I got the following error messages:
> > > 
> > > /usr/ports/pobj/gfortran-4.2.1/gcc-4.2.1/gcc/
> > 
> > This appears to be a build within the OpenBSD ports system
> > framework.
> 
> Yes, that is what I said. I am asking for help, not pointing fingers.
> 
> > You'll probably need to ask whoever is responsible for the OpenBSD port
> > for help.
> 
> The port has no maintainer assigned to it so I hoped whoever is responsible
> for gfortran would be interested in fixing it and then we could probably get
> it back in the ports system on OpenBSD. I don't know whether it is broken on
> other archs since nobody responded to my question on OpenBSD's ports@
> mailing list.
> 
> > gcc-4.2.1 was released 5 years ago, and gcc-4.2.x had reached
> > its EOL some 3 years ago.  I believe that it may be prudent to
> > download gcc-4.7.1 from the GCC home page and build gfortran
> > from outside of the OpenBSD port system.  Instructions for
> > building gcc can be found of the GCC website.
> 
> I don't know but I am guessing a newer gfortran won't like the binutils
> (2.15) or gcc (4.21) we already have installed. And it won't help others
> since people normally use the ports tree. If it gets fixed there everyone
> can use it. If not, everybody interested has to build it out of line and
> that seems like a waste of effort and not very community-oriented.

While there may be individuals subscribed to this
list that run OpenBSD; AFAIK, none of the developers
who actively participated in writing gfortran code
run OpenBSD.

A peek at lang/gfortran/patches shows 61 patches are
applied to the sources.  gcc-4.2.x is EOL and those
patches should have been sent upstream years ago.
There is no chance that those patches, if needed,
will ever be included in GCC 4.2 branch.   

A peek at lang/gcc shows that one supposedly can build
4.2, 4.6, and 4.7 with that port, and the Makefile 
suggests that it includes gfortran support (although
the port seem to rename the compiler to g95-*. Ouch!)
It also appears that sthen@ and pascal@openbsd.org have
updated lang/gcc in the last 2 days.  You should
probably directly ping those individuals.

As far as old binutils is concerned, there is devel/binutils.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]