This is the mail archive of the
mailing list for the Cygwin project.
Re: Re: Re: Re: Building GCC from Sources
- To: <tprinceusa at mindspring dot com>
- Subject: Re: Re: Re: Re: Building GCC from Sources
- From: "Deepak Shekhar" <dipaktc at rediffmail dot com>
- Date: 14 Aug 2001 14:13:44 -0000
- CC: <cygwin at cygwin dot com>
I am using the sources from cygwin sites.The sources i am using are the latest and the same version of binaries i have installed. I have explained what i have done.
I am configuring for i586 PC running windows.
The directory structure is as follows.
I create symbolic links for gas,ld,bfd,opcodes,binutils and gprof in the main directory of gcc - gcc-184.108.40.206.
Then i run the configure script of gcc in the build directory.When the directory opcodes is being configured, the configure throws an error saying "ltconfig" doesn't recognise the option "--build".
So configuration of libtool failed.
Then in the configure scripts of all the directories for which i created symbolic links i removed the option
"--build" from the options of ltconfig. Then the configuration was done without any errors.
Then i run "make bootstrap" in the build directory. When compiling the files in the bfd directory it looks for files in the include directory of gcc. The files it looks for are not in gcc-2.95.3-5/include but are
in binutils-20010425-2/include. So i copied those files from binuitls to gcc. Now that problem was solved. Then it gave an error saying in file sysdep.h no rule to make "libintl.h". Then i created a symbolic link for directory binutils-20010425/intl in the gcc-2.95.3-5 and reconfigured.Then i repeated "make bootstrap".
Now it fails while creating "objdump.exe" saying undefined reference to a function "cplus_demangle_name_to_style" and "cplus_demangle_set_style".
These functions are in the cplus-dem.c file of libeberty of binutils but not in libiberty of gcc. These functions are not there in sources from GNU GCC sites.
Can u help me on this.
thanking in advance
On Fri, 03 Aug 2001 firstname.lastname@example.org wrote :
>Deepak Shekhar <email@example.com> wrote:
>Actually the source versions of binutils and gcc that i
>are binutils-20010425-2 and gcc-2.95.3-4.
> I want to build both binutils and gcc.
>i have created links for binutils,gas,ld,gprof,bfd and
>opcodes in the
>main directory of gcc.
>While configuring opcodes i get the following mesage
>ltconfig: unrecognized option `--build=i586-pc-cygwin32'
>Try `ltconfig --help' for more information.
>configure: error: libtool configure failed
>Configure in /home/Deepak/build2/opcodes failed,
>Can u help me out in this
>thanks in advance
>------------- Original Message --------------
>Date:Wed, 1 Aug 2001 12:36:46 -0700 (PDT)
>Subject: Re: Building GCC from Sources
>If the failure is "gencode" complaining about "unknown
>rtx code..." then
>it's caused by not handling DOS CR LF property. This
>can be fixed by
>doing one of the following:
>* apply the patch
>* mount the directory the sources are under in textmode
>* convert the file gcc-3.0/gcc/config/i386/i386.md to
>use Unix newlines
>* unpack the sources with Cygwin tar (the extra CR's
>that caused the
> build to fail are added by programs such as WinZip)
>then build it according to the instructions
>I don't have any other problems building the GCC 3.0
>release for C/C++.
>By the way, the plateform-specific installation notes
>> Current (as of early 2001) snapshots of GCC will
>build under Cygwin
>> without modification.
>that seems to imply that 2.95.x might not work.
>Well, yes; did you look at the differences between the
>the cygwin sites and the ones on the gcc sites? Why
>not use the
>cygwin ones, and make sure that your cygwin
>installation and the
>sources are consistent and current?
For Rs. 2,000,000 worth of Aptech scholarships click below
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html