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


Per Fransson wrote:
> 
> Thank you, thank you, thank you and ..... thank you.

 You are welcome, thanks will get the response engines working...

> Now it works, at least with --enable-languages="c". Without this option
> I get:
> 
> foo/build-gcc/gcc/xgcc -Bfoo/build-gcc/gcc/ -nostdinc++
> <snip>
> -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)
> 
> 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?

 This looks like 'something else'... The Win32/Mingw-target hadn't its own
'libstdc++-v3/config/os/<opsys>' subdir yet in gcc-3.0.x and this error was
familiar from this... Neither has 'solaris2.8', there are subdirs for 'solaris2.5'
- 'solaris2.7', but not for 'solaris2.8' in 'libstdc++-v3/config/os/solaris'.
So it is not 'supported' yet in 'gcc-3.0.4'...

 The 'gcc-3.1' is approaching its release date and the '20020408' prerelease
is available today, but unfortunately neither it has the 'solaris2.8' support
in 'libstdc++-v3'. So the question is how far away the solaris2.8 stuff is
from solaris2.7 and whether the cross-compiler could be configured and built
for '2.7', but using the '2.8' headers and libraries. Or if the '2.7'-stuff
is available, it can be used... In Finland Sun sent the '2.7' install CDs with
absolutely no cost for the askers, so the availability should be fine...

 It should be almost 100% sure that all '2.7' binaries should run under '2.8'.
The situation may be quite the same as between RedHat 7.1 and RedHat 7.2, or
then between RedHat 6.2 and RedHat 7.0, smaller or bigger differences... Or
between WinNT4.0 and Win2k, 'backward compatability' should exist.

 In your case I would produce a toolset for Solaris2.7 and then have some
compatability with both the '2.7' and '2.8' targets. But your goals may be
different...

 I haven't tried '2.8' yet as the target, so it being 'unsupported' was new
to me too, but now it is known, thanks to your try... Maybe the 'support'
can be easily added, or if you will find a prebuilt 'gcc-3.0.4 for Solaris2.8'
at 'http://www.sunfreeware.com', and you can use the prebuilt 'libstdc++.a*'
and 'libstdc++.so*' etc. from it, or find patches for gcc-3.0.x there...

Cheers, Kai


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