This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-1.1.2 g++ causing as: Error in tmpfile: with templates


I am compiling a source file on SGI IRIX 6.3 with EGCS 1.1.2, gcc/g++
2.91.66.  MIPS R5000 CPU, with SGI IDO software installed.

So far everything has compiled nicely in a large software package,
except for one file.

I am compiling N32 ELF objects/libs so I no longer use gas, and use the
standard assembler.  I traced this though, and my compilation command is
calling the correct /usr/lib32/cmplrs/asm assembler.

I read through man pages, trying to find switches that could mess with
this, and get this to compile, but no luck


I am getting errors like

as: Error: /var/tmp/cczVzZ61.s, line 19084: invalid expression with
%hi/%lo:
__t18__rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt24__default_alloc_template2b0i0ZRt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt24__default_alloc_template2b0i0ZPt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt24__default_alloc_template2b0i0RCt18__rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt24__default_alloc_template2b0i0ZRt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_strin!
g3ZcZt18string_char_traits1ZcZt2

and 

as: Error: /var/tmp/cczVzZ61.s, line 19100: Truncating token:
__t18__rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt24__default_alloc_template2b0i0ZRt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt24__default_alloc_template2b0i0ZPt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt24__default_alloc_template2b0i0RCt18__rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt24__default_alloc_template2b0i0ZRt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt6vector2Zt12basic_strin!
g3ZcZt18string_char_traits1ZcZt2

Does anyone know how I can get this routine to compile?
If this is a known bug in the version of egcs I am using, I would
appreciate finding out what version contains the fix, otherwise I would
like to avoid moving to gcc 2.95+.  I tried 2.95.1, and gave up after a
day of wasted time trying to compile it.  Egcs-1.1.2 compiled nicely
first time.

Is there a way I can adjust my system so the asm uses longer string
lengths, or switches with the assembler to get them to work.  Man pages
aren't any help.


	Thanks in Advance

	Sean

-- 
Sean Canny, Maptek Pty Ltd
PH   : 9328 4111
Email: Sean.Canny@perth.maptek.com.au
Web  : http://www.maptek.com.au/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]