This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap 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]

Systemtap hello world error with ARM


Hi all,

I have cross compiled systemtap for ARM arch by
following method

During "Make all check" I got error

"/usr/include/fts.h:41:3: error: #error "<fts.h>
cannot be used with -D_FILE_OFFSET_BITS==64"

I added #undef __USE_FILE_OFFSET64 to 
linux-kernel-module.c in elfutils

also I did

 sed -i /ifndef/s/PACKAGE/PACKAGE_NAME/
libdwfl/libdwflP.h

But I got the same error again and I commented the
following lines in "/usr/include/fts.h" and continued
the compilation

-----------------------
/* The fts interface is incompatible with the LFS
interface which
   transparently uses the 64-bit file access
functions.  */
//#ifdef __USE_FILE_OFFSET64
//# error "<fts.h> cannot be used with
-D_FILE_OFFSET_BITS==64"
//#endif
-----------------------

Then I struck with error

"cannot find -lglib-2.0 collect2: ld returned 1 exit
status"

I have installed libglib-2.0 and continued the
compilation 

Again I struck with error

"src/runtime/staprun/relay.c:94: undefined reference
to `ppoll'"

I am using glibc 2.5 eventhough I got above error
and edited the src/runtime/staprun/relay.c file 
and compiled systemtap successfully and installed it
in OMAP ARM target.

In OMAP ARM target I have executed the following hello
world test and I got the following error.

# stap -v -ve 'probe begin { log("hello world") exit
() }'

ERROR 1:
=========
make: Entering directory
`/usr/src/kernel/Linux-2.6.22.1'
test -e include/linux/autoconf.h -a -e
include/config/auto.conf || (            \
echo;                                                 
         \
echo "  ERROR: Kernel configuration is invalid.";     
         \
echo "         include/linux/autoconf.h or
include/config/auto.conf are missing.";      \
echo "         Run 'make oldconfig && make prepare' on
kernel src to fix it.";  \
echo;                                                 
         \
/bin/false)
mkdir -p /tmp/stapwATnki/.tmp_versions
rm -f /tmp/stapwATnki/.tmp_versions/*

ERROR:2
=======
In file included from
/tmp/stapwATnki/stap_3c82b5f3ff7e56944d4563ca9f446a02_372.c:43:
usr/share/systemtap/runtime/regs.c: In function
'_stp_print_regs':
usr/share/systemtap/runtime/regs.c:225: warning:
implicit declaration of function 'condition_codes'
make[1]: ***
[/tmp/stapwATnki/stap_3c82b5f3ff7e56944d4563ca9f446a02_372.o]
Error 1
make: *** [_module_/tmp/stapwATnki] Error 2
make: Leaving directory
`/usr/src/kernel/Linux-2.6.22.1'
Pass 4: compiled C into
"stap_3c82b5f3ff7e56944d4563ca9f446a02_372.ko" in
22650usr/5030sys/33030real ms.
Pass 4: compilation failed.  Try again with more '-v'
(verbose) options.
Running rm -rf /tmp/stapwATnki

I don't know how to proceed further and to rectify the
above errors.Can any one tell me how to rectify above
error and also to execute the hello world in arm
target.

Thanks,
Naren.



      5, 50, 500, 5000. Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html


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