Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Q]: STL maps + HP-UX 9.x + gcc-2.7.* asm problems ????

0 views
Skip to first unread message

Miljenko Cvjetko

unread,
Nov 11, 1996, 3:00:00 AM11/11/96
to

Hallo everybody!!

We came up with some problems with STL maps (and sometimes some complex STL
containers (container of containers)) under HP_UX 9.x and GNU gcc 2.7.*
compiler.
Namely program (pretty complex right now, so I cannot send you whole
listing) is compiled without any problems until assembling when some strange
errors happen.

Here is what happen:

cvjetko@rt05:include/gcl/gcl/bin[2084]$> /CL/rt05A/user/cvjet/include/gcl/gcl/examples/t_pn_err.cpp <
gcc -v -g -frtti -I /CL/rt05A/user/cvjet/include/gcl/gcl -o /CL/rt05A/user/cvjet/include/gcl/gcl/bin/t_pn_err.x /CL/rt05A/user/cvjet/include/gcl/gcl/examples/t_pn_err.cpp -lg++ -lstdc++ -lm
Reading specs from /usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.7.2.1/specs
gcc version 2.7.2.1
/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.7.2.1/cpp -lang-c++ -v -I /CL/rt05A/user/cvjet/include/gcl/gcl -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -D__hppa
__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D_HPUX_SOURCE -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa) -g -D__hp9000s700 -D_PA_RISC1_1 /CL/rt05A/u
ser/cvjet/include/gcl/gcl/examples/t_pn_err.cpp /usr/tmp/cca04814.ii
GNU CPP version 2.7.2.1 (hppa)
#include "..." search starts here:
#include <...> search starts here:
/CL/rt05A/user/cvjet/include/gcl/gcl
/usr/gnu/lib/g++-include
/usr/gnu/include
/usr/gnu/hppa1.1-hp-hpux/include
/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.7.2.1/include
/usr/include
End of search list.
/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.7.2.1/cc1plus /usr/tmp/cca04814.ii -quiet -dumpbase t_pn_err.cc -g -version -frtti -o /usr/tmp/cca04814.s
GNU C++ version 2.7.2.1 (hppa) compiled by GNU C version 2.7.2.1.
/usr/gnu/hppa1.1-hp-hpux/bin/as -o /usr/tmp/cca048141.o /usr/tmp/cca04814.s
/usr/tmp/cca04814.s: Assembler messages:
/usr/tmp/cca04814.s:121688: Error: Field out of range [-262144..262143] (269576).
/usr/tmp/cca04814.s:121688: Error: Field out of range [-262144..262143] (265668).
/usr/tmp/cca04814.s:121688: Error: Field out of range [-262144..262143] (265584).
/usr/tmp/cca04814.s:121688: Error: Field out of range [-262144..262143] (265556).


We even looked in *.s file and error is reported in the last line (that has nothing
to do with fields ????).
It runs with djgpp under dos, gcc 2.7.2 under Linux, and some other non-gnu compilers, the
problem appears only with HP_UX 9.0* and **sometimes** ( all I could find out is taht certain
header file order of inclusion (I can't avoid it right now) or class hierarchy, maps or
complex containers are involved in problem)

Is there any solution for thisa problem??
HP_UX 10.x ??
gcc 2.8.0 ?? (when it comes)

Yes. gcc is compiled as it should be (--with_gnu_as).

Thanx in advance!!!

m.

Gotz Winterfeldt

unread,
Nov 11, 1996, 3:00:00 AM11/11/96
to Miljenko Cvjetko

Hey,

I am not sure, but for me it seems to be a lack of memory for the
assembler. We had the same kind of problem on our sun.

We then compiled with the -fno-implicit-templates option and
used include files for the realisation of templates. That solved
our problem.

Goetz

-----------------------------------------------------------------
Goetz Winterfeldt

Centre Hospitalier Where ever you are ....
Universitaire de Nancy
(CHU) ^^ ***
54511 Vandoeuvre Cedex ^^
____________________
Bureau: ++33 83154652
Private: ++33 83951248

Email: g.wint...@chu-nancy.fr
wint...@loria.fr

0 new messages