delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/16/06:45:04

Message-ID: <8DD5D051D1D5D211A21F0008C73331CB0231BF09@CIXBJ01FFCORPGE>
From: "Li, Baosheng (MED, CHN)" <Baosheng DOT Li AT med DOT ge DOT com>
To: djgpp AT delorie DOT com, cygwin AT sourceware DOT cygnus DOT com
Subject: gcc can not build cross compiler on solaris for redhat linux targ
et
Date: Sun, 16 Mar 2003 18:43:59 +0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2656.59)

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2EBA8.F37A5930
Content-Type: text/plain;
	charset="GB2312"

Hello:
my configuration is: ../gcc-3.2.2/configure --prefix=/usr/gcc/linux
--with-gnu-as=/usr/gcc/objdir/bin
utils/i486-linux-as
--with-headers=/usr/gcc/linux/objdir/i486-linux/include --
with-libs=/usr/gcc/glib/lib --target=i486-linux --host=sparc-sun-solaris2.8
--li
bdir=/usr/gcc/linux/lib --with-gxx-include-dir=/usr/gcc/linux/include
error: checking for uintptr_t... no
checking whether the C compiler (/usr/gcc/linux/objdir/gcc/xgcc
-B/usr/gcc/linux
/objdir/gcc/ -B/usr/gcc/linux/i486-linux/bin/
-B/usr/gcc/linux/i486-linux/lib/ -
isystem /usr/gcc/linux/i486-linux/include -O2 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
creat
e executables.
make: *** [configure-target-libiberty] Error 1

detail information in config.log:
/usr/gcc/objdir/binutils/i486-linux-ld: warning: ld-linux.so.2, needed by
/lib/l
ibc.so.6, not found (try using -rpath or -rpath-link)
/lib/libc.so.6: undefined reference to `_dl_lazy AT GLIBC_2 DOT 1 DOT 1'
/lib/libc.so.6: undefined reference to `_dl_dst_substitute AT GLIBC_2 DOT 1 DOT 1'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory AT GLIBC_2 DOT 2'

I set LD_LIBRARY_PATH to ld-linux.so.2 path, no luck! 

any help really appreciate!!!
Li Baosheng  
XRay Software Developer - GTO 
No.2,North Yong Chang Road 
Beijing Economic & Technological Development Area 
Beijing, P.R.China      100176 
sametime account: Li, Baosheng
* : (86010) 67881880ext.5476 
* :  (86010) 67881858 

 



------_=_NextPart_001_01C2EBA8.F37A5930
Content-Type: text/html;
	charset="GB2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DGB2312">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>gcc can not build cross compiler on solaris for redhat linux =
target</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">my configuration is: =
../gcc-3.2.2/configure --prefix=3D/usr/gcc/linux =
--with-gnu-as=3D/usr/gcc/objdir/bin</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">utils/i486-linux-as&nbsp;&nbsp; =
--with-headers=3D/usr/gcc/linux/objdir/i486-linux/include --</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">with-libs=3D/usr/gcc/glib/lib =
--target=3Di486-linux --host=3Dsparc-sun-solaris2.8 --li</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">bdir=3D/usr/gcc/linux/lib =
--with-gxx-include-dir=3D/usr/gcc/linux/include</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">error: checking for uintptr_t... =
no</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">checking whether the C compiler =
(/usr/gcc/linux/objdir/gcc/xgcc -B/usr/gcc/linux</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">/objdir/gcc/ =
-B/usr/gcc/linux/i486-linux/bin/ -B/usr/gcc/linux/i486-linux/lib/ =
-</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">isystem =
/usr/gcc/linux/i486-linux/include -O2 -g -O2 ) works... no</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">configure: error: installation or =
configuration problem: C compiler cannot creat</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">e executables.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">make: *** =
[configure-target-libiberty] Error 1</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">detail information in =
config.log:</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"=CB=CE=CC=E5">/usr/gcc/objdir/binutils/i486-linux-ld: warning: =
ld-linux.so.2, needed by /lib/l</FONT>
<BR><FONT SIZE=3D2 FACE=3D"=CB=CE=CC=E5">ibc.so.6, not found (try using =
-rpath or -rpath-link)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"=CB=CE=CC=E5">/lib/libc.so.6: undefined =
reference to `_dl_lazy AT GLIBC_2 DOT 1 DOT 1'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"=CB=CE=CC=E5">/lib/libc.so.6: undefined =
reference to `_dl_dst_substitute AT GLIBC_2 DOT 1 DOT 1'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"=CB=CE=CC=E5">/lib/libc.so.6: undefined =
reference to `_dl_out_of_memory AT GLIBC_2 DOT 2'</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I set LD_LIBRARY_PATH to</FONT> <FONT =
SIZE=3D2 FACE=3D"=CB=CE=CC=E5">ld-linux.so.2</FONT> <FONT SIZE=3D2 =
FACE=3D"Arial">path, no luck! </FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">any help really appreciate!!!</FONT>
<BR><B><I><FONT COLOR=3D"#000000" FACE=3D"Courier New">Li =
Baosheng</FONT><FONT COLOR=3D"#000000" SIZE=3D4 FACE=3D"Courier =
New"></FONT>&nbsp;<FONT COLOR=3D"#000000" SIZE=3D4 =
FACE=3D"??"></FONT></I></B><I></I><BR>
<B></B><B><I></I></B><B><I></I></B><B><I><FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Courier New">XRay Software Developer</FONT><FONT =
COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial"> -</FONT><FONT =
COLOR=3D"#000000" FACE=3D"=CB=CE=CC=E5"></FONT> <FONT COLOR=3D"#000000" =
FACE=3D"Courier New">GTO</FONT></I></B><I></I><FONT COLOR=3D"#000000" =
FACE=3D"=CB=CE=CC=E5"><BR>
</FONT><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"MS Sans =
Serif">No.2,North Yong Chang Road</FONT><FONT COLOR=3D"#000000" =
FACE=3D"=CB=CE=CC=E5"><BR>
</FONT><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"MS Sans Serif">Beijing =
Economic &amp; Technological Development Area</FONT><FONT =
COLOR=3D"#000000" FACE=3D"=CB=CE=CC=E5"><BR>
</FONT><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"MS Sans Serif">Beijing, =
P.R.China</FONT><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;</FONT>&nbsp;<FONT COLOR=3D"#000000" =
SIZE=3D1 FACE=3D"MS Sans Serif"> 100176</FONT><FONT COLOR=3D"#000000" =
FACE=3D"=CB=CE=CC=E5"> </FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">sametime =
account: Li, Baosheng</FONT><BR>
<FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Wingdings">(</FONT><FONT =
COLOR=3D"#000000" SIZE=3D1 FACE=3D"MS Sans Serif"> :</FONT><FONT =
COLOR=3D"#000000" FACE=3D"=CB=CE=CC=E5"></FONT> <FONT COLOR=3D"#000000" =
SIZE=3D1 FACE=3D"MS Sans Serif">(86010) 67881880ext.5476</FONT><FONT =
COLOR=3D"#000000" FACE=3D"=CB=CE=CC=E5"><BR>
</FONT><FONT COLOR=3D"#000000" FACE=3D"Wingdings">2</FONT><FONT =
COLOR=3D"#000000" SIZE=3D1 FACE=3D"MS Sans Serif"> :</FONT><FONT =
COLOR=3D"#000000" SIZE=3D1 FACE=3D"Courier New"></FONT>&nbsp;<FONT =
COLOR=3D"#000000" SIZE=3D1 FACE=3D"MS Sans Serif"> (86010) =
67881858</FONT><FONT COLOR=3D"#000000" FACE=3D"=CB=CE=CC=E5"><BR>
</FONT>
<BR><FONT FACE=3D"Courier New"></FONT>&nbsp;
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C2EBA8.F37A5930--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019