Web lists-archives.org

Re: [Mingw-users] MinGw 5.3.1 - What is needed to compile gcc-4.2.1-2-src.tar.gz?




Eduardo Mendes wrote:
>  
> Hi
>  
> Many thanks for your reply.
>  
> I wonder whether you could guide me step by step.
>  
> Please see my comments below.
> 
>  > well, if you do want to compile everything from scratch, you will first
>  > need to update MSYS bash and coreutils. You may also need MSYS DTK to
>  > provide a perl parser (is that what you call it?).
>  
> Do you mean MSYS base system, technology preview: msys-1.0.11 from Dec 
> 4th, 2007 and tools for msys-1.0.11 from Set 20th, 2007.
>  
> Where do I "tar -zxvf" them?   Do I need all the packages listed on 
> sourceforge?

MSYS DTK can be found as msysDTK-1.0.1.exe. After installing MSYS, get 
the following updates:

bash-3.1-MSYS-1.0.11-1.tar.bz2
coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2
MSYS-1.0.11-20070729.tar.bz2

Extract them to your MSYS folder to update MSYS, by default C:\MSYS\1.0\ 
I'm not sure if msysCORE-1.0.11-2007.01.19-1.tar.bz2 is needed or not.

> 
>  >
>  > Next, you can build the latest binutils from cvs checkout, or grab the
>  > pre-compiled binutils binaries from the MinGW site.
>  
> I think I will for the new binaries. Is that ok?

Yeah, sure. Make sure you get the latest.

> 
>  >
>  > Then you will need and updated GMP and MPFR. They may be configured and
>  > installed with simply "./configure --prefix=/mingw --enable-static
>  > --enable-shared". They are needed for gfortran.
>  
> Where do I find GMp and MPFR? GMP seems to be on of MSYS tools, doesn't 
> it?  I couldn't find MPFR!

You should not be using GMP and MPFR from MSYS tools, they link to the 
MSYS runtime. You need to grab the source tarball and compile them to 
link to MS C runtime. The tarballs can be found at:

http://gmplib.org/#DOWNLOAD
http://mpfr.org/mpfr-current/

> 
>  >
>  > Next should be gcc itself, I do suggest taking a look at the
>  > gcc-4.2.1-build-dw2-2.sh shell script provided at MinGW sorceforge. It
>  > will provide clues to how gcc 4 should be configured and build.
>  
> I am used gcc-4.2.1-build to find the problems with GMP and MPFR.

I'm not sure if I understand your question, do you mean configure could 
not find an appropriate GMP and MPFR installed? As above, you need MinGW 
versions instead of MSYS versions.

Also, if you plan to build the ada and gnat portion, make sure you 
already have ada support, eg gcc-ada-3.4.5-20060117-1.tar.gz. You may 
also need to disable DEP (data execution prevention) if you are using 
XP, 2003 or Vista for ada to build properly.

>  >
>  > Do not forget to read up the gcc install guide at
>  > "http://gcc.gnu.org/install/";, it will save you a couple of hours of
>  > hard work due to mistakes.
>  >
>  > Iirc, that should be all. Sorry if I forget anything, I need to sleep.
>  
>  
> Many thanks
> '
> Ed
>  
>

Glad to help out.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users