Thanks Jeremy,

Started work on ur guidance :)

Regards,
Chetan

-----Original Message-----
From: Jeremy Chadwick [mailto:free...@jdc.parodius.com]
Sent: Tuesday, October 05, 2010 5:13 PM
To: Chetan Shukla
Cc: freebsd-ports@freebsd.org
Subject: Re: Issues in installing Gmake and Gcc on FreeBSD

On Tue, Oct 05, 2010 at 05:02:08PM +0530, Chetan Shukla wrote:
> I am trying to install GCC and Gmake on  FreeBSd machine and faced following 
> issues:
> GCC:
>
> Steps:
> 1)At directory gcc-3.3.2 I ran ./configure -enable-obsolete
> 2)error returned:
> Please update *-*-freebsd* in gcc/config.gcc
> Configure in /usr/home/iptk/gcc-3.3.2/gcc failed, exiting.
>
> 3)I have included this string in gcc/config.gcc with architecture string as 
> i386 but still facing same issue.
>
> The configuration and version details:
> Machine arch:i386
> FreeBSD version: FreeBSD 8.0-RELEASE #0:
> GCC version :gcc-3.3.2
>
> Gmake:
>
> Steps:
> 1)I have un tarred the gmake-3.79.1.tgz but it did not create any 
> gmake-3.79.1 directory.
> 2)Hence I am unable to run ./configure and make and make install.
>
> The hardware details remain same.
> The system is not connected to Internet so I cannot use pkg-add.
>
> To give backdrop all this is needed to port linux code to FreeBSD.
>
> Please let me know your inputs on the above,
> Also please excuse me if it is wrong mailing list and please redirect it
> to the correct one.

GCC on FreeBSD is "special" in the sense that you should either use the
version that's included in the base system (4.2.1 as of 8.0-RELEASE), or
if you need an older/different version, install it from ports/packages.
The same goes for gmake.

You managed to get the source code to both gcc and gmake on a system
which isn't connected to the Internet, so surely you could download the
binary versions of the FreeBSD packages and install those...?

Take a peek in:
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/

Look for gcc* and gmake*.  These are probably what you want:

-rw-r--r--    1 110      1002       351139 Oct 20  2009 gmake-3.81_3.tbz
-rw-r--r--    1 110      1002     14269507 Oct 20  2009 gcc-3.4.6_3,1.tbz

If you download these packages, you can get them onto the machine
however possible and simply pkg_add the files (literally: "pkg_add
xxx.tbz").  You might have to download some dependency packages, but
pkg_add should tell you what those are if needed.

--
| Jeremy Chadwick                                   j...@parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |


"DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus."
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to