01-08-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to compile c files using cc and gcc commands but getting errors cc and gcc not found. I tried man cc and man gcc still not found.
Can somebody help me this problem.
thanks (3 Replies)
Discussion started by: asif iqbal
3 Replies
2. Programming
I get this error warning.
test.c: In function 'main':
test.c:5: warning: incompatible implicit declaration of built-in function 'memset'
After compiling this code
#include <stdio.h>
int main() {
char pBuffer;
memset(pBuffer, 0, 32);
return 0;
}
What seems... (2 Replies)
Discussion started by: sledge76
2 Replies
3. Programming
Dear all,
Any body please guide, i require a C which will run in Linux environment. Its urgent please.
warm regards,
Senthil K (1 Reply)
Discussion started by: Senthil
1 Replies
4. Programming
Can someone tell me what does -|curses do here when the C program got compiled?
gcc *.c -lcurses
Thanks! (1 Reply)
Discussion started by: whatisthis
1 Replies
5. SuSE
Hi all,
I am trying to create 64-bit shared libraries on Power PC "ppc64" architecture SuSe Linux 10 machine using gcc compiler.
I am using "-m64" as an option for gcc to create 64-bit libraries which needs pam module. As we specify -m64 the compiler should look for all 64-bit... (0 Replies)
Discussion started by: vyshu2112
0 Replies
6. Solaris
AIM- Install Oracle 11g on Solaris using VMWare
Steps
1.Logged on as root
2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc
3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD
4.Copied files from CD to /usr/local/bin/gcc
5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies
7. AIX
Hi,
I am working with AIX5.3 and I downloaded the gcc-4.2.4.tar.bz2 from the site and when I am trying to un-tar it.It is throwing error--
Please help me to resolve it.
Thanks in Advance.. (6 Replies)
Discussion started by: smartgupta
6 Replies
8. UNIX for Dummies Questions & Answers
Hi, I have recently got a job in unix, now training is going on and we have been practicing on telnet, so to practice at home I have installed vmware(virtual machine) and planning to download ubuntu. So my doubt is that whether I can write c and cpp progs in vi editor and can I run them by default... (5 Replies)
Discussion started by: vishal.973s
5 Replies
9. UNIX for Dummies Questions & Answers
I m trying to Install FTP (vsftpd-2.3.2) on my linux machine.
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)... (7 Replies)
Discussion started by: pinga123
7 Replies
10. Programming
I want to compile all files in my directory i wrote
find *.c | gcc -o * *.c
but it dosent work :( Help pliz (12 Replies)
Discussion started by: rzili
12 Replies
LEARN ABOUT CENTOS
error::dwarf
ERROR::DWARF(7stap) ERROR::DWARF(7stap)
NAME
error::dwarf - dwarf debuginfo quality problems
DESCRIPTION
Systemtap sometimes relies on ELF/DWARF debuginfo for programs being instrumented to locate places to probe, or context variables to
read/write, just like a symbolic debugger does. Even though examination of the program's source code may show variables or lines where
probes may be desired, the compiler must preserve information about them for systemtap (or a debugger such as gdb) to get pinpoint access
to the desired information. If a script requires such data, but the compiler did not preserve enough of it, pass-2 errors may result.
Common conditions that trigger these problems include;
compiler version
Prior to GCC version 4.5, debuginfo quality was fairly limited. Often developers were advised to build their programs with -O0 -g
flags to disable optimization. GCC version 4.5 introduced a facility called "variable-tracking assignments" that allows it to gen-
erate high-quality debuginfo under full -O2 -g optimization. It is not perfect, but much better than before. Note that, due to
another gcc bug (PR51358) -O0 -g can actually sometimes make debuginfo quality worse than for -O2 -g.
function inlining
Even modern gcc sometimes has problems with parameters for inlined functions. It may be necessary to change the script to probe at
a slightly different place (try a .statement() probe, instead of a .function() probe, somewhere a few source lines into the body of
the inlined function. Or try putting a probe at the call site of the inlined function. Or use the if @defined($var) { ... } script
language construct to test for the resolvability of the context variable before using it.
instruction reordering
Heavily optimized code often smears the instructions from multiple source statements together. This can leave systemtap with no
place to choose to place a probe, especially a statement probe specified by line number. Systemtap may advise to try a nearby line
number, but these may not work well either. Consider placing a probe by a statement wildcard or line number range.
ALTERNATIVES
In order to reduce reliance on ELF/DWARF debuginfo, consider the use of statically compiled-in instrumentation, such as kernel tracepoints,
or <sys/sdt.h> userspace markers. Such instrumentation hook sites are relatively low cost (just one NOP instruction for sdt.h), and nearly
guarantee the availability of parameter data and a reliable probe site, all without reliance on debuginfo.
SEE ALSO
stap(1),
http://dwarfstd.org/,
http://sourceware.org/systemtap/wiki/TipContextVariables,
http://gcc.gnu.org/wiki/Var_Tracking_Assignments,
warning::debuginfo(7stap),
error::reporting(7stap)
ERROR::DWARF(7stap)