This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

Configuring and compiling GCC for Windows machine


Hallo All

I hoped that I wouldn't be sending in a begging request for someone to help
out a Windows user configure and compile gcc-3.0.4, but the fact is that
after a week of downloading, studying documents and reading through user
group communications and then frustrating hours to trying just about
anything in desperation I am willing to go down on bended knees to anyone
with a few words of comfort and the one or two, probably simple and
obvious, tips I am yearning for.

Here's what I have done so far:

1. Downloaded gcc-3.0.4.tar.gz
2. Downloaded gz124src.zip and extracted gzip.exe with WinZip
3. Using gzip - d gcc-3.0.4.tar.gz extracted gcc-3.0.4.tar
4. Downloaded tar-1.12.msdos.exe to extract the archived files from
gcc-3.0.4.tar
5. Using tar -xvf gcc-3.0.4.tar extracted the gcc archive
6. Downloaded cygwin and installed it so that the cygwin bash shell runs
7. Downloaded a binary version of the compiler MinGW going through the same
procedured of decompiling and extracting. I set up the path of the compiler
in my Windows Autoexec.bat and can successfully test the compiler in a dos
shell with gcc -v. In cygwin bash shell there is the save positive
response.
8. In cygwin shell I have created a directory at c:/gcc/gccwin and the gcc
source is at c:/gcc/gcc-3.0.4 and I have gone to the gccwin directory.
9. I try to configure and compile using c:/gcc/gcc-3.0.4/configure (using
no options because I don't presently understand what the possibilities mean
and hope that the defaults are ok and using no target since the first job
is to compile a native compiler).
10. There is quite a lot of activity and I see that the the compile is
configured for "i686-pc-cygwin". Then there are a lot of checking messages.
In a status file I have found this line "c:/gcc/gcc-3.0.4/configure
--with-gcc-version-trigger=/cygdrive/c/gcc/gcc-3.0.4/gcc/version.c
--host=i686-pc-cygwin --norecursion 
# using "mh-frag""
11. Unfortunately I don't know how to direct the information to an output
file but have noticed the following:
a. it seems as though the gcc compiler is being used and it recognises it
as a GNU compiler
b. There are error messages because "sed" and "cat" are not found
c. Just before the build fails, the following lines are seen
-- checking whether build environment is sane... yes
-- checking whether make sets ${MAKE}... eval1: syntax error: unterminated
quoted string
-- configure in /cygdrive/c/gcc/gccwin/zlib failed, exiting.

As you are probably aware, the procedure is quite cryptic for a poor
Windows user and I don't know where to start to solve such problems. Have I
done anything basically wrong ? What could be the next step ?

I wonder whether it would be an idea to make a step by step guide for a
typical compiler build for a Windows Newbee ? If someone could help me
complete the job I would be more than willing to contribute it based on the
steps I have so far documented. With such a guide I could probably already
have saved a couple of days of frustration....

Regards

Mark Butcher
Switzerland


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