This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I got it to work. The problem was that I was using binutils 2.10.1 I downgraded to 2.9.1 and it started working again So, here's my setup and things I had to do to make -frepo work: -netwinder linux ( armv4l-unknown-linux) -binutils-2.9.1 - Get gcc 2.95.2 - Apply the patch from Netwinder.org (gcc-2.95.2-arm4.patch) - Apply the fix to gcc-2.95.2/gcc/tlink.c as detailed here: http://gcc.gnu.org/ml/gcc-patches/1999-10n/msg00840.htm -Build and install gcc 2.95.2 and -frepo should work Andy Ralph Siemsen wrote: > Well if it's any consolation I get the simiar errors on my pII system > with egcs-2.91.66. However it works just fine without the -frepo > option, so I'm guessing this option has "issues" in general. > > $ g++ -frepo -o mapvec.o -c foo.c > [ralphs@triton ralphs]$ gcc -frepo -o mapvec mapvec.o -lstdc++ > mapvec.o: In function `vector<basic_string<char, > string_char_traits<char>, __default_alloc_template<true, 0> >, > __default_alloc_template<true, 0> >::push_back(basic_string<char, > string_char_traits<char>, __default_alloc_template<true, 0> > const &)': > mapvec.o(.vector<basic_string<char, string_char_traits<char>, > __default_alloc_template<1, 0> >, __default_alloc_template<1, 0> > >::gnu.linkonce.t.push_back(basic_string<char, string_char_traits<char>, __default_alloc_template<1, 0> > const &)+0x35): undefined reference to `vector<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >, __default_alloc_template<true, 0> >::insert_aux(basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > *, basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &)' > mapvec.o: In function `map<char, int, less<char>, > __default_alloc_template<true, 0> >::insert(pair<char const, int> const > &)': > mapvec.o(.map<char, int, less<char>, __default_alloc_template<1, 0> > >::gnu.linkonce.t.insert(pair<char const, int> const &)+0x13): undefined reference to `rb_tree<char, pair<char const, int>, select1st<pair<char const, int> >, less<char>, __default_alloc_template<true, 0> >::insert_unique(pair<char const, int> const &)' > mapvec.o: In function `rb_tree<char, pair<char const, int>, > select1st<pair<char const, int> >, less<char>, > __default_alloc_template<true, 0> >::clear(void)': > mapvec.o(.rb_tree<char, pair<char const, int>, select1st<pair<char > const, int> >, less<char>, __default_alloc_template<1, 0> > >::gnu.linkonce.t.clear(void)+0x21): undefined reference to `__erase__t7rb_tree5ZcZt4pair2ZCcZiZt9select1st1Zt4pair2ZCcZiZt4less1ZcZt24__default_alloc_template2b1i0Pt14__rb_tree_node1Zt4pair2ZCcZi' > collect2: ld returned 1 exit status > > $ g++ -o mapvec foo.c > [ralphs@triton ralphs]$ ./mapvec > vector[0] = Foo ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |