This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Problems building gcc-3.1.1 on 32-bit sparc-sun-solaris2.7
- From: Kick Damien-DKICK1 <DKICK1 at motorola dot com>
- To: "'Rupert Wood'" <me at rupey dot net>, Kick Damien-DKICK1 <DKICK1 at motorola dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 31 Jul 2002 13:40:44 -0500
- Subject: RE: Problems building gcc-3.1.1 on 32-bit sparc-sun-solaris2.7
Rupert Wood [me@rupey.net] wrote:
> There should be 32-bit libgcc_s.so in
>
> /usr/test/awo/user_work/kick/sparc-sun-solaris2.7-32/lib
> However, I'm quite confused about how the sparcv9 version got built!
> It may just be a mis-install; [...]
If I'm remembering the order of this correctly, I first did a 'rm -r
*' in the build directory in which I had run my previous, failed build
and then reconfigured it with the additional '--disable-multilib'. Of
course, I've tried a few different things at this point, so I could be
confused.
> [...] you could try running 'file' on lib/sparcv9/libgcc_s.so; if
> it's actually 32-bit, move it into the lib directory. Otherwise, go
> to the gcc subdirectory of your build tree and try 'make
> libgcc_s.so' to hopefully build the 32-bit version.
[kick@csdndev07 ~/tmp]% file
/usr/test/awo/user_work/kick/sparc-sun-solaris2.7-32/lib/sparcv9/libgcc_s.so
/usr/test/awo/user_work/kick/sparc-sun-solaris2.7-32/lib/sparcv9/libgcc_s.so
: ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not
stripped
[kick@csdndev07 ~/tmp]%
Indeed, it looks as if the 'libgcc_s.so' is 32-bit. After I
"manually" (there has to be a better word than the same "manual" used
in "manual labor") copied 'libgcc_s.so' from '.../lib/sparcv9' into
'.../lib', everything worked just fine.
[kick@csdndev07 ~/tmp]% cat foo.cc
#include <iostream>
int main()
{
std::cout << "Hello, sailor.\n";
}
[kick@csdndev07 ~/tmp]% g++ foo.cc
[kick@csdndev07 ~/tmp]% ./a.out
Hello, sailor.
[kick@csdndev07 ~/tmp]%
> There might be a makefile bug; I'll have a quick investigate here.
Let me know if it would help for me to re-run the bootstrap/install or
some such...
--
Damien Kick