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]
Other format: [Raw text]

Re: GCC 4.8 build


I had to install elfutils as Systemtap requires it.

This is what I see from the help of nm (elfutils) ...

% nm --help | grep -e "\-p" -e "\-g"
  -g, --extern-only          Display only external symbols
  -s, --print-armap          Include index for symbols from archive members
  -A, --print-file-name      Print name of the input file before every symbol
  -P, --portability          Same as --format=posix
  -S, --print-size           Print size of defined symbols
  -p, --no-sort              Do not sort the symbols

Is this the information that you needed / you want me to run any other
specific command with elfutils nm to see the output?

Thanks,
Kalai

On Wed, Mar 27, 2013 at 10:40 AM, Ian Lance Taylor <iant@google.com> wrote:
> On Wed, Mar 27, 2013 at 10:32 AM, Kalai Rajah N <kalairajah@gmail.com> wrote:
>> I fixed the problem due to systemtap. Now I'm getting stuck with the
>> following error message:
>>
>> ./gcc-4.8.0/libgcc/../gcc -I../../../../gcc-4.8.0/libgcc/../include
>> -I../../../../gcc-4.8.0/libgcc/config/libbid
>> -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o morestack.o
>> -MT morestack.o -MD -MP -MF morestack.dep -c -xassembler-with-cpp
>> -include morestack.vis
>> ../../../../gcc-4.8.0/libgcc/config/i386/morestack.S
>> ./morestack.vis: Assembler messages:
>> ./morestack.vis:1: Error: junk at end of line, first unrecognized
>> character is `:'
>> ./morestack.vis:2: Error: Missing symbol name in directive
>> ./morestack.vis:2: Error: junk at end of line, first unrecognized
>> character is `|'
>> make[5]: *** [morestack.o] Error 1
>> make[5]: Leaving directory
>> `/dev/shm/sw-build/gcc-4.8.0-build/x86_64-unknown-linux-gnu/32/libgcc'
>> make[4]: *** [multi-do] Error 1
>> make[4]: Leaving directory
>> `/dev/shm/sw-build/gcc-4.8.0-build/x86_64-unknown-linux-gnu/libgcc'
>> make[3]: *** [all-multi] Error 2
>> make[3]: Leaving directory
>> `/dev/shm/sw-build/gcc-4.8.0-build/x86_64-unknown-linux-gnu/libgcc'
>> make[2]: *** [all-stage1-target-libgcc] Error 2
>>
>> make[2]: Leaving directory `/dev/shm/sw-build/gcc-4.8.0-build'
>> make[1]: *** [stage1-bubble] Error 2
>> make[1]: Leaving directory `/dev/shm/sw-build/gcc-4.8.0-build'
>> make: *** [all] Error 2
>>
>> From the mail archives, I see that this might be caused due to nm /
>> awk. I have nm(elfutils) 0.155 and awk 4.0.2 - and I'm still seeing
>> the problem. Anyone else faced the same problem?
>
> Most people use nm from the GNU binutils.  The code in this case is
> running nm -pg.  I don't have a copy of the elfutils.  What does the
> elfutils nm print when using -pg?  For the GNU binutils nm, the -p
> option is selects portable output and the -g option selects only
> external symbols.
>
> Ian


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