This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: problem compiling binutils-2.15.94 with gcc 3.3.3 (Cygwin on i686-Win2k)
- From: "Vijay Padiyar" <vijaypadiyar at hotmail dot com>
- To: "Nick Clifton" <nickc at redhat dot com>
- Cc: "Binutils Support" <binutils at sources dot redhat dot com>
- Date: Wed, 5 Jan 2005 12:38:20 +0530
- Subject: Re: problem compiling binutils-2.15.94 with gcc 3.3.3 (Cygwin on i686-Win2k)
- References: <BAY17-DAV71ACAA61F42C1616FFAE6D4900@phx.gbl> <41DA6BD3.3080101@redhat.com>
Hi Nick
Thanks for replying!
> The file arparse.c should not be defining a main() function. So this is
> the problem.
>
> Things to check: Are you using an old version of yacc or bison to builr
> arparse.c ? (Unlikely, but possible)
Well actually I'm a newbie to Linux toolchain development, so I'm not
exactly sure of what tools to use. To get started, I just downloaded
binutils-2.15.94, glibc-2.3.3,
glibc-crypt-2.1, glibc-linuxthreads-2.3.3, linux-2.6.9 and gcc-3.4.3 from
the net.
Then I created a fresh directory (build-binutils) and executed the
'configure' command on binutils-2.15.94 to build it to the above mentioned
directory. It is during this procedure that I got the error specified.
/usr/src/build-binutils
$../binutils-2.15.94/configure --host=i686-pc-cygwin --target=powerpc-linux
-
-prefix=/usr/src/tools/powerpc-linux --disable-nls
> Can you find out where the definition of main() in arparse.c comes from ?
> What does the start of your arparse.c file look like ? For example I
> have this:
>
> /* A Bison parser, made from
> /sources/binutils/current/binutils/arparse.y
> by GNU Bison version 1.25
> */
>
> #define YYBISON 1 /* Identify Bison output. */
>
> #define NEWLINE 258
> #define VERBOSE 259
My arparse.c (in folder usr/src/build-binutils/binutils) just contains a
main() definition (??). It looks like this:
main() { return 0; }
That's all there is in arparse.c. Nothing more, nothing less. Is there some
other problem? I don't know where and how yacc and bison are to be used. I'm
building it on a Win2k/i386 host for a MPC8260 (PPC) target. I believe there
are some issues in configuring binutils on a case-insensitive filesystem
like FAT32. So I will now repeat the same procedure on a RedHat Linux
machine and probably with a lower version of binutils.
Any other issues that I could be overlooking? Thanks for your guidance
Nick!!!
Regards
Vijay Padiyar