This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi all I am a newbie to Linux and am trying to compile the 'tools' section for kernel 2.6. I have 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 kernel.org and other sources. I am working on a i686 machine with Windows 2000 installed on it. Right now, I am using Cygwin for the compilation, with the default GCC package installed with it (version 3.3.3). Now, I am having problems compiling binutils for kernel 2.6.9. I gave the following command in Cygwin: ---------------------------------------------------- /usr/src/build-binutils $ ./binutils-2.15.94/configure --host=i686-pc-cygwin --target=powerpc-linux - -prefix=/usr/src/tools/powerpc-linux --disable-nls /usr/src/build-binutils $ make all install ---------------------------------------------------- I am getting the following errors while compilation: ---------------------------------------------------- arlex.o(.text+0x0): In function `main': /usr/src/build-binutils/binutils/arlex.c:1: multiple definition of `_main' arparse.o(.text+0x0):/usr/src/build-binutils/binutils/arparse.c:1: first defined here ar.o(.text+0x6a0): In function `main': /usr/src/build-binutils/binutils/../../binutils-2.15.94.0.2/binutils/ar.c:34 2: multiple definition of `_main' arparse.o(.text+0x0):/usr/src/build-binutils/binutils/arparse.c:1: first defined here ar.o(.text+0x27): In function `mri_emul': /usr/src/build-binutils/binutils/../../binutils-2.15.94.0.2/binutils/ar.c:14 8: undefined reference to `_yyparse' collect2: ld returned 1 exit status make[3]: *** [ar.exe] Error 1 make[3]: Leaving directory `/usr/src/build-binutils/binutils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/build-binutils/binutils' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/usr/src/build-binutils/binutils' make: *** [all-binutils] Error 2 ---------------------------------------------------- I checked up on the net and found someone else's entry with the same problem. The solution suggested was to try compiling with gcc-3.3.3, since it uses an "earlier version of binutils". But I'm already compiling with 3.3.3! Can someone please guide me further on this problem and suggest any solutions? Regards Vijay Padiyar ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |