This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Assembler problem on SPARC Solaris 2.6
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Assembler problem on SPARC Solaris 2.6
- From: Oliver Schuster <oschuste at plg2 dot math dot uwaterloo dot ca>
- Date: Fri, 12 Feb 1999 11:28:39 -0500 (EST)
- Reply-To: Oliver Schuster <oschuste at plg2 dot math dot uwaterloo dot ca>
I encountered the following problem on a SPARC Solaris 2.6 system running
egcs-1.1.1:
------------------------
sh-2.00$ uname -a
SunOS plg2.math 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-4
sh-2.00$ cat test.cc
#include <string>
#include <map>
typedef map< string, string, less < string > > defmap;
int main() {
defmap dm;
dm.insert(defmap::value_type( string("a"), string("a") ));
}
sh-2.00$ g++ -v
Reading specs from /u/oschuster/egcs-1.1.1/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
sh-2.00$ as -V
as: WorkShop Compilers 4.X dev 18 Sep 1996
< Usage information deleted >
sh-2.00$ g++ test.cc
/usr/ccs/bin/as: "/var/tmp/cc0ropbX.s", line 2280: error: can't compute value of an expression involving an external symbol
sh-2.00$ /software/gnu/bin/as -v
GNU assembler version 2.7 (sparc-sun-solaris2.5), using BFD version 2.7
sh-2.00$ g++ -B/software/gnu/bin/ test.cc
/var/tmp/ccs9Cki8.s: Assembler messages:
/var/tmp/ccs9Cki8.s:4135: Error: misaligned data
< above line repeated 80 times with increasing line number >
------------------------
It looks similar to the assembler problem previously reported on the i386
Solaris system. Interestingly enough, changing the assembler to the gnu
assembler does not help, unless I was too naive and just providing the -B
option is not sufficient for an assembler change.
Oliver
Oliver Schuster
oschuste@plg.uwaterloo.ca