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 problems



Hello Kai,

Thank you, thank you, I had been banging my head on the desk for days, 
success at last but not without tears.

>  It may be that editing the:
>   /export/dalmany/gdsm/build-gcc/sparc-sun-solaris2.8/libstdc++-
>v3/config.status
>by replacing 'newlib' with 'solaris/solaris2.7' in the lines defining the 
>'os/<system>/bits'

Unfortunately, this did not work as you suspected

>directory used, and then trying 'make' again, the 'libstdc++-v3'-stuff 
>would be reconfigured
>and the build could succeed, but I'm not sure... Probably the symlinks will 
>not be fixed.
>
>  The reason WHY the wrong stuff was taken into use may be harder to track, 
>but using some
You are correct, I tried to find it, but have given up for the time being...

>'verbose'-mode for 'configure' and looking at the logfile, the reason may 
>be found. Anyway
Even with verbose and 'bash -x' in configure....

>this is a bug and needs a bug report to 'gcc-bug@gnu.org' or what it >then 
>was...
I will raise one tomorrow when I have more time (promise I will)

>
>  So the cure should be that the right stuff from
>    $source/libstdc++-v3/config/os/solaris/solaris2.7/bits
>should be symlinked into the    $build/sparc-sun-solaris2.8/libstdc++-
>v3/include/sparc-sun-solaris2.8/bits
>and why this didn't happen during the configuring is the bug to report and 
>to solve, but just
>manually fixing this issue is one workaround...

I manually fixed it using the following (build-gcc is where I build, 
gcc-3.0.4 is where the gcc-3.0.4.tar.bz2 was untared to:

cd ~/build-gcc
../gcc-3.0.4/configure --target=sparc-sun-solaris2.8 --prefix=/sun --verbose 
--with-headers=/sun/sparc-sun-solaris2.8/originals/sys-include 
--with-libs=/sun/sparc-sun-solaris2.8/originals/lib --with-gnu-as 
--with-gnu-ld --enable-threads=solaris --enable-languages=c,c++
cd 
~/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8/bits
ln -sf 
~/gcc-3.0.4/libstdc++-v3/config/os/solaris/solaris2.7/bits/ctype_base.h
ln -sf 
~/gcc-3.0.4/libstdc++-v3/config/os/solaris/solaris2.7/bits/ctype_noninline.h
ln -sf 
~/gcc-3.0.4/libstdc++-v3/config/os/solaris/solaris2.7/bits/os_defines.h
cd ~/build-gcc
make all install

Many thanks for all your help,
I will produce a guide to building "crosscompiler x86->solaris2.8" from 
scratch (a blank home directory) in the next few days and post it to the 
group.

Spencer




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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