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]

RE: Error in glibc make


Ya this worked....Thanks.

But, I think I am agian at the same stage where I started the journey of
"GLIBC problems on MinGW".

When I compile:
arm-linux-gcc sample.c on MinGW, I get various "undefined references"
related to libc.so.6, libc_nonshared.a etc as shown in the attached file:
"errorLog.txt".

I guess, this could be because I configured my Final GCC with the option
--disable-shared.

But when I configure final GCC without --disable-shared option, I get
following error:
---------------------------------------------------------------->
c:\MinGW\msys\home\manojv\cinstall_arm\arm-linux\bin\ld.exe:libgcc/./libgcc.
map:1: parse error in VERSION script
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/home/manojv/build_finalgcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/manojv/build_finalgcc/gcc'
make: *** [all-gcc] Error 2
---------------------------------------------------------------->
Also the size of "libgcc.map" is 0(zero).

Any help/guidance would be appreciated.

BACKGROUND:
######################################################################
I am trying to build cross-compiler for "target=arm-linux",
"host=i686-pc-mingw32" on Win-2k.

The packages I am using are:
1) binutils-2.13.1.tar
2) For Kernel headers I am using linux-2.4.19.tar & patch-2.4.19-rmk4
(Kernel patch for arch=arm)
3) Bootstrap gcc-3.2.2
Configured as: 
$ ../gcc-3.2.2/configure --target=arm-linux
--prefix=/c/MinGW/msys/home/manojv/cinstall_arm --enable-languages=c
--disable-nls --disable-threads --disable-shared
--with-headers=/c/MinGW/msys/home/manojv/cinstall_arm/arm-linux/include

4) glibc-2.3.1.tar & glibc-linuxthreads-2.3.1.tar

Configured as: 
$ ../glibc-2.3.1/configure arm-linux
--prefix=/c/MinGW/msys/home/manojv/cinstall_arm/ --disable-profile
--disable-sanity-checks
--with-headers=/c/MinGW/msys/home/manojv/cinstall_arm/arm-linux/include
--enable-add-ons=linuxthreads 

5) Final GCC:
Configured as: 
../gcc-3.2.2/configure --target=arm-linux
--prefix=/c/MinGW/msys/home/manojv/cinstall_arm --enable-languages=c
--disable-nls
--with-headers=/c/MinGW/msys/home/manojv/cinstall_arm/arm-linux/include
***Getting errors at this stage.***

######################################################################


Thanks

-----Original Message-----
From: kleine-budde@gmx.de [mailto:kleine-budde@gmx.de]
Sent: Saturday, October 25, 2003 3:57 PM
To: Manoj Verma, Noida
Cc: crossgcc@sources.redhat.com; libc-alpha@sources.redhat.com;
kai.ruottu@luukku.com; mingw-msys@lists.sourceforge.net
Subject: Re: Error in glibc make


On Wed, Oct 22, 2003 at 07:47:56PM +0530, Manoj Verma, Noida wrote:
> I have completed insatlling the GLIBC with some hacking. 
> I also completed building the final GCC.
> 
> But while compiling a sample file, sample.c I am getting the following
> error:
> 
>
c:\MinGW\msys\home\manojv\cinstall_arm\bin\..\lib\gcc-lib\arm-linux\3.2.2\..
> \..\..\..\arm-linux\bin\ld.exe: cannot find /lib/libc.so.6
> 
> When I do:
> $ arm-linux-ld --start-group -lc --end-group --verbose
> 
> I see:
> ==================================================
> attempt to open
c:/MinGW/msys/home/manojv/cinstall_arm/arm-linux/lib/libc.so
> succeeded
> opened script file
> c:/MinGW/msys/home/manojv/cinstall_arm/arm-linux/lib/libc.so
> opened script file
> c:/MinGW/msys/home/manojv/cinstall_arm/arm-linux/lib/libc.so
> attempt to open /lib/libc.so.6 failed
> attempt to open /lib/libc.so.6 failed
> attempt to open /lib/libc.so.6 failed
> c:\MinGW\msys\home\manojv\cinstall_arm\bin\arm-linux-ld.exe: cannot find
> /lib/libc.so.6
> ==================================================

Look at the c:/MinGW/msys/home/manojv/cinstall_arm/arm-linux/lib/libc.so
it is a text file, remove the absoloute path from the GROUP statement.
On my Linux Host it looks like this:

-----------------------------------------
GROUP ( libc.so.6 libc_nonshared.a )
-----------------------------------------

HTH - Marc

BTW: rmk4 is outdated try 2.4.19-rmk7

-- 
<Dan> Not at all. "D'oh" is one of my favorite words.

Attachment: errorLog.txt
Description: Text document

------
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]