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]

gcc 3.0.1 - Linux to Sun


I'm attempting to build a cross compiler from i586-pc-linux-gnu to
sparc-sun-solaris2.7.  Initially I built a native 3.0.1 linux compiler
and I'm trying to use that to build the linux->sun compiler.  I also
built glibc-2.2.3 (with gcc-2.95.3) to supply shared libraries.

When I build the cross compiler I would like it to use the shared
libraries built by the native 3.0.1 gcc and the 2.2.3 glibc.  I can
configure and build the cross compiler normally without any trouble, but
ldd shows the executables are linking against my /lib,/usr/lib
libraries.

So I set CFLAGS as so:

CFLAGS="-L/tools/build/gcc-3.0.1/i586-pc-linux-gnu/lib \
-L$/tools/build/glibc-2.2.3/i586-pc-linux-gnu/lib \
-Wl,--dynamic-linker=/tools/build/glibc-2.2.3/i586-pc-linux-gnu/lib/ld-linux.so.2,\
-rpath,/tools/build/glibc-2.2.3/i586-pc-linux-gnu/lib \
-I/tools/build/glibc-2.2.3/i586-pc-linux-gnu/include \
-Wl,-rpath,/tools/build/gcc-3.0.1/i586-pc-linux-gnu/lib"
CPPFLAGS=${CFLAGS}
export CFLAGS CPPFLAGS

Using these flags I can successfully build several packages with proper
ldd output, but binutils dies with the same errors listed in
http://gcc.gnu.org/ml/gcc-prs/2001-07/msg00064.html and
http://gcc.gnu.org/ml/gcc-prs/2001-06/msg00905.html.  The only
difference is that they are trying to build the getpwd in the gcc
distribution and I'm trying to build the getpwd in the binutils
distribution.

I also have to change the CFLAGS_FOR_TARGET in Makefile.in so these
flags are only used for host programs, but that shouldn't matter at this
point anyway.

Any thoughts on why I get the 

binutils-2.11.2/libiberty/getpwd.c:62: storage size of `dotstat' isn't
known
...

error messages?

Thanks!  Mike.

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]