This is the mail archive of the gcc@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.0.1 problem on aix4.2


	I have encounted a problem compiling some c++ code that uses a few stl
containers.  A short sample of that creates the problem is included below.  I
haven't seen any comments on this so I'm concerned that I compiled/installed
egcs improperly.  Any insight would be appreciated.  I can send more
information if needed.  The code I tested compiles find under aix4.2 with
egcs-1.0 and under solaris2.5.1 with egcs-1.0 and egcs-1.0.1.

We require two programs:
tmp.c++:
--------
#include <vector>

vector<double> junk ();

int main ()
{ 
  vector<double> a;
  a = junk ();
  return 1; 
}
----------------------------------------
tmp1.c++
--------
#include <vector>
vector<double> junk ()
{
  vector<double>b (2, 0.0);
  return b;
}
----------------------------------------

Here is the result of running g++ -v tmp.c++ tmp1.c++

Reading specs from /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
 /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -Asystem(unix) -Asystem(aix) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -D_ARCH_COM tmp.c++ /tmp/cc2Po7Ea.ii
GNU CPP version egcs-2.90.23 980102 (egcs-1.0.1 release)
#include "..." search starts here:
#include <...> search starts here:
 /home/copi/egcs/include/g++
 /usr/local/include
 /home/copi/egcs/rs6000-ibm-aix4.2.0.0.0/include
 /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/include
 /usr/include
End of search list.
 /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/cc1plus /tmp/cc2Po7Ea.ii -quiet -dumpbase tmp.cc -version -o /tmp/cc2Po7Ea.s
GNU C++ version egcs-2.90.23 980102 (egcs-1.0.1 release) (rs6000-ibm-aix4.2.0.0.0) compiled by GNU C version egcs-2.90.23 980102 (egcs-1.0.1 release).
 as -u -mcom -o /tmp/cc2Po7Ea1.o /tmp/cc2Po7Ea.s
 /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -Asystem(unix) -Asystem(aix) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -D_ARCH_COM tmp1.c++ /tmp/cc2Po7Ea.ii
GNU CPP version egcs-2.90.23 980102 (egcs-1.0.1 release)
#include "..." search starts here:
#include <...> search starts here:
 /home/copi/egcs/include/g++
 /usr/local/include
 /home/copi/egcs/rs6000-ibm-aix4.2.0.0.0/include
 /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/include
 /usr/include
End of search list.
 /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/cc1plus /tmp/cc2Po7Ea.ii -quiet -dumpbase tmp1.cc -version -o /tmp/cc2Po7Ea.s
GNU C++ version egcs-2.90.23 980102 (egcs-1.0.1 release) (rs6000-ibm-aix4.2.0.0.0) compiled by GNU C version egcs-2.90.23 980102 (egcs-1.0.1 release).
 as -u -mcom -o /tmp/cc2Po7Ea2.o /tmp/cc2Po7Ea.s
 /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/ld -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect /lib/crt0.o -L/home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23 -L/home/copi/egcs/rs6000-ibm-aix4.2.0.0.0/lib -L/home/copi/egcs/lib /tmp/cc2Po7Ea1.o /tmp/cc2Po7Ea2.o -lstdc++ -lm /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/libgcc.a -lc /home/copi/egcs/lib/gcc-lib/rs6000-ibm-aix4.2.0.0.0/egcs-2.90.23/libgcc.a
ld: 0711-224 WARNING: Duplicate symbol: __malloc_alloc_template<0>::__malloc_alloc_oom_handler   
ld: 0711-224 WARNING: Duplicate symbol: __default_alloc_template<false, 0>::heap_size
ld: 0711-224 WARNING: Duplicate symbol: __default_alloc_template<false, 0>::end_free
ld: 0711-224 WARNING: Duplicate symbol: __default_alloc_template<false, 0>::start_free
ld: 0711-224 WARNING: Duplicate symbol: __default_alloc_template<false, 0>::free_list
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-224 WARNING: Duplicate symbol: _t23__malloc_alloc_template1i0.__malloc_alloc_oom_handler
ld: 0711-224 WARNING: Duplicate symbol: _t24__default_alloc_template2b0i0.heap_size
ld: 0711-224 WARNING: Duplicate symbol: _t24__default_alloc_template2b0i0.end_free
ld: 0711-224 WARNING: Duplicate symbol: _t24__default_alloc_template2b0i0.start_free
ld: 0711-224 WARNING: Duplicate symbol: _t24__default_alloc_template2b0i0.free_list
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.



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