This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.8.0 Build Failed.
- From: rahul <rahulroot at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 4 Jun 2013 22:58:39 +0530
- Subject: Re: GCC 4.8.0 Build Failed.
- References: <CAJ7o+GtCKN=YiDV6qR2CgySGhNERUhbX1MEZebhHOuDwFKhR7Q at mail dot gmail dot com> <CAKOQZ8zJ=9Xpm4pRBi1DfOyNsoqpeCyK_822sTACiPnV8O=aTw at mail dot gmail dot com>
Hi,
I guess these errors are propagating from systemmap sdt.h file. I made
some changes in this header file to avoid compiler error explained
above.Some one told me to use the upgrade version of systemmap for
building gcc 4.8.0, but what i found we are using some macros defined
in sdt.h,
here is the diff of installed systemmap and systemmap-2.0(new one)
section which matter in this case..
39,43c41,47
< # define _SDT_ASM_1(x) _SDT_S(x)"\n"
< # define _SDT_ASM_2(a, b) _SDT_S(a)"," _SDT_S(b)"\n"
< # define _SDT_ASM_3(a, b, c) _SDT_S(a)"," _SDT_S(b)"," _SDT_S(c)"\n"
< # define _SDT_ASM_5(a, b, c, d, e) _SDT_S(a)"," _SDT_S(b)"," _SDT_S(c)","\
< _SDT_S(d)"," _SDT_S(e)"\n"
---
> # define _SDT_ASM_1(x) _SDT_S(x) "\n"
> # define _SDT_ASM_2(a, b) _SDT_S(a) "," _SDT_S(b) "\n"
> # define _SDT_ASM_3(a, b, c) _SDT_S(a) "," _SDT_S(b) "," \
> _SDT_S(c) "\n"
> # define _SDT_ASM_5(a, b, c, d, e) _SDT_S(a) "," _SDT_S(b) "," \
> _SDT_S(c) "," _SDT_S(d) "," \
> _SDT_S(e) "\n"
I just propagated these changes in installed sdt.h file, i solved
compiler error, but I guess i made mess while linking.
Any suggestion, are these changes are cause of linker error.....
Rahul.
On Tue, Jun 4, 2013 at 7:11 PM, Ian Lance Taylor <iant@google.com> wrote:
> On Mon, Jun 3, 2013 at 11:52 PM, rahul <rahulroot@gmail.com> wrote:
>>
>> `_.stapsdt.base' referenced in section `.note.stapsdt' of
>> ../libsupc++/.libs/libsupc++convenience.a(eh_catch.o): defined in
>> discarded section `.stapsdt.base[.stapsdt.base]' of
>> ../libsupc++/.libs/libsupc++convenience.a(eh_catch.o)
>> `_.stapsdt.base' referenced in section `.note.stapsdt' of
>> ../libsupc++/.libs/libsupc++convenience.a(eh_throw.o): defined in
>> discarded section `.stapsdt.base[.stapsdt.base]' of
>> ../libsupc++/.libs/libsupc++convenience.a(eh_catch.o)
>> `_.stapsdt.base' referenced in section `.note.stapsdt' of
>> ../libsupc++/.libs/libsupc++convenience.a(eh_throw.o): defined in
>> discarded section `.stapsdt.base[.stapsdt.base]' of
>> ../libsupc++/.libs/libsupc++convenience.a(eh_catch.o)
>> collect2: error: ld returned 1 exit status
>> make[6]: *** [libstdc++.la] Error 1
>
> Are those all the errors, or did you omit some? Because I don't
> understand those errors at all. I don't know where the string
> "stapsdt" is coming from.
>
> Ian