[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to build gcc-3.3.2 in OpenBSD ports tree?
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: Re: how to build gcc-3.3.2 in OpenBSD ports tree?
- From: Jonathan Thornburg <jthorn_(_at_)_aei_(_dot_)_mpg_(_dot_)_de>
- Date: Tue, 20 Jan 2004 13:05:53 +0100 (CET)
- Cc: Jonathan Thornburg <jthorn_(_at_)_aei_(_dot_)_mpg_(_dot_)_de>
In the thread rooted at
<http://monkey.org/openbsd/archive/ports/0401/msg00106.html>,
I asked various questions about trying to build gcc-3.3.2 (i386 system,
C, C++, and F77 only) from the OpenBSD 3.4-current ports tree.
I've now succeeded. I'd like to thank all who replied to my messages,
both on the list and in private E-mail. For the benefit of others,
here are some highlights of the solution:
* It's essential to use the *right* cvs options to move /usr/ports
(or in my case just /usr/ports/lang/egcs/) from 3.4-stable to -current.
[The docs warn against selectively upgrading part of
the ports tree like this; in hindsight I should perhaps
have created a separate /usr/ports.current/ hierarchy
and left /usr/ports at -stable. Maybe next time...]
I at first omitted the -A (needed to move from a CVS branch back
to the CVS mainline), and then omitted the always-essential -Pd.
Bad, bad...
* It's essential to tell the egcs port what languages you *don't*
want if they're marked as broken:
# make MAKE_OBJC=No MAKE_ADA=No MAKE_JAVA=no CDROM_SITE=/tmp
Looking at /usr/ports/lang/egcs/snapshot/Makefile was ++helpful.
* After I got gcc installed, I had some trouble figuring out how to get
g++ and g77 as well. I eventually realised these are *subpackages*,
not flavors, after which recursive grepping turned up the right
settings in the Makefile and all was well:
# setenv SUBPACKAGE -g77
# make install MAKE_GXX=Yes MAKE_FORTRAN=Yes MAKE_OBJC=No MAKE_ADA=No MAKE_JAVA=no CDROM_SITE=/tmp
# setenv SUBPACKAGE -c++
# make install MAKE_GXX=Yes MAKE_FORTRAN=Yes MAKE_OBJC=No MAKE_ADA=No MAKE_JAVA=no CDROM_SITE=/tmp
(I suspect that the explicit setting of MAKE_GXX and MAKE_FORTRAN
were actually unnecessary here.)
A followup question: which piece of documentation should I have read
to learn about the SUBPACKAGE settings? 'cd /usr/ports; make search key=g77'
told me the '-g77' string, but where should I have looked to realise
this was a subpackage?
ciao, and many thanks to Mark Espie for keeping this port up to date,
--
-- Jonathan Thornburg <jthorn_(_at_)_aei_(_dot_)_mpg_(_dot_)_de>
Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
Golm, Germany, "Old Europe" http://www.aei.mpg.de/~jthorn/home.html
"Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
-- quote by Freire / poster by Oxfam
Visit your host, monkey.org