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: crosscompiler x86->solaris2.8


Thank you, thank you, thank you and ..... thank you.
Now it works, at least with --enable-languages="c". Without this option 
I get:

foo/build-gcc/gcc/xgcc -Bfoo/build-gcc/gcc/ -nostdinc++ -Lfoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/src -Lfoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -Bfoo/myGCC/sparc-sun-solaris2.8/bin/ -Bfoo/myGCC/sparc-sun-solaris2.8/lib/ -isystem foo/myGCC/sparc-sun-solaris2.8/include -nostdinc++ -Ifoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8 -Ifoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include -I../../../../gcc-3.0.4/libstdc++-v3/libsupc++ -I../../../../gcc-3.0.4/libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../../../../gcc-3.0.4/libstdc++-v3/src/limits.cc -o limits.o >/dev/null 2>&1
/bin/sh ../libtool --tag CXX --mode=compile foo/build-gcc/gcc/xgcc -Bfoo/build-gcc/gcc/ -nostdinc++  -Lfoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/src -Lfoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -Bfoo/myGCC/sparc-sun-solaris2.8/bin/ -Bfoo/myGCC/sparc-sun-solaris2.8/lib/ -isystem foo/myGCC/sparc-sun-solaris2.8/include -nostdinc++ -Ifoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8 -Ifoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include -I../../../../gcc-3.0.4/libstdc++-v3/libsupc++  -I../../../../gcc-3.0.4/libstdc++-v3/libmath    -g -O2 -fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline  -fdiagnostics-show-location=once  -g    -c ../../../../gcc-3.0.4/libstdc++-v3/src/locale.cc
foo/build-gcc/gcc/xgcc -Bfoo/build-gcc/gcc/ -nostdinc++ -Lfoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/src -Lfoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -Bfoo/myGCC/sparc-sun-solaris2.8/bin/ -Bfoo/myGCC/sparc-sun-solaris2.8/lib/ -isystem foo/myGCC/sparc-sun-solaris2.8/include -nostdinc++ -Ifoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8 -Ifoo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include -I../../../../gcc-3.0.4/libstdc++-v3/libsupc++ -I../../../../gcc-3.0.4/libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../../../../gcc-3.0.4/libstdc++-v3/src/locale.cc  -fPIC -DPIC -o .libs/locale.o
In file included from ../../../../gcc-3.0.4/libstdc++-v3/src/locale.cc:557:
foo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8/bits/ctype_noninline.h: In
   constructor `std::ctype<char>::ctype(const char*, bool, unsigned int)':
foo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8/bits/ctype_noninline.h:39: `_ctype_'
   undeclared (first use this function)
foo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8/bits/ctype_noninline.h:39: (Each
   undeclared identifier is reported only once for each function it appears 
   in.)
make[3]: *** [locale.lo] Error 1
make[3]: Leaving directory `foo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `foo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `foo/build-gcc/sparc-sun-solaris2.8/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

Have I forgotten to put some library in prefix/sparc-sun-solars2.8/lib , 
or some header in prefix/sparc-sun-solars2.8/sys-include (Maybe I should 
have put them in prefix/sparc-sun-solars2.8/include instead?) Or is it 
something else?

In any case, I am very grateful for your help. I was starting to doubt 
whether I'd ever succeed (neah, not really).

/Per



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