Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

gcc3.4 for ports on FreeBSD 4.10-STABLE

 
   FreeBSD Hosting (Home) -> FreeBSD Stable RSS
Next:  FreeBSD 4.10-STABLE and OpenLDAP 2.2  
Author Message
Thomas Schweikle

External


Since: Jun 21, 2004
Posts: 2



(Msg. 1) Posted: Mon Jun 21, 2004 11:22 am
Post subject: gcc3.4 for ports on FreeBSD 4.10-STABLE
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

Hi!

How can I make gcc 3.4 my primary compiler for ports? Is this
possible? Or shall I keep away from trying it?

--
Thomas

 >> Stay informed about: gcc3.4 for ports on FreeBSD 4.10-STABLE 
Back to top
Login to vote
Simon Barner

External


Since: Oct 07, 2003
Posts: 18



(Msg. 2) Posted: Mon Jun 21, 2004 11:44 am
Post subject: Re: gcc3.4 for ports on FreeBSD 4.10-STABLE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> How can I make gcc 3.4 my primary compiler for ports? Is this
> possible? Or shall I keep away from trying it?

Thomas,

you could try the following script (untested):

--- snip --
#!/bin/sh

# portsmake.sh

/usr/bin/make CC=gcc34 CXX=g++34 "$@"
--- snip --

This has the advantage that you don't have to remember to modify
/etc/make.conf when you build world.

I see no problem using gcc 3.x for the ports collection, as long as you
use it exclusively and don't mix it with the base gcc (libraries from
those compilers are not always binary compatible, e.g. those compiled
from c++ sources).

AFAICS you should be able to build all those ports that are ready for
FreeBSD 5.x (which has gcc 3.x as a system compiler).

Regards,
Simon

 >> Stay informed about: gcc3.4 for ports on FreeBSD 4.10-STABLE 
Back to top
Login to vote
Kris Kennaway

External


Since: Mar 22, 2004
Posts: 43



(Msg. 3) Posted: Mon Jun 21, 2004 10:00 pm
Post subject: Re: gcc3.4 for ports on FreeBSD 4.10-STABLE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-06-21, Simon Barner wrote:

> I see no problem using gcc 3.x for the ports collection, as long as you
> use it exclusively and don't mix it with the base gcc (libraries from
> those compilers are not always binary compatible, e.g. those compiled
^^^^^^^^^^^^^^^^^^^
> from c++ sources).
^^^^^^^^^^^^^^^^

This part is important. You cannot mix-and-match C++ code compiled
with different versions of gcc.

> AFAICS you should be able to build all those ports that are ready for
> FreeBSD 5.x (which has gcc 3.x as a system compiler).

gcc 3.4 is much stricter than gcc 3.3, and about 500 fewer ports are
currently buildable with it (including some "important" ones like
png).

Kris
 >> Stay informed about: gcc3.4 for ports on FreeBSD 4.10-STABLE 
Back to top
Login to vote
Simon Barner

External


Since: Oct 07, 2003
Posts: 18



(Msg. 4) Posted: Mon Jun 21, 2004 10:28 pm
Post subject: Re: gcc3.4 for ports on FreeBSD 4.10-STABLE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>> AFAICS you should be able to build all those ports that are ready for
>> FreeBSD 5.x (which has gcc 3.x as a system compiler).
>
> gcc 3.4 is much stricter than gcc 3.3, and about 500 fewer ports are
> currently buildable with it (including some "important" ones like
> png).

So, using gcc 3.4 now and submitting a bunch of patches is very much
appreciated *g* (Read: using gcc 3.3 will cause you less pain).

Of course, at first the op should look whether the author of the software
has already released an updated version of the software.

Simon
 >> Stay informed about: gcc3.4 for ports on FreeBSD 4.10-STABLE 
Back to top
Login to vote
Simon Barner

External


Since: Oct 07, 2003
Posts: 18



(Msg. 5) Posted: Mon Jun 21, 2004 10:29 pm
Post subject: Re: gcc3.4 for ports on FreeBSD 4.10-STABLE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>> AFAICS you should be able to build all those ports that are ready for
>> FreeBSD 5.x (which has gcc 3.x as a system compiler).
>
> gcc 3.4 is much stricter than gcc 3.3, and about 500 fewer ports are
> currently buildable with it (including some "important" ones like
> png).

So, using gcc 3.4 now and submitting a bunch of patches is very much
appreciated *g* (Read: using gcc 3.3 will cause less pain).

Of course, at first the op should look whether the author of the software
has already released an updated version of the software.

Simon
 >> Stay informed about: gcc3.4 for ports on FreeBSD 4.10-STABLE 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Freebsd STABLE - I am using 5.2 realese and using CTM to get STABLE In the CTM ftp I found these folders 08/07/03 12:00AM <DIR> cvs-cur 01/04/02 12:00AM <DIR> ports-cur 02/11/01 12:00AM <DIR> src-2.2 08/07/03 12:00AM ...

FreeBSD 5-STABLE - ... is it production quality? I do notice they say Production Release on the FreeBSD.org page, and 4.10 being legacy, but from experience.. has anyone had any significant problems? I'd be doing it from a fresh-install, rather than an upgrade.. and m...

FreeBSD 5.4-STABLE - I re-built my 5.3 system yesterday after cvsup ran yesterday in the A.M. After a rebooting I get: # uname -v FreeBSD 5.4-STABLE #5: Sun Apr 17 16:32:09 CDT 2005 jjr@www.larush.com:/usr/obj/usr/src/sys/GENERIC I didn't see any annoucement about..

ohphone 1.4.1 FreeBSD 5.3 Stable - Hello, anybody there has tried ohphone 1.4.1 in FreeBSD 5.3 Stable? I have working sound (output good. Input, well the mic records sound, not good quality). Ophone registers to gatekeeper, but no sound is produced while a call is in course. Error..

talk / freebsd 4.8-stable - hi group for some reason (probably after a buildworld) my talk utility stopped working. I thought initially it might have been due to inetd.conf being overwritten but this is not the case: [snip] # ntalk is required for the 'talk' utility to work..
   FreeBSD Hosting (Home) -> FreeBSD Stable All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]