Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] building ust for android/arm
@ 2011-04-20 17:37 Xing Fan
  2011-04-20 17:37 ` Xing Fan
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 17:37 UTC (permalink / raw)


I am building lttng ust-0.6 for android/Arm platform.

However, I have problems to build libust.so. The error msg is:  make: *** No
rule to make target `build/core/libust-initializer.c', needed by
`out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
Stop.

It is very strange that the compiler tries to pick up libust-initializer.c
from build/core folder, even though I have specified that the source file is
in my LOCAL_PATH;

Anyone has clue how to write a Android.mk for this?

/Stella



My Android.mk file looks like this:
===========================================================
include $(call all-subdir-makefiles)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libust
LOCAL_SRC_FILES := libust-initializer.c
LOCAL_C_INCLUDES += \
        $(LOCAL_PATH) \
        $(LOCAL_PATH)/include \
        external/userspace-rcu-0.4.6
include $(BUILD_SHARED_LIBRARY)
===============================================================


The Makefile.am looks like this
=========================================================================

ACLOCAL_AMFLAGS = -I config

# The order here is tricky. SUBDIRS applies both to compilation and
# installation. Programs depending on the libs must be built after
# libust and '.' (that contains the linker script). However, '.'
# must be installed after libust so it can overwrite libust.so with
# the linker script.
SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc libustd ustd
ustctl libustfork include doc

EXTRA_DIST = libust.ldscript.in libust-initializer.c
dist_bin_SCRIPTS = usttrace

ldscriptsdir = $(libdir)
ldscripts_DATA = libust.so libust-initializer.o

CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po

libust.so: libust.ldscript.in
    $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@

# It is very important to compile the initializer with PIC otherwise we
# may get obscure errors when linking to shared libraries.
libust-initializer.o: libust-initializer.c
    $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -o
$@ $<
===========================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110420/d27352ef/attachment-0002.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 17:37 [ltt-dev] building ust for android/arm Xing Fan
  2011-04-20 17:37 ` Xing Fan
@ 2011-04-20 17:37 ` Xing Fan
  2011-04-20 18:12 ` Mathieu Desnoyers
  2011-04-20 23:38 ` Matthew Khouzam
  3 siblings, 0 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 17:37 UTC (permalink / raw)


I am building lttng ust-0.6 for android/Arm platform.

However, I have problems to build libust.so. The error msg is:  make: *** No
rule to make target `build/core/libust-initializer.c', needed by
`out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
Stop.

It is very strange that the compiler tries to pick up libust-initializer.c
from build/core folder, even though I have specified that the source file is
in my LOCAL_PATH;

Anyone has clue how to write a Android.mk for this?

/Stella



My Android.mk file looks like this:
===========================================================
include $(call all-subdir-makefiles)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libust
LOCAL_SRC_FILES := libust-initializer.c
LOCAL_C_INCLUDES += \
        $(LOCAL_PATH) \
        $(LOCAL_PATH)/include \
        external/userspace-rcu-0.4.6
include $(BUILD_SHARED_LIBRARY)
===============================================================


The Makefile.am looks like this
=========================================================================

ACLOCAL_AMFLAGS = -I config

# The order here is tricky. SUBDIRS applies both to compilation and
# installation. Programs depending on the libs must be built after
# libust and '.' (that contains the linker script). However, '.'
# must be installed after libust so it can overwrite libust.so with
# the linker script.
SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc libustd ustd
ustctl libustfork include doc

EXTRA_DIST = libust.ldscript.in libust-initializer.c
dist_bin_SCRIPTS = usttrace

ldscriptsdir = $(libdir)
ldscripts_DATA = libust.so libust-initializer.o

CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po

libust.so: libust.ldscript.in
    $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@

# It is very important to compile the initializer with PIC otherwise we
# may get obscure errors when linking to shared libraries.
libust-initializer.o: libust-initializer.c
    $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -o
$@ $<
===========================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20110420/d27352ef/attachment.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 17:37 [ltt-dev] building ust for android/arm Xing Fan
@ 2011-04-20 17:37 ` Xing Fan
  2011-04-20 17:37 ` Xing Fan
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 17:37 UTC (permalink / raw)


I am building lttng ust-0.6 for android/Arm platform.

However, I have problems to build libust.so. The error msg is:  make: *** No
rule to make target `build/core/libust-initializer.c', needed by
`out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
Stop.

It is very strange that the compiler tries to pick up libust-initializer.c
from build/core folder, even though I have specified that the source file is
in my LOCAL_PATH;

Anyone has clue how to write a Android.mk for this?

/Stella



My Android.mk file looks like this:
===========================================================
include $(call all-subdir-makefiles)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libust
LOCAL_SRC_FILES := libust-initializer.c
LOCAL_C_INCLUDES += \
        $(LOCAL_PATH) \
        $(LOCAL_PATH)/include \
        external/userspace-rcu-0.4.6
include $(BUILD_SHARED_LIBRARY)
===============================================================


The Makefile.am looks like this
=========================================================================

ACLOCAL_AMFLAGS = -I config

# The order here is tricky. SUBDIRS applies both to compilation and
# installation. Programs depending on the libs must be built after
# libust and '.' (that contains the linker script). However, '.'
# must be installed after libust so it can overwrite libust.so with
# the linker script.
SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc libustd ustd
ustctl libustfork include doc

EXTRA_DIST = libust.ldscript.in libust-initializer.c
dist_bin_SCRIPTS = usttrace

ldscriptsdir = $(libdir)
ldscripts_DATA = libust.so libust-initializer.o

CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po

libust.so: libust.ldscript.in
    $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@

# It is very important to compile the initializer with PIC otherwise we
# may get obscure errors when linking to shared libraries.
libust-initializer.o: libust-initializer.c
    $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -o
$@ $<
===========================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110420/d27352ef/attachment-0003.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 17:37 [ltt-dev] building ust for android/arm Xing Fan
  2011-04-20 17:37 ` Xing Fan
  2011-04-20 17:37 ` Xing Fan
@ 2011-04-20 18:12 ` Mathieu Desnoyers
  2011-04-20 19:38   ` Xing Fan
  2011-04-20 23:38 ` Matthew Khouzam
  3 siblings, 1 reply; 17+ messages in thread
From: Mathieu Desnoyers @ 2011-04-20 18:12 UTC (permalink / raw)


* Xing Fan (xing.fan0302 at googlemail.com) wrote:
> I am building lttng ust-0.6 for android/Arm platform.
> 
> However, I have problems to build libust.so. The error msg is:  make: *** No
> rule to make target `build/core/libust-initializer.c', needed by
> `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
> Stop.
> 
> It is very strange that the compiler tries to pick up libust-initializer.c
> from build/core folder, even though I have specified that the source file is
> in my LOCAL_PATH;
> 
> Anyone has clue how to write a Android.mk for this?

ARM support only came with UST 0.12 (see Changelog file in UST tree). I
recommend you try the new version and see if the problem is still there.

Thanks,

Mathieu

> 
> /Stella
> 
> 
> 
> My Android.mk file looks like this:
> ===========================================================
> include $(call all-subdir-makefiles)
> 
> LOCAL_PATH := $(call my-dir)
> 
> include $(CLEAR_VARS)
> LOCAL_MODULE := libust
> LOCAL_SRC_FILES := libust-initializer.c
> LOCAL_C_INCLUDES += \
>         $(LOCAL_PATH) \
>         $(LOCAL_PATH)/include \
>         external/userspace-rcu-0.4.6
> include $(BUILD_SHARED_LIBRARY)
> ===============================================================
> 
> 
> The Makefile.am looks like this
> =========================================================================
> 
> ACLOCAL_AMFLAGS = -I config
> 
> # The order here is tricky. SUBDIRS applies both to compilation and
> # installation. Programs depending on the libs must be built after
> # libust and '.' (that contains the linker script). However, '.'
> # must be installed after libust so it can overwrite libust.so with
> # the linker script.
> SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc libustd ustd
> ustctl libustfork include doc
> 
> EXTRA_DIST = libust.ldscript.in libust-initializer.c
> dist_bin_SCRIPTS = usttrace
> 
> ldscriptsdir = $(libdir)
> ldscripts_DATA = libust.so libust-initializer.o
> 
> CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
> 
> libust.so: libust.ldscript.in
>     $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
> 
> # It is very important to compile the initializer with PIC otherwise we
> # may get obscure errors when linking to shared libraries.
> libust-initializer.o: libust-initializer.c
>     $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -o
> $@ $<
> ===========================================================

> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev


-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 18:12 ` Mathieu Desnoyers
@ 2011-04-20 19:38   ` Xing Fan
  2011-04-20 19:38     ` Xing Fan
                       ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 19:38 UTC (permalink / raw)


Thanks Mathieu for your quick answer.

I choose ust-0.6 to match my kernel version, according to the guide on lttng
website.

I still think there is something wrong in my Android.mk file. If we read
Makefile.am, it indicates to build a shared library called libust based on
libust-initializer (I have treated this in my Android.mk). However, it seems
Makefile does more than this. it builds/uses libust-initializer.o, I do not
know how to put this in Android.mk file.

Anyone has any hint?

Thanks!

On Wed, Apr 20, 2011 at 8:12 PM, Mathieu Desnoyers <
compudj at krystal.dyndns.org> wrote:

> * Xing Fan (xing.fan0302 at googlemail.com) wrote:
> > I am building lttng ust-0.6 for android/Arm platform.
> >
> > However, I have problems to build libust.so. The error msg is:  make: ***
> No
> > rule to make target `build/core/libust-initializer.c', needed by
> >
> `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
> > Stop.
> >
> > It is very strange that the compiler tries to pick up
> libust-initializer.c
> > from build/core folder, even though I have specified that the source file
> is
> > in my LOCAL_PATH;
> >
> > Anyone has clue how to write a Android.mk for this?
>
> ARM support only came with UST 0.12 (see Changelog file in UST tree). I
> recommend you try the new version and see if the problem is still there.
>
> Thanks,
>
> Mathieu
>
> >
> > /Stella
> >
> >
> >
> > My Android.mk file looks like this:
> > ===========================================================
> > include $(call all-subdir-makefiles)
> >
> > LOCAL_PATH := $(call my-dir)
> >
> > include $(CLEAR_VARS)
> > LOCAL_MODULE := libust
> > LOCAL_SRC_FILES := libust-initializer.c
> > LOCAL_C_INCLUDES += \
> >         $(LOCAL_PATH) \
> >         $(LOCAL_PATH)/include \
> >         external/userspace-rcu-0.4.6
> > include $(BUILD_SHARED_LIBRARY)
> > ===============================================================
> >
> >
> > The Makefile.am looks like this
> > =========================================================================
> >
> > ACLOCAL_AMFLAGS = -I config
> >
> > # The order here is tricky. SUBDIRS applies both to compilation and
> > # installation. Programs depending on the libs must be built after
> > # libust and '.' (that contains the linker script). However, '.'
> > # must be installed after libust so it can overwrite libust.so with
> > # the linker script.
> > SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc libustd
> ustd
> > ustctl libustfork include doc
> >
> > EXTRA_DIST = libust.ldscript.in libust-initializer.c
> > dist_bin_SCRIPTS = usttrace
> >
> > ldscriptsdir = $(libdir)
> > ldscripts_DATA = libust.so libust-initializer.o
> >
> > CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
> >
> > libust.so: libust.ldscript.in
> >     $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
> >
> > # It is very important to compile the initializer with PIC otherwise we
> > # may get obscure errors when linking to shared libraries.
> > libust-initializer.o: libust-initializer.c
> >     $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include
> -o
> > $@ $<
> > ===========================================================
>
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> --
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20110420/8fe5af90/attachment.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 19:38   ` Xing Fan
@ 2011-04-20 19:38     ` Xing Fan
  2011-04-20 19:38     ` Xing Fan
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 19:38 UTC (permalink / raw)


Thanks Mathieu for your quick answer.

I choose ust-0.6 to match my kernel version, according to the guide on lttng
website.

I still think there is something wrong in my Android.mk file. If we read
Makefile.am, it indicates to build a shared library called libust based on
libust-initializer (I have treated this in my Android.mk). However, it seems
Makefile does more than this. it builds/uses libust-initializer.o, I do not
know how to put this in Android.mk file.

Anyone has any hint?

Thanks!

On Wed, Apr 20, 2011 at 8:12 PM, Mathieu Desnoyers <
compudj at krystal.dyndns.org> wrote:

> * Xing Fan (xing.fan0302 at googlemail.com) wrote:
> > I am building lttng ust-0.6 for android/Arm platform.
> >
> > However, I have problems to build libust.so. The error msg is:  make: ***
> No
> > rule to make target `build/core/libust-initializer.c', needed by
> >
> `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
> > Stop.
> >
> > It is very strange that the compiler tries to pick up
> libust-initializer.c
> > from build/core folder, even though I have specified that the source file
> is
> > in my LOCAL_PATH;
> >
> > Anyone has clue how to write a Android.mk for this?
>
> ARM support only came with UST 0.12 (see Changelog file in UST tree). I
> recommend you try the new version and see if the problem is still there.
>
> Thanks,
>
> Mathieu
>
> >
> > /Stella
> >
> >
> >
> > My Android.mk file looks like this:
> > ===========================================================
> > include $(call all-subdir-makefiles)
> >
> > LOCAL_PATH := $(call my-dir)
> >
> > include $(CLEAR_VARS)
> > LOCAL_MODULE := libust
> > LOCAL_SRC_FILES := libust-initializer.c
> > LOCAL_C_INCLUDES += \
> >         $(LOCAL_PATH) \
> >         $(LOCAL_PATH)/include \
> >         external/userspace-rcu-0.4.6
> > include $(BUILD_SHARED_LIBRARY)
> > ===============================================================
> >
> >
> > The Makefile.am looks like this
> > =========================================================================
> >
> > ACLOCAL_AMFLAGS = -I config
> >
> > # The order here is tricky. SUBDIRS applies both to compilation and
> > # installation. Programs depending on the libs must be built after
> > # libust and '.' (that contains the linker script). However, '.'
> > # must be installed after libust so it can overwrite libust.so with
> > # the linker script.
> > SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc libustd
> ustd
> > ustctl libustfork include doc
> >
> > EXTRA_DIST = libust.ldscript.in libust-initializer.c
> > dist_bin_SCRIPTS = usttrace
> >
> > ldscriptsdir = $(libdir)
> > ldscripts_DATA = libust.so libust-initializer.o
> >
> > CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
> >
> > libust.so: libust.ldscript.in
> >     $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
> >
> > # It is very important to compile the initializer with PIC otherwise we
> > # may get obscure errors when linking to shared libraries.
> > libust-initializer.o: libust-initializer.c
> >     $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include
> -o
> > $@ $<
> > ===========================================================
>
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> --
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110420/8fe5af90/attachment-0002.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 19:38   ` Xing Fan
  2011-04-20 19:38     ` Xing Fan
@ 2011-04-20 19:38     ` Xing Fan
  2011-04-20 20:39     ` Mathieu Desnoyers
       [not found]     ` <BLU0-SMTP138D8FC21BF014372219BA96930@phx.gbl>
  3 siblings, 0 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 19:38 UTC (permalink / raw)


Thanks Mathieu for your quick answer.

I choose ust-0.6 to match my kernel version, according to the guide on lttng
website.

I still think there is something wrong in my Android.mk file. If we read
Makefile.am, it indicates to build a shared library called libust based on
libust-initializer (I have treated this in my Android.mk). However, it seems
Makefile does more than this. it builds/uses libust-initializer.o, I do not
know how to put this in Android.mk file.

Anyone has any hint?

Thanks!

On Wed, Apr 20, 2011 at 8:12 PM, Mathieu Desnoyers <
compudj at krystal.dyndns.org> wrote:

> * Xing Fan (xing.fan0302 at googlemail.com) wrote:
> > I am building lttng ust-0.6 for android/Arm platform.
> >
> > However, I have problems to build libust.so. The error msg is:  make: ***
> No
> > rule to make target `build/core/libust-initializer.c', needed by
> >
> `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
> > Stop.
> >
> > It is very strange that the compiler tries to pick up
> libust-initializer.c
> > from build/core folder, even though I have specified that the source file
> is
> > in my LOCAL_PATH;
> >
> > Anyone has clue how to write a Android.mk for this?
>
> ARM support only came with UST 0.12 (see Changelog file in UST tree). I
> recommend you try the new version and see if the problem is still there.
>
> Thanks,
>
> Mathieu
>
> >
> > /Stella
> >
> >
> >
> > My Android.mk file looks like this:
> > ===========================================================
> > include $(call all-subdir-makefiles)
> >
> > LOCAL_PATH := $(call my-dir)
> >
> > include $(CLEAR_VARS)
> > LOCAL_MODULE := libust
> > LOCAL_SRC_FILES := libust-initializer.c
> > LOCAL_C_INCLUDES += \
> >         $(LOCAL_PATH) \
> >         $(LOCAL_PATH)/include \
> >         external/userspace-rcu-0.4.6
> > include $(BUILD_SHARED_LIBRARY)
> > ===============================================================
> >
> >
> > The Makefile.am looks like this
> > =========================================================================
> >
> > ACLOCAL_AMFLAGS = -I config
> >
> > # The order here is tricky. SUBDIRS applies both to compilation and
> > # installation. Programs depending on the libs must be built after
> > # libust and '.' (that contains the linker script). However, '.'
> > # must be installed after libust so it can overwrite libust.so with
> > # the linker script.
> > SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc libustd
> ustd
> > ustctl libustfork include doc
> >
> > EXTRA_DIST = libust.ldscript.in libust-initializer.c
> > dist_bin_SCRIPTS = usttrace
> >
> > ldscriptsdir = $(libdir)
> > ldscripts_DATA = libust.so libust-initializer.o
> >
> > CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
> >
> > libust.so: libust.ldscript.in
> >     $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
> >
> > # It is very important to compile the initializer with PIC otherwise we
> > # may get obscure errors when linking to shared libraries.
> > libust-initializer.o: libust-initializer.c
> >     $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include
> -o
> > $@ $<
> > ===========================================================
>
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> --
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110420/8fe5af90/attachment-0003.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 19:38   ` Xing Fan
  2011-04-20 19:38     ` Xing Fan
  2011-04-20 19:38     ` Xing Fan
@ 2011-04-20 20:39     ` Mathieu Desnoyers
       [not found]     ` <BLU0-SMTP138D8FC21BF014372219BA96930@phx.gbl>
  3 siblings, 0 replies; 17+ messages in thread
From: Mathieu Desnoyers @ 2011-04-20 20:39 UTC (permalink / raw)


* Xing Fan (xing.fan0302 at googlemail.com) wrote:
> Thanks Mathieu for your quick answer.
> 
> I choose ust-0.6 to match my kernel version, according to the guide on
> lttng website.

That's my mistake. I forgot to update the "LTTng userspace tracer"
column in the compability list. I just updated it to add UST 0.7 to
0.12 as compatible with current kernels. Thanks for pointing it out. You
should really upgrade to 0.12 (and even 0.13 when it comes out in a few
days).

> I still think there is something wrong in my Android.mk file. If we read
> Makefile.am, it indicates to build a shared library called libust based on
> libust-initializer (I have treated this in my Android.mk). However, it seems
> Makefile does more than this. it builds/uses libust-initializer.o, I do not
> know how to put this in Android.mk file.
> 
> Anyone has any hint?

Sorry, I'm not familiar with the Android build infrastructure. Maybe
Karim might have some info here ? (see problem description below)

Thanks,

Mathieu

> 
> Thanks!
> 
> On Wed, Apr 20, 2011 at 8:12 PM, Mathieu Desnoyers <
> compudj at krystal.dyndns.org> wrote:
> 
> > * Xing Fan (xing.fan0302 at googlemail.com) wrote:
> > > I am building lttng ust-0.6 for android/Arm platform.
> > >
> > > However, I have problems to build libust.so. The error msg is:  make: ***
> > No
> > > rule to make target `build/core/libust-initializer.c', needed by
> > >
> > `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
> > > Stop.
> > >
> > > It is very strange that the compiler tries to pick up
> > libust-initializer.c
> > > from build/core folder, even though I have specified that the source file
> > is
> > > in my LOCAL_PATH;
> > >
> > > Anyone has clue how to write a Android.mk for this?
> >
> > ARM support only came with UST 0.12 (see Changelog file in UST tree). I
> > recommend you try the new version and see if the problem is still there.
> >
> > Thanks,
> >
> > Mathieu
> >
> > >
> > > /Stella
> > >
> > >
> > >
> > > My Android.mk file looks like this:
> > > ===========================================================
> > > include $(call all-subdir-makefiles)
> > >
> > > LOCAL_PATH := $(call my-dir)
> > >
> > > include $(CLEAR_VARS)
> > > LOCAL_MODULE := libust
> > > LOCAL_SRC_FILES := libust-initializer.c
> > > LOCAL_C_INCLUDES += \
> > >         $(LOCAL_PATH) \
> > >         $(LOCAL_PATH)/include \
> > >         external/userspace-rcu-0.4.6
> > > include $(BUILD_SHARED_LIBRARY)
> > > ===============================================================
> > >
> > >
> > > The Makefile.am looks like this
> > > =========================================================================
> > >
> > > ACLOCAL_AMFLAGS = -I config
> > >
> > > # The order here is tricky. SUBDIRS applies both to compilation and
> > > # installation. Programs depending on the libs must be built after
> > > # libust and '.' (that contains the linker script). However, '.'
> > > # must be installed after libust so it can overwrite libust.so with
> > > # the linker script.
> > > SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc libustd
> > ustd
> > > ustctl libustfork include doc
> > >
> > > EXTRA_DIST = libust.ldscript.in libust-initializer.c
> > > dist_bin_SCRIPTS = usttrace
> > >
> > > ldscriptsdir = $(libdir)
> > > ldscripts_DATA = libust.so libust-initializer.o
> > >
> > > CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
> > >
> > > libust.so: libust.ldscript.in
> > >     $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
> > >
> > > # It is very important to compile the initializer with PIC otherwise we
> > > # may get obscure errors when linking to shared libraries.
> > > libust-initializer.o: libust-initializer.c
> > >     $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include
> > -o
> > > $@ $<
> > > ===========================================================
> >
> > > _______________________________________________
> > > ltt-dev mailing list
> > > ltt-dev at lists.casi.polymtl.ca
> > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >
> >
> > --
> > Mathieu Desnoyers
> > Operating System Efficiency R&D Consultant
> > EfficiOS Inc.
> > http://www.efficios.com
> >
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
       [not found]     ` <BLU0-SMTP138D8FC21BF014372219BA96930@phx.gbl>
@ 2011-04-20 21:12       ` Karim Yaghmour
  2011-04-20 21:21         ` Xing Fan
  0 siblings, 1 reply; 17+ messages in thread
From: Karim Yaghmour @ 2011-04-20 21:12 UTC (permalink / raw)


Trimming content for brevity ...

> -----Original Message-----
> From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of
Mathieu Desnoyers
...
> * Xing Fan (xing.fan0302 at googlemail.com) wrote:
...
> > I still think there is something wrong in my Android.mk file. If we
read
> > Makefile.am, it indicates to build a shared library called libust
based on
> > libust-initializer (I have treated this in my Android.mk). However, it
seems
> > Makefile does more than this. it builds/uses libust-initializer.o, I
do not
> > know how to put this in Android.mk file.
> >
> > Anyone has any hint?
>
> Sorry, I'm not familiar with the Android build infrastructure. Maybe
> Karim might have some info here ? (see problem description below)

I don't have enough information. Has libust been placed in aosp/external/.
That's where it would usually go. Usually the best thing is to check how
other packages in external/ are made to build part of the AOSP and do the
same.

As for the libust-initializer.c getting picked up, it looks like it's the
EXTRA_DIST flag from Makefile.am creeping in. Again, I would need more
info.

--
Karim Yaghmour
CEO - Opersys inc. / www.opersys.com
http://twitter.com/karimyaghmour



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 21:12       ` Karim Yaghmour
@ 2011-04-20 21:21         ` Xing Fan
  2011-04-20 21:21           ` Xing Fan
                             ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 21:21 UTC (permalink / raw)


Here are more description of my setting.
1. I placed the ust code in external/ folder.
2. my Android.mk file in external/ust-0.6 looks like this:
===========================================================
include $(call all-subdir-makefiles)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libust
LOCAL_SRC_FILES := libust-initializer.c
LOCAL_C_INCLUDES += \
        $(LOCAL_PATH) \
        $(LOCAL_PATH)/include \
        external/userspace-rcu-0.4.6
include $(BUILD_SHARED_LIBRARY)
===============================================================

 3. However, I have problems to build libust.so. The error msg is:  make:
*** No rule to make target `build/core/libust-initializer.c', needed by
`out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
Stop.

   It is very strange that the compiler tries to pick up
libust-initializer.c from build/core folder, even though I have specified
that the source file is in my LOCAL_PATH, which is external/ust-0.6;

 /Stella

On Wed, Apr 20, 2011 at 11:12 PM, Karim Yaghmour <karim.yaghmour at opersys.com
> wrote:

> Trimming content for brevity ...
>
> > -----Original Message-----
> > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of
> Mathieu Desnoyers
> ...
> > * Xing Fan (xing.fan0302 at googlemail.com) wrote:
> ...
> > > I still think there is something wrong in my Android.mk file. If we
> read
> > > Makefile.am, it indicates to build a shared library called libust
> based on
> > > libust-initializer (I have treated this in my Android.mk). However, it
> seems
> > > Makefile does more than this. it builds/uses libust-initializer.o, I
> do not
> > > know how to put this in Android.mk file.
> > >
> > > Anyone has any hint?
> >
> > Sorry, I'm not familiar with the Android build infrastructure. Maybe
> > Karim might have some info here ? (see problem description below)
>
> I don't have enough information. Has libust been placed in aosp/external/.
> That's where it would usually go. Usually the best thing is to check how
> other packages in external/ are made to build part of the AOSP and do the
> same.
>
> As for the libust-initializer.c getting picked up, it looks like it's the
> EXTRA_DIST flag from Makefile.am creeping in. Again, I would need more
> info.
>
> --
> Karim Yaghmour
> CEO - Opersys inc. / www.opersys.com
> http://twitter.com/karimyaghmour
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110420/94379bcd/attachment-0003.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 21:21         ` Xing Fan
  2011-04-20 21:21           ` Xing Fan
@ 2011-04-20 21:21           ` Xing Fan
  2011-04-20 21:31           ` Mathieu Desnoyers
  2011-04-20 23:20           ` Karim Yaghmour
  3 siblings, 0 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 21:21 UTC (permalink / raw)


Here are more description of my setting.
1. I placed the ust code in external/ folder.
2. my Android.mk file in external/ust-0.6 looks like this:
===========================================================
include $(call all-subdir-makefiles)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libust
LOCAL_SRC_FILES := libust-initializer.c
LOCAL_C_INCLUDES += \
        $(LOCAL_PATH) \
        $(LOCAL_PATH)/include \
        external/userspace-rcu-0.4.6
include $(BUILD_SHARED_LIBRARY)
===============================================================

 3. However, I have problems to build libust.so. The error msg is:  make:
*** No rule to make target `build/core/libust-initializer.c', needed by
`out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
Stop.

   It is very strange that the compiler tries to pick up
libust-initializer.c from build/core folder, even though I have specified
that the source file is in my LOCAL_PATH, which is external/ust-0.6;

 /Stella

On Wed, Apr 20, 2011 at 11:12 PM, Karim Yaghmour <karim.yaghmour at opersys.com
> wrote:

> Trimming content for brevity ...
>
> > -----Original Message-----
> > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of
> Mathieu Desnoyers
> ...
> > * Xing Fan (xing.fan0302 at googlemail.com) wrote:
> ...
> > > I still think there is something wrong in my Android.mk file. If we
> read
> > > Makefile.am, it indicates to build a shared library called libust
> based on
> > > libust-initializer (I have treated this in my Android.mk). However, it
> seems
> > > Makefile does more than this. it builds/uses libust-initializer.o, I
> do not
> > > know how to put this in Android.mk file.
> > >
> > > Anyone has any hint?
> >
> > Sorry, I'm not familiar with the Android build infrastructure. Maybe
> > Karim might have some info here ? (see problem description below)
>
> I don't have enough information. Has libust been placed in aosp/external/.
> That's where it would usually go. Usually the best thing is to check how
> other packages in external/ are made to build part of the AOSP and do the
> same.
>
> As for the libust-initializer.c getting picked up, it looks like it's the
> EXTRA_DIST flag from Makefile.am creeping in. Again, I would need more
> info.
>
> --
> Karim Yaghmour
> CEO - Opersys inc. / www.opersys.com
> http://twitter.com/karimyaghmour
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110420/94379bcd/attachment-0002.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 21:21         ` Xing Fan
@ 2011-04-20 21:21           ` Xing Fan
  2011-04-20 21:21           ` Xing Fan
                             ` (2 subsequent siblings)
  3 siblings, 0 replies; 17+ messages in thread
From: Xing Fan @ 2011-04-20 21:21 UTC (permalink / raw)


Here are more description of my setting.
1. I placed the ust code in external/ folder.
2. my Android.mk file in external/ust-0.6 looks like this:
===========================================================
include $(call all-subdir-makefiles)

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libust
LOCAL_SRC_FILES := libust-initializer.c
LOCAL_C_INCLUDES += \
        $(LOCAL_PATH) \
        $(LOCAL_PATH)/include \
        external/userspace-rcu-0.4.6
include $(BUILD_SHARED_LIBRARY)
===============================================================

 3. However, I have problems to build libust.so. The error msg is:  make:
*** No rule to make target `build/core/libust-initializer.c', needed by
`out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
Stop.

   It is very strange that the compiler tries to pick up
libust-initializer.c from build/core folder, even though I have specified
that the source file is in my LOCAL_PATH, which is external/ust-0.6;

 /Stella

On Wed, Apr 20, 2011 at 11:12 PM, Karim Yaghmour <karim.yaghmour at opersys.com
> wrote:

> Trimming content for brevity ...
>
> > -----Original Message-----
> > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of
> Mathieu Desnoyers
> ...
> > * Xing Fan (xing.fan0302 at googlemail.com) wrote:
> ...
> > > I still think there is something wrong in my Android.mk file. If we
> read
> > > Makefile.am, it indicates to build a shared library called libust
> based on
> > > libust-initializer (I have treated this in my Android.mk). However, it
> seems
> > > Makefile does more than this. it builds/uses libust-initializer.o, I
> do not
> > > know how to put this in Android.mk file.
> > >
> > > Anyone has any hint?
> >
> > Sorry, I'm not familiar with the Android build infrastructure. Maybe
> > Karim might have some info here ? (see problem description below)
>
> I don't have enough information. Has libust been placed in aosp/external/.
> That's where it would usually go. Usually the best thing is to check how
> other packages in external/ are made to build part of the AOSP and do the
> same.
>
> As for the libust-initializer.c getting picked up, it looks like it's the
> EXTRA_DIST flag from Makefile.am creeping in. Again, I would need more
> info.
>
> --
> Karim Yaghmour
> CEO - Opersys inc. / www.opersys.com
> http://twitter.com/karimyaghmour
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20110420/94379bcd/attachment.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 21:21         ` Xing Fan
  2011-04-20 21:21           ` Xing Fan
  2011-04-20 21:21           ` Xing Fan
@ 2011-04-20 21:31           ` Mathieu Desnoyers
  2011-04-20 23:20           ` Karim Yaghmour
  3 siblings, 0 replies; 17+ messages in thread
From: Mathieu Desnoyers @ 2011-04-20 21:31 UTC (permalink / raw)


* Xing Fan (xing.fan0302 at googlemail.com) wrote:
> Here are more description of my setting.
> 1. I placed the ust code in external/ folder.
> 2. my Android.mk file in external/ust-0.6 looks like this:
> ===========================================================
> include $(call all-subdir-makefiles)
> 
> LOCAL_PATH := $(call my-dir)
> 
> include $(CLEAR_VARS)
> LOCAL_MODULE := libust
> LOCAL_SRC_FILES := libust-initializer.c
> LOCAL_C_INCLUDES += \
>         $(LOCAL_PATH) \
>         $(LOCAL_PATH)/include \
>         external/userspace-rcu-0.4.6
> include $(BUILD_SHARED_LIBRARY)
> ===============================================================
> 
>  3. However, I have problems to build libust.so. The error msg is:  make:
> *** No rule to make target `build/core/libust-initializer.c', needed by
> `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'.
> Stop.
> 
>    It is very strange that the compiler tries to pick up
> libust-initializer.c from build/core folder, even though I have specified
> that the source file is in my LOCAL_PATH, which is external/ust-0.6;

Again, please retry with updated liburcu and UST, as ust 0.6 does not
support ARM. We might be lucky and a fix might have crept in the tree
since 0.6, so let's not spend time debugging old versions.

Thanks,

Mathieu

> 
>  /Stella
> 
> On Wed, Apr 20, 2011 at 11:12 PM, Karim Yaghmour <karim.yaghmour at opersys.com
> > wrote:
> 
> > Trimming content for brevity ...
> >
> > > -----Original Message-----
> > > From: pdumas9@sympatico.ca [mailto:pdumas9@sympatico.ca] On Behalf Of
> > Mathieu Desnoyers
> > ...
> > > * Xing Fan (xing.fan0302 at googlemail.com) wrote:
> > ...
> > > > I still think there is something wrong in my Android.mk file. If we
> > read
> > > > Makefile.am, it indicates to build a shared library called libust
> > based on
> > > > libust-initializer (I have treated this in my Android.mk). However, it
> > seems
> > > > Makefile does more than this. it builds/uses libust-initializer.o, I
> > do not
> > > > know how to put this in Android.mk file.
> > > >
> > > > Anyone has any hint?
> > >
> > > Sorry, I'm not familiar with the Android build infrastructure. Maybe
> > > Karim might have some info here ? (see problem description below)
> >
> > I don't have enough information. Has libust been placed in aosp/external/.
> > That's where it would usually go. Usually the best thing is to check how
> > other packages in external/ are made to build part of the AOSP and do the
> > same.
> >
> > As for the libust-initializer.c getting picked up, it looks like it's the
> > EXTRA_DIST flag from Makefile.am creeping in. Again, I would need more
> > info.
> >
> > --
> > Karim Yaghmour
> > CEO - Opersys inc. / www.opersys.com
> > http://twitter.com/karimyaghmour
> >

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 21:21         ` Xing Fan
                             ` (2 preceding siblings ...)
  2011-04-20 21:31           ` Mathieu Desnoyers
@ 2011-04-20 23:20           ` Karim Yaghmour
  3 siblings, 0 replies; 17+ messages in thread
From: Karim Yaghmour @ 2011-04-20 23:20 UTC (permalink / raw)


> -----Original Message-----
> From: Xing Fan [mailto:xing.fan0302@googlemail.com]
>
> Here are more description of my setting.
> 1. I placed the ust code in external/ folder.
> 2. my Android.mk file in external/ust-0.6 looks like this:
> ===========================================================
> include $(call all-subdir-makefiles)
>
> LOCAL_PATH := $(call my-dir)
>
> include $(CLEAR_VARS)
> LOCAL_MODULE := libust
> LOCAL_SRC_FILES := libust-initializer.c
> LOCAL_C_INCLUDES += \
>         $(LOCAL_PATH) \
>         $(LOCAL_PATH)/include \
>         external/userspace-rcu-0.4.6
> include $(BUILD_SHARED_LIBRARY)
> ===============================================================
>
>
>  3. However, I have problems to build libust.so. The error msg is:
make: *** No rule to make target
> `build/core/libust-initializer.c', needed by
>
`out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust
-initializer.o'.  Stop.
>
>    It is very strange that the compiler tries to pick up
libust-initializer.c from build/core folder,
> even though I have specified that the source file is in my LOCAL_PATH,
which is external/ust-0.6;

Is there an online version of this AOSP tree that I can pull using "repo"?

--
Karim Yaghmour
CEO - Opersys inc. / www.opersys.com
http://twitter.com/karimyaghmour




^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 17:37 [ltt-dev] building ust for android/arm Xing Fan
                   ` (2 preceding siblings ...)
  2011-04-20 18:12 ` Mathieu Desnoyers
@ 2011-04-20 23:38 ` Matthew Khouzam
  2011-04-20 23:38   ` Matthew Khouzam
  2011-04-20 23:38   ` Matthew Khouzam
  3 siblings, 2 replies; 17+ messages in thread
From: Matthew Khouzam @ 2011-04-20 23:38 UTC (permalink / raw)


My advice, is kinda silly, but, Mathieu Desnoyers is saying use a newer
version, and the version you are using is not working, I would at least
try out a new version.

What kernel are you using?

If you're on 2.6.16 We actually got it +- working with UST 0.12.

git://git.dorsal.polymtl.ca/~mattkhouzam/ust_documentation

Note: you cannot tell which core is being used if you apply the changes
in the document, so if you are using a multi-cored cpu, you really
really should consider updating your kernel.

Keep us posted with the results,

Matthew


On 11-04-20 01:37 PM, Xing Fan wrote:
> I am building lttng ust-0.6 for android/Arm platform.
>
> However, I have problems to build libust.so. The error msg is:  make:
> *** No rule to make target `build/core/libust-initializer.c', needed
> by
> `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'. 
> Stop.
>
> It is very strange that the compiler tries to pick up
> libust-initializer.c from build/core folder, even though I have
> specified that the source file is in my LOCAL_PATH;
>
> Anyone has clue how to write a Android.mk for this?
>
> /Stella
>
>
>
> My Android.mk file looks like this:
> ===========================================================
> include $(call all-subdir-makefiles)
>
> LOCAL_PATH := $(call my-dir)
>
> include $(CLEAR_VARS)
> LOCAL_MODULE := libust
> LOCAL_SRC_FILES := libust-initializer.c
> LOCAL_C_INCLUDES += \
>         $(LOCAL_PATH) \
>         $(LOCAL_PATH)/include \
>         external/userspace-rcu-0.4.6
> include $(BUILD_SHARED_LIBRARY)
> ===============================================================
>
>
> The Makefile.am looks like this
> =========================================================================
>
> ACLOCAL_AMFLAGS = -I config
>
> # The order here is tricky. SUBDIRS applies both to compilation and
> # installation. Programs depending on the libs must be built after
> # libust and '.' (that contains the linker script). However, '.'
> # must be installed after libust so it can overwrite libust.so with
> # the linker script.
> SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc
> libustd ustd ustctl libustfork include doc
>
> EXTRA_DIST = libust.ldscript.in <http://libust.ldscript.in>
> libust-initializer.c
> dist_bin_SCRIPTS = usttrace
>
> ldscriptsdir = $(libdir)
> ldscripts_DATA = libust.so libust-initializer.o
>
> CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
>
> libust.so: libust.ldscript.in <http://libust.ldscript.in>
>     $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
>
> # It is very important to compile the initializer with PIC otherwise we
> # may get obscure errors when linking to shared libraries.
> libust-initializer.o: libust-initializer.c
>     $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c
> -I$(top_srcdir)/include -o $@ $<
> ===========================================================
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110420/1d692c64/attachment-0003.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 23:38 ` Matthew Khouzam
@ 2011-04-20 23:38   ` Matthew Khouzam
  2011-04-20 23:38   ` Matthew Khouzam
  1 sibling, 0 replies; 17+ messages in thread
From: Matthew Khouzam @ 2011-04-20 23:38 UTC (permalink / raw)


My advice, is kinda silly, but, Mathieu Desnoyers is saying use a newer
version, and the version you are using is not working, I would at least
try out a new version.

What kernel are you using?

If you're on 2.6.16 We actually got it +- working with UST 0.12.

git://git.dorsal.polymtl.ca/~mattkhouzam/ust_documentation

Note: you cannot tell which core is being used if you apply the changes
in the document, so if you are using a multi-cored cpu, you really
really should consider updating your kernel.

Keep us posted with the results,

Matthew


On 11-04-20 01:37 PM, Xing Fan wrote:
> I am building lttng ust-0.6 for android/Arm platform.
>
> However, I have problems to build libust.so. The error msg is:  make:
> *** No rule to make target `build/core/libust-initializer.c', needed
> by
> `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'. 
> Stop.
>
> It is very strange that the compiler tries to pick up
> libust-initializer.c from build/core folder, even though I have
> specified that the source file is in my LOCAL_PATH;
>
> Anyone has clue how to write a Android.mk for this?
>
> /Stella
>
>
>
> My Android.mk file looks like this:
> ===========================================================
> include $(call all-subdir-makefiles)
>
> LOCAL_PATH := $(call my-dir)
>
> include $(CLEAR_VARS)
> LOCAL_MODULE := libust
> LOCAL_SRC_FILES := libust-initializer.c
> LOCAL_C_INCLUDES += \
>         $(LOCAL_PATH) \
>         $(LOCAL_PATH)/include \
>         external/userspace-rcu-0.4.6
> include $(BUILD_SHARED_LIBRARY)
> ===============================================================
>
>
> The Makefile.am looks like this
> =========================================================================
>
> ACLOCAL_AMFLAGS = -I config
>
> # The order here is tricky. SUBDIRS applies both to compilation and
> # installation. Programs depending on the libs must be built after
> # libust and '.' (that contains the linker script). However, '.'
> # must be installed after libust so it can overwrite libust.so with
> # the linker script.
> SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc
> libustd ustd ustctl libustfork include doc
>
> EXTRA_DIST = libust.ldscript.in <http://libust.ldscript.in>
> libust-initializer.c
> dist_bin_SCRIPTS = usttrace
>
> ldscriptsdir = $(libdir)
> ldscripts_DATA = libust.so libust-initializer.o
>
> CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
>
> libust.so: libust.ldscript.in <http://libust.ldscript.in>
>     $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
>
> # It is very important to compile the initializer with PIC otherwise we
> # may get obscure errors when linking to shared libraries.
> libust-initializer.o: libust-initializer.c
>     $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c
> -I$(top_srcdir)/include -o $@ $<
> ===========================================================
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110420/1d692c64/attachment-0002.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ltt-dev] building ust for android/arm
  2011-04-20 23:38 ` Matthew Khouzam
  2011-04-20 23:38   ` Matthew Khouzam
@ 2011-04-20 23:38   ` Matthew Khouzam
  1 sibling, 0 replies; 17+ messages in thread
From: Matthew Khouzam @ 2011-04-20 23:38 UTC (permalink / raw)


My advice, is kinda silly, but, Mathieu Desnoyers is saying use a newer
version, and the version you are using is not working, I would at least
try out a new version.

What kernel are you using?

If you're on 2.6.16 We actually got it +- working with UST 0.12.

git://git.dorsal.polymtl.ca/~mattkhouzam/ust_documentation

Note: you cannot tell which core is being used if you apply the changes
in the document, so if you are using a multi-cored cpu, you really
really should consider updating your kernel.

Keep us posted with the results,

Matthew


On 11-04-20 01:37 PM, Xing Fan wrote:
> I am building lttng ust-0.6 for android/Arm platform.
>
> However, I have problems to build libust.so. The error msg is:  make:
> *** No rule to make target `build/core/libust-initializer.c', needed
> by
> `out/target/product/u8500/obj/SHARED_LIBRARIES/libust_intermediates/libust-initializer.o'. 
> Stop.
>
> It is very strange that the compiler tries to pick up
> libust-initializer.c from build/core folder, even though I have
> specified that the source file is in my LOCAL_PATH;
>
> Anyone has clue how to write a Android.mk for this?
>
> /Stella
>
>
>
> My Android.mk file looks like this:
> ===========================================================
> include $(call all-subdir-makefiles)
>
> LOCAL_PATH := $(call my-dir)
>
> include $(CLEAR_VARS)
> LOCAL_MODULE := libust
> LOCAL_SRC_FILES := libust-initializer.c
> LOCAL_C_INCLUDES += \
>         $(LOCAL_PATH) \
>         $(LOCAL_PATH)/include \
>         external/userspace-rcu-0.4.6
> include $(BUILD_SHARED_LIBRARY)
> ===============================================================
>
>
> The Makefile.am looks like this
> =========================================================================
>
> ACLOCAL_AMFLAGS = -I config
>
> # The order here is tricky. SUBDIRS applies both to compilation and
> # installation. Programs depending on the libs must be built after
> # libust and '.' (that contains the linker script). However, '.'
> # must be installed after libust so it can overwrite libust.so with
> # the linker script.
> SUBDIRS = snprintf libustcomm libust . tests libustinstr-malloc
> libustd ustd ustctl libustfork include doc
>
> EXTRA_DIST = libust.ldscript.in <http://libust.ldscript.in>
> libust-initializer.c
> dist_bin_SCRIPTS = usttrace
>
> ldscriptsdir = $(libdir)
> ldscripts_DATA = libust.so libust-initializer.o
>
> CLEANFILES = $(ldscripts_DATA) ./tests/libust-initializer.Po
>
> libust.so: libust.ldscript.in <http://libust.ldscript.in>
>     $(SED) -e "s@\@FORMAT\@@$(LIBFORMAT)@" < $< > $@
>
> # It is very important to compile the initializer with PIC otherwise we
> # may get obscure errors when linking to shared libraries.
> libust-initializer.o: libust-initializer.c
>     $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c
> -I$(top_srcdir)/include -o $@ $<
> ===========================================================
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20110420/1d692c64/attachment.htm>


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-04-20 23:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-20 17:37 [ltt-dev] building ust for android/arm Xing Fan
2011-04-20 17:37 ` Xing Fan
2011-04-20 17:37 ` Xing Fan
2011-04-20 18:12 ` Mathieu Desnoyers
2011-04-20 19:38   ` Xing Fan
2011-04-20 19:38     ` Xing Fan
2011-04-20 19:38     ` Xing Fan
2011-04-20 20:39     ` Mathieu Desnoyers
     [not found]     ` <BLU0-SMTP138D8FC21BF014372219BA96930@phx.gbl>
2011-04-20 21:12       ` Karim Yaghmour
2011-04-20 21:21         ` Xing Fan
2011-04-20 21:21           ` Xing Fan
2011-04-20 21:21           ` Xing Fan
2011-04-20 21:31           ` Mathieu Desnoyers
2011-04-20 23:20           ` Karim Yaghmour
2011-04-20 23:38 ` Matthew Khouzam
2011-04-20 23:38   ` Matthew Khouzam
2011-04-20 23:38   ` Matthew Khouzam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox