All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Compilation error with openwrt and uclibc 0.9.31
       [not found] <5242C3C4.3060207@sagemcom.com>
@ 2013-09-25 16:17 ` Jérémie Galarneau
       [not found] ` <CA+jJMxuPudXDiatZfWVwUvvHJ9_WJ4gg_4vUeFapKZet4G-UFw@mail.gmail.com>
  1 sibling, 0 replies; 8+ messages in thread
From: Jérémie Galarneau @ 2013-09-25 16:17 UTC (permalink / raw)
  To: arthur.lambert; +Cc: lttng-dev

On Wed, Sep 25, 2013 at 7:06 AM, Arthur LAMBERT
<arthur.lambert@sagemcom.com> wrote:
> Hi,
>
> I am using backfire version of Openwrt and would like to try to use
> profiling features bring by tools like lttng. I found some Makefile packages
> on openwrt website to build lttng-tools and lttng-ust with recent version of
> openwrt version but I am not able to compile lttng without error. with
> mine..
>
> Environment :
>
> Openwrt Backfire
> UCLIBC 0.9.31
> Linux kernel 2.6.28

Please note that kernel tracing is only available on kernels >= 2.6.38
(or 2.6.32 if patched appropriately).
I'm not an openwrt user, but it seems Makefiles are only provided for
LTTng 2.1.0. Can you confirm whether or not the build succeeds for
that version?

> ARCH mips32
> lttng version : 2.3.0
> librcu version : 0.8
>
> First problem was related to lttng-ust-2.3.0/libringbuffer/getcpu.h. I get
> an undefined reference to c variable in lttng_ust_get_cpu function. After
> some research I was not able to find a solution about this point even if I
> seem to be up to date since I found some patch related to issue with old
> version of uclibc than 0.9.32. This patch seems to be already integrated in
> my lttng ust version. Anyway, I found a workaround to check that the next
> step on the compilation is find... but it is not...
>

Could you clarify what was the error and what is the workaround?

> Compilation result :
>
> make package/lttng-tools/compile V=99
>
> make[1]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt'
> make[2]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/libs/liburcu'
> make[2]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/libs/liburcu'
> make[2]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/package/e2fsprogs'
> WARNING: skipping e2fsprogs -- package not selected
> WARNING: skipping uuidgen -- package not selected
> WARNING: skipping libext2fs -- package not selected
> WARNING: skipping tune2fs -- package not selected
> WARNING: skipping resize2fs -- package not selected
> WARNING: skipping badblocks -- package not selected
> WARNING: skipping blkid -- package not selected
> make[2]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/package/e2fsprogs'
> make[2]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/devel/lttng-ust'
> CFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
> -fhonour-copts -msoft-float
> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
> " CXXFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
> -fhonour-copts -msoft-float
> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
> "
> LDFLAGS="-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
> " make  -j2 -C
> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.
> AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os
> -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts
> -msoft-float" LD=mips-openwrt-linux-uclibc-ld
> NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc"
> GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++"
> RANLIB=mips-openwrt-linux-uclibc-ranlib
> STRIP=mips-openwrt-linux-uclibc-strip
> OBJCOPY=mips-openwrt-linux-uclibc-objcopy
> OBJDUMP=mips-openwrt-linux-uclibc-objdump
> SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-"
> ARCH="mips" ;
> make[3]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> make  all-recursive
> make[4]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> Making all in .
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> make[5]: Nothing to be done for `all-am'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> Making all in include
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
> Making all in snprintf
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
> Making all in libringbuffer
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
> Making all in liblttng-ust-comm
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
> Making all in liblttng-ust
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
> Making all in liblttng-ust-ctl
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
> Making all in liblttng-ust-fork
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
> Making all in liblttng-ust-libc-wrapper
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
> Making all in liblttng-ust-cyg-profile
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
> Making all in tools
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
> Making all in tests
> make[5]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
> Making all in utils
> make[6]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
> make[6]: Nothing to be done for `all'.
> make[6]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
> Making all in hello
> make[6]: Entering directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
> /bin/bash ../../libtool  --tag=CC   --mode=link
> mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition -Wall -Os -pipe
> -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts -msoft-float
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
> -o hello hello-hello.o hello-tp.o ../../liblttng-ust/liblttng-ust.la -ldl
> -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
> libtool: link: mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition
> -Wall -Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
> -fhonour-copts -msoft-float -o .libs/hello hello-hello.o hello-tp.o
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
> ../../liblttng-ust/.libs/liblttng-ust.so
> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so
> -lrt -ldl -lurcu-bp -lurcu-cds -lpthread
> ../../liblttng-ust/.libs/liblttng-ust.so: warning: the use of `mktemp' is
> dangerous, better use `mkstemp'
> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
> warning: liburcu-common.so.2, needed by
> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so,
> not found (try using -rpath or -rpath-link)
> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_open'
> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
> `shm_unlink'
> collect2: ld returned 1 exit status
> make[6]: *** [hello] Error 1
> make[6]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> make[2]: ***
> [/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.built]
> Error 2
> make[2]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/devel/lttng-ust'
> make[1]: *** [package/feeds/tools/lttng-ust/compile] Error 2
> make[1]: Leaving directory
> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt'
> make: *** [package/lttng-ust/compile] Erreur 2
>
> I am not very confortable with autotools but I am not able to understand
> this error. Is it relared to the missing liburcu-common.so.2 library ? shm
> functions are define by uclibc ? missing include ?
>
> Thanks,
> Arthur.
>
>
> #
> " Ce courriel et les documents qui lui sont joints peuvent contenir des
> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
> pas destiné nous vous signalons qu'il est strictement interdit de les
> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
> informer l'expéteur et de supprimer imméatement de votre systè
> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>
>
>                               ******
>
> " This e-mail and any attached documents may contain confidential or
> proprietary information. If you are not the intended recipient, you are
> notified that any dissemination, copying of this e-mail and any attachments
> thereto or use of their contents by any means whatsoever is strictly
> prohibited. If you have received this e-mail in error, please advise the
> sender immediately and delete this e-mail and all attached documents
> from your computer system."
> #
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

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

* Re: Compilation error with openwrt and uclibc 0.9.31
       [not found] ` <CA+jJMxuPudXDiatZfWVwUvvHJ9_WJ4gg_4vUeFapKZet4G-UFw@mail.gmail.com>
@ 2013-09-26  8:03   ` Arthur LAMBERT
  2013-09-26 10:38   ` Arthur LAMBERT
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Arthur LAMBERT @ 2013-09-26  8:03 UTC (permalink / raw)
  To: Jérémie Galarneau; +Cc: lttng-dev

Hi

I am also aware that I can only profiling user space with my current 
kernel version. That's why I am only trying to install ust and tools 
tarballs.
First error is the same but the next one is new with 2.1.0-rc2.

First :
In file included from smp.h:24,
                  from smp.c:25:
getcpu.h: In function 'lttng_ust_get_cpu':
getcpu.h:61: error: 'c' undeclared (first use in this function)
getcpu.h:61: error: (Each undeclared identifier is reported only once
getcpu.h:61: error: for each function it appears in.)
make[5]: *** [libringbuffer_la-smp.lo] Error 1

About my work around, it is nothing, just I return ret or cpu instead of 
c to be able to compile and see what 's next. Even if I am not able to 
fix this issue, I guess that this function is not mandatory to get a 
profiling result by using lttng.

After a second try with my work around, the next one is :


In file included from smp.h:24,
                  from ring_buffer_frontend.c:63:
getcpu.h: In function 'lttng_ust_get_cpu':
getcpu.h:58: warning: implicit declaration of function 'syscall'
In file included from ../include/lttng/align.h:21,
                  from ../include/lttng/ringbuffer-config.h:29,
                  from ring_buffer_frontend.c:64:
...../openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/sys-include/unistd.h: 
At top level:
...../openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/sys-include/unistd.h:1020: 
error: conflicting types for 'syscall'
getcpu.h:58: note: previous implicit declaration of 'syscall' was here

I will try to understand this issue. It is perhaps a good clue to fix 
the 2.3.0 build on my environment. Everything seems to be related to my 
syscall file.

Arthur.

On 25/09/2013 18:17, Jérémie Galarneau wrote:
> On Wed, Sep 25, 2013 at 7:06 AM, Arthur LAMBERT
> <arthur.lambert@sagemcom.com> wrote:
>> Hi,
>>
>> I am using backfire version of Openwrt and would like to try to use
>> profiling features bring by tools like lttng. I found some Makefile packages
>> on openwrt website to build lttng-tools and lttng-ust with recent version of
>> openwrt version but I am not able to compile lttng without error. with
>> mine..
>>
>> Environment :
>>
>> Openwrt Backfire
>> UCLIBC 0.9.31
>> Linux kernel 2.6.28
> Please note that kernel tracing is only available on kernels >= 2.6.38
> (or 2.6.32 if patched appropriately).
> I'm not an openwrt user, but it seems Makefiles are only provided for
> LTTng 2.1.0. Can you confirm whether or not the build succeeds for
> that version?
>
>> ARCH mips32
>> lttng version : 2.3.0
>> librcu version : 0.8
>>
>> First problem was related to lttng-ust-2.3.0/libringbuffer/getcpu.h. I get
>> an undefined reference to c variable in lttng_ust_get_cpu function. After
>> some research I was not able to find a solution about this point even if I
>> seem to be up to date since I found some patch related to issue with old
>> version of uclibc than 0.9.32. This patch seems to be already integrated in
>> my lttng ust version. Anyway, I found a workaround to check that the next
>> step on the compilation is find... but it is not...
>>
> Could you clarify what was the error and what is the workaround?
>
>> Compilation result :
>>
>> make package/lttng-tools/compile V=99
>>
>> make[1]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt'
>> make[2]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/package/e2fsprogs'
>> WARNING: skipping e2fsprogs -- package not selected
>> WARNING: skipping uuidgen -- package not selected
>> WARNING: skipping libext2fs -- package not selected
>> WARNING: skipping tune2fs -- package not selected
>> WARNING: skipping resize2fs -- package not selected
>> WARNING: skipping badblocks -- package not selected
>> WARNING: skipping blkid -- package not selected
>> make[2]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/package/e2fsprogs'
>> make[2]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/devel/lttng-ust'
>> CFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> " CXXFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> "
>> LDFLAGS="-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> " make  -j2 -C
>> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.
>> AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os
>> -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts
>> -msoft-float" LD=mips-openwrt-linux-uclibc-ld
>> NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc"
>> GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++"
>> RANLIB=mips-openwrt-linux-uclibc-ranlib
>> STRIP=mips-openwrt-linux-uclibc-strip
>> OBJCOPY=mips-openwrt-linux-uclibc-objcopy
>> OBJDUMP=mips-openwrt-linux-uclibc-objdump
>> SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-"
>> ARCH="mips" ;
>> make[3]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make  all-recursive
>> make[4]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in .
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[5]: Nothing to be done for `all-am'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in include
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> Making all in snprintf
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> Making all in libringbuffer
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> Making all in liblttng-ust-comm
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> Making all in liblttng-ust
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> Making all in liblttng-ust-ctl
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> Making all in liblttng-ust-fork
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> Making all in liblttng-ust-libc-wrapper
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> Making all in liblttng-ust-cyg-profile
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> Making all in tools
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> Making all in tests
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> Making all in utils
>> make[6]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> make[6]: Nothing to be done for `all'.
>> make[6]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> Making all in hello
>> make[6]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> /bin/bash ../../libtool  --tag=CC   --mode=link
>> mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition -Wall -Os -pipe
>> -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts -msoft-float
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> -o hello hello-hello.o hello-tp.o ../../liblttng-ust/liblttng-ust.la -ldl
>> -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
>> libtool: link: mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition
>> -Wall -Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float -o .libs/hello hello-hello.o hello-tp.o
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> ../../liblttng-ust/.libs/liblttng-ust.so
>> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so
>> -lrt -ldl -lurcu-bp -lurcu-cds -lpthread
>> ../../liblttng-ust/.libs/liblttng-ust.so: warning: the use of `mktemp' is
>> dangerous, better use `mkstemp'
>> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-common.so.2, needed by
>> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so,
>> not found (try using -rpath or -rpath-link)
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_open'
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
>> `shm_unlink'
>> collect2: ld returned 1 exit status
>> make[6]: *** [hello] Error 1
>> make[6]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> make[5]: *** [all-recursive] Error 1
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[2]: ***
>> [/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.built]
>> Error 2
>> make[2]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/devel/lttng-ust'
>> make[1]: *** [package/feeds/tools/lttng-ust/compile] Error 2
>> make[1]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt'
>> make: *** [package/lttng-ust/compile] Erreur 2
>>
>> I am not very confortable with autotools but I am not able to understand
>> this error. Is it relared to the missing liburcu-common.so.2 library ? shm
>> functions are define by uclibc ? missing include ?
>>
>> Thanks,
>> Arthur.
>>
>>
>> #
>> " Ce courriel et les documents qui lui sont joints peuvent contenir des
>> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
>> pas destiné nous vous signalons qu'il est strictement interdit de les
>> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
>> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
>> informer l'expéteur et de supprimer imméatement de votre systè
>> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>>
>>
>>                                ******
>>
>> " This e-mail and any attached documents may contain confidential or
>> proprietary information. If you are not the intended recipient, you are
>> notified that any dissemination, copying of this e-mail and any attachments
>> thereto or use of their contents by any means whatsoever is strictly
>> prohibited. If you have received this e-mail in error, please advise the
>> sender immediately and delete this e-mail and all attached documents
>> from your computer system."
>> #
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>


#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractè privéS'ils ne vous sont
pas destiné nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
informer l'expéteur et de supprimer imméatement de votre systè
informatique ce courriel ainsi que tous les documents qui y sont attaché"


                               ******

" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents
from your computer system."
#

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

* Re: Compilation error with openwrt and uclibc 0.9.31
       [not found] ` <CA+jJMxuPudXDiatZfWVwUvvHJ9_WJ4gg_4vUeFapKZet4G-UFw@mail.gmail.com>
  2013-09-26  8:03   ` Arthur LAMBERT
@ 2013-09-26 10:38   ` Arthur LAMBERT
  2013-09-26 15:58   ` Arthur LAMBERT
       [not found]   ` <5244599E.4050100@sagemcom.com>
  3 siblings, 0 replies; 8+ messages in thread
From: Arthur LAMBERT @ 2013-09-26 10:38 UTC (permalink / raw)
  To: Jérémie Galarneau; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 17157 bytes --]

Hi

After some research about compilation error with uclibc relative to 
shm_open, I finally found a patch for my toolchain : 
http://lists.uclibc.org/pipermail/uclibc/2009-February/041886.html
This patch add missing file for uclibc 0.9.30.1...

This patch fix shm_open issue with 2.1.0 and 2.3.0 version of LTT.

Now just need to test if my work around in getcpu.h allow the tool to 
work correctly. So like often, just need to use the good key word in 
google to find a way out hehe.

Arthur.

On 25/09/2013 18:17, Jérémie Galarneau wrote:
> On Wed, Sep 25, 2013 at 7:06 AM, Arthur LAMBERT
> <arthur.lambert@sagemcom.com> wrote:
>> Hi,
>>
>> I am using backfire version of Openwrt and would like to try to use
>> profiling features bring by tools like lttng. I found some Makefile packages
>> on openwrt website to build lttng-tools and lttng-ust with recent version of
>> openwrt version but I am not able to compile lttng without error. with
>> mine..
>>
>> Environment :
>>
>> Openwrt Backfire
>> UCLIBC 0.9.31
>> Linux kernel 2.6.28
> Please note that kernel tracing is only available on kernels >= 2.6.38
> (or 2.6.32 if patched appropriately).
> I'm not an openwrt user, but it seems Makefiles are only provided for
> LTTng 2.1.0. Can you confirm whether or not the build succeeds for
> that version?
>
>> ARCH mips32
>> lttng version : 2.3.0
>> librcu version : 0.8
>>
>> First problem was related to lttng-ust-2.3.0/libringbuffer/getcpu.h. I get
>> an undefined reference to c variable in lttng_ust_get_cpu function. After
>> some research I was not able to find a solution about this point even if I
>> seem to be up to date since I found some patch related to issue with old
>> version of uclibc than 0.9.32. This patch seems to be already integrated in
>> my lttng ust version. Anyway, I found a workaround to check that the next
>> step on the compilation is find... but it is not...
>>
> Could you clarify what was the error and what is the workaround?
>
>> Compilation result :
>>
>> make package/lttng-tools/compile V=99
>>
>> make[1]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt'
>> make[2]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/package/e2fsprogs'
>> WARNING: skipping e2fsprogs -- package not selected
>> WARNING: skipping uuidgen -- package not selected
>> WARNING: skipping libext2fs -- package not selected
>> WARNING: skipping tune2fs -- package not selected
>> WARNING: skipping resize2fs -- package not selected
>> WARNING: skipping badblocks -- package not selected
>> WARNING: skipping blkid -- package not selected
>> make[2]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/package/e2fsprogs'
>> make[2]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/devel/lttng-ust'
>> CFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> " CXXFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> "
>> LDFLAGS="-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> " make  -j2 -C
>> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.
>> AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os
>> -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts
>> -msoft-float" LD=mips-openwrt-linux-uclibc-ld
>> NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc"
>> GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++"
>> RANLIB=mips-openwrt-linux-uclibc-ranlib
>> STRIP=mips-openwrt-linux-uclibc-strip
>> OBJCOPY=mips-openwrt-linux-uclibc-objcopy
>> OBJDUMP=mips-openwrt-linux-uclibc-objdump
>> SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-"
>> ARCH="mips" ;
>> make[3]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make  all-recursive
>> make[4]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in .
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[5]: Nothing to be done for `all-am'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in include
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> Making all in snprintf
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> Making all in libringbuffer
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> Making all in liblttng-ust-comm
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> Making all in liblttng-ust
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> Making all in liblttng-ust-ctl
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> Making all in liblttng-ust-fork
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> Making all in liblttng-ust-libc-wrapper
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> Making all in liblttng-ust-cyg-profile
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> Making all in tools
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> Making all in tests
>> make[5]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> Making all in utils
>> make[6]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> make[6]: Nothing to be done for `all'.
>> make[6]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> Making all in hello
>> make[6]: Entering directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> /bin/bash ../../libtool  --tag=CC   --mode=link
>> mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition -Wall -Os -pipe
>> -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts -msoft-float
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> -o hello hello-hello.o hello-tp.o ../../liblttng-ust/liblttng-ust.la -ldl
>> -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
>> libtool: link: mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition
>> -Wall -Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float -o .libs/hello hello-hello.o hello-tp.o
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> ../../liblttng-ust/.libs/liblttng-ust.so
>> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so
>> -lrt -ldl -lurcu-bp -lurcu-cds -lpthread
>> ../../liblttng-ust/.libs/liblttng-ust.so: warning: the use of `mktemp' is
>> dangerous, better use `mkstemp'
>> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-common.so.2, needed by
>> /home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so,
>> not found (try using -rpath or -rpath-link)
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_open'
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
>> `shm_unlink'
>> collect2: ld returned 1 exit status
>> make[6]: *** [hello] Error 1
>> make[6]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> make[5]: *** [all-recursive] Error 1
>> make[5]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[2]: ***
>> [/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.built]
>> Error 2
>> make[2]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/devel/lttng-ust'
>> make[1]: *** [package/feeds/tools/lttng-ust/compile] Error 2
>> make[1]: Leaving directory
>> `/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt'
>> make: *** [package/lttng-ust/compile] Erreur 2
>>
>> I am not very confortable with autotools but I am not able to understand
>> this error. Is it relared to the missing liburcu-common.so.2 library ? shm
>> functions are define by uclibc ? missing include ?
>>
>> Thanks,
>> Arthur.
>>
>>
>> #
>> " Ce courriel et les documents qui lui sont joints peuvent contenir des
>> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
>> pas destiné nous vous signalons qu'il est strictement interdit de les
>> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
>> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
>> informer l'expéteur et de supprimer imméatement de votre systè
>> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>>
>>
>>                                ******
>>
>> " This e-mail and any attached documents may contain confidential or
>> proprietary information. If you are not the intended recipient, you are
>> notified that any dissemination, copying of this e-mail and any attachments
>> thereto or use of their contents by any means whatsoever is strictly
>> prohibited. If you have received this e-mail in error, please advise the
>> sender immediately and delete this e-mail and all attached documents
>> from your computer system."
>> #
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>


#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractè privéS'ils ne vous sont
pas destiné nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
informer l'expéteur et de supprimer imméatement de votre systè
informatique ce courriel ainsi que tous les documents qui y sont attaché"


                               ******

" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents
from your computer system."
#


[-- Attachment #1.2: Type: text/html, Size: 17840 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Compilation error with openwrt and uclibc 0.9.31
       [not found] ` <CA+jJMxuPudXDiatZfWVwUvvHJ9_WJ4gg_4vUeFapKZet4G-UFw@mail.gmail.com>
  2013-09-26  8:03   ` Arthur LAMBERT
  2013-09-26 10:38   ` Arthur LAMBERT
@ 2013-09-26 15:58   ` Arthur LAMBERT
       [not found]   ` <5244599E.4050100@sagemcom.com>
  3 siblings, 0 replies; 8+ messages in thread
From: Arthur LAMBERT @ 2013-09-26 15:58 UTC (permalink / raw)
  To: Jérémie Galarneau; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 18166 bytes --]

Hi again,

I was able now to build lttng-ust but I have still some problems with 
lttng-tools...

My current story is ( Could be usefull for the next guy which want to 
try to compile the tool with a toolchain from Jurassic time) :

* shm_open issue
   -> patch for toolchain uClibc-0.9.30.1 : 
http://lists.uclibc.org/pipermail/uclibc/2009-February/041886.html

* epoll_create1 and EPOLLRDHUP issue
   -> patch for toolchain uClibc-0.9.30.1 : 
http://uclibc.10924.n7.nabble.com/PATCH-Implement-epoll-create1-and-epoll-pwait-system-calls-td268.html

* be32toh issue
   -> patch for toolchain uClibc-0.9.30.1 : 
http://lists.uclibc.org/pipermail/uclibc/2010-June/044107.html

* pthread-condattr issue
    -> patch for toolchain uClibc-0.9.30.1 : 
http://www.mail-archive.com/uclibc@uclibc.org/msg01909.html

My last issue :

/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld: 
warning: liburcu-common.so.1, needed by 
/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so, 
not found (try using -rpath or -rpath-link)
/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld: 
warning: liblttng-ust-tracepoint.so.0, needed by 
/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so, not 
found (try using -rpath or -rpath-link)
/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld: 
warning: libuuid.so.1, needed by 
/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so, not 
found (try using -rpath or -rpath-link)
/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld: 
warning: liburcu-cds.so.1, needed by 
/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so, not 
found (try using -rpath or -rpath-link)
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `__tracepoint_probe_unregister'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `_cds_lfht_new'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `cds_lfht_lookup'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `init_tracepoint'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `cds_lfht_del'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `uuid_generate'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `exit_tracepoint'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `cds_lfht_destroy'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `cds_lfht_first'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `cds_lfht_add_unique'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `cds_lfht_next'
XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so: 
undefined reference to `__tracepoint_probe_register'

I found a bug here which seems related to my issue : 
https://bugs.lttng.org/issues/321
This bug talk about a fix in configure.ac : 
https://bugs.lttng.org/projects/lttng-ust/repository/revisions/faebb41808b9deda5ef5dfea0c035077407e7f9f/diff

Problem is that I seems to have already this fix in my lttng-ust 
version. I am not very confortable with autotools. Do I have to add a 
"libtool-linkdep-fixup" flag somewhere to be able to enable the fix 
during my compile process ?

Thanks,
Arthur.


On 25/09/2013 18:17, Jérémie Galarneau wrote:
> On Wed, Sep 25, 2013 at 7:06 AM, Arthur LAMBERT
> <arthur.lambert@sagemcom.com> wrote:
>> Hi,
>>
>> I am using backfire version of Openwrt and would like to try to use
>> profiling features bring by tools like lttng. I found some Makefile packages
>> on openwrt website to build lttng-tools and lttng-ust with recent version of
>> openwrt version but I am not able to compile lttng without error. with
>> mine..
>>
>> Environment :
>>
>> Openwrt Backfire
>> UCLIBC 0.9.31
>> Linux kernel 2.6.28
> Please note that kernel tracing is only available on kernels >= 2.6.38
> (or 2.6.32 if patched appropriately).
> I'm not an openwrt user, but it seems Makefiles are only provided for
> LTTng 2.1.0. Can you confirm whether or not the build succeeds for
> that version?
>
>> ARCH mips32
>> lttng version : 2.3.0
>> librcu version : 0.8
>>
>> First problem was related to lttng-ust-2.3.0/libringbuffer/getcpu.h. I get
>> an undefined reference to c variable in lttng_ust_get_cpu function. After
>> some research I was not able to find a solution about this point even if I
>> seem to be up to date since I found some patch related to issue with old
>> version of uclibc than 0.9.32. This patch seems to be already integrated in
>> my lttng ust version. Anyway, I found a workaround to check that the next
>> step on the compilation is find... but it is not...
>>
> Could you clarify what was the error and what is the workaround?
>
>> Compilation result :
>>
>> make package/lttng-tools/compile V=99
>>
>> make[1]: Entering directory
>> `XXXXXX/openwrt'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/package/e2fsprogs'
>> WARNING: skipping e2fsprogs -- package not selected
>> WARNING: skipping uuidgen -- package not selected
>> WARNING: skipping libext2fs -- package not selected
>> WARNING: skipping tune2fs -- package not selected
>> WARNING: skipping resize2fs -- package not selected
>> WARNING: skipping badblocks -- package not selected
>> WARNING: skipping blkid -- package not selected
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/package/e2fsprogs'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/feeds/tools/devel/lttng-ust'
>> CFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> " CXXFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> "
>> LDFLAGS="-LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> " make  -j2 -C
>> XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.
>> AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os
>> -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts
>> -msoft-float" LD=mips-openwrt-linux-uclibc-ld
>> NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc"
>> GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++"
>> RANLIB=mips-openwrt-linux-uclibc-ranlib
>> STRIP=mips-openwrt-linux-uclibc-strip
>> OBJCOPY=mips-openwrt-linux-uclibc-objcopy
>> OBJDUMP=mips-openwrt-linux-uclibc-objdump
>> SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-"
>> ARCH="mips" ;
>> make[3]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make  all-recursive
>> make[4]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in .
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[5]: Nothing to be done for `all-am'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in include
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> Making all in snprintf
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> Making all in libringbuffer
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> Making all in liblttng-ust-comm
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> Making all in liblttng-ust
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> Making all in liblttng-ust-ctl
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> Making all in liblttng-ust-fork
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> Making all in liblttng-ust-libc-wrapper
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> Making all in liblttng-ust-cyg-profile
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> Making all in tools
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> Making all in tests
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> Making all in utils
>> make[6]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> make[6]: Nothing to be done for `all'.
>> make[6]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> Making all in hello
>> make[6]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> /bin/bash ../../libtool  --tag=CC   --mode=link
>> mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition -Wall -Os -pipe
>> -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts -msoft-float
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> -o hello hello-hello.o hello-tp.o ../../liblttng-ust/liblttng-ust.la -ldl
>> -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
>> libtool: link: mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition
>> -Wall -Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float -o .libs/hello hello-hello.o hello-tp.o
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> ../../liblttng-ust/.libs/liblttng-ust.so
>> XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so
>> -lrt -ldl -lurcu-bp -lurcu-cds -lpthread
>> ../../liblttng-ust/.libs/liblttng-ust.so: warning: the use of `mktemp' is
>> dangerous, better use `mkstemp'
>> XXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-common.so.2, needed by
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so,
>> not found (try using -rpath or -rpath-link)
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_open'
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
>> `shm_unlink'
>> collect2: ld returned 1 exit status
>> make[6]: *** [hello] Error 1
>> make[6]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> make[5]: *** [all-recursive] Error 1
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[2]: ***
>> [XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.built]
>> Error 2
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/feeds/tools/devel/lttng-ust'
>> make[1]: *** [package/feeds/tools/lttng-ust/compile] Error 2
>> make[1]: Leaving directory
>> `XXXXXX/openwrt'
>> make: *** [package/lttng-ust/compile] Erreur 2
>>
>> I am not very confortable with autotools but I am not able to understand
>> this error. Is it relared to the missing liburcu-common.so.2 library ? shm
>> functions are define by uclibc ? missing include ?
>>
>> Thanks,
>> Arthur.
>>
>>
>> #
>> " Ce courriel et les documents qui lui sont joints peuvent contenir des
>> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
>> pas destiné nous vous signalons qu'il est strictement interdit de les
>> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
>> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
>> informer l'expéteur et de supprimer imméatement de votre systè
>> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>>
>>
>>                                ******
>>
>> " This e-mail and any attached documents may contain confidential or
>> proprietary information. If you are not the intended recipient, you are
>> notified that any dissemination, copying of this e-mail and any attachments
>> thereto or use of their contents by any means whatsoever is strictly
>> prohibited. If you have received this e-mail in error, please advise the
>> sender immediately and delete this e-mail and all attached documents
>> from your computer system."
>> #
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>


#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractè privéS'ils ne vous sont
pas destiné nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
informer l'expéteur et de supprimer imméatement de votre systè
informatique ce courriel ainsi que tous les documents qui y sont attaché"


                               ******

" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents
from your computer system."
#


[-- Attachment #1.2: Type: text/html, Size: 20386 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Compilation error with openwrt and uclibc 0.9.31
       [not found]   ` <5244599E.4050100@sagemcom.com>
@ 2013-09-26 16:34     ` Christian Babeux
       [not found]     ` <CAGDH53ni8UgfT==5KifqCo7Qa3bJdRZSJ88Z20-BiSkdmseqGg@mail.gmail.com>
  1 sibling, 0 replies; 8+ messages in thread
From: Christian Babeux @ 2013-09-26 16:34 UTC (permalink / raw)
  To: arthur.lambert; +Cc: lttng-dev

Hi Arthur,

> Problem is that I seems to have already this fix in my lttng-ust version. I
> am not very confortable with autotools. Do I have to add a
> "libtool-linkdep-fixup" flag somewhere to be able to enable the fix during
> my compile process ?

No need to add any flag, if configure detect a bogus link_all_deplibs
value in your libtool.m4 it will automatically patch it. Relevant
configure output:

[...]
checking for occurence(s) of link_all_deplibs = no in ./config/libtool.m4... 3
the detected libtool will not link all dependencies, forcing
link_all_deplibs = unknown
[...]

Your issue is that ld cannot find shared objects such as libuuid,
liburcu*. Which flag did you use to cross-compile?

Thanks,

Christian

On Thu, Sep 26, 2013 at 11:58 AM, Arthur LAMBERT
<arthur.lambert@sagemcom.com> wrote:
> Hi again,
>
> I was able now to build lttng-ust but I have still some problems with
> lttng-tools...
>
> My current story is ( Could be usefull for the next guy which want to try to
> compile the tool with a toolchain from Jurassic time) :
>
> * shm_open issue
>   -> patch for toolchain uClibc-0.9.30.1 :
> http://lists.uclibc.org/pipermail/uclibc/2009-February/041886.html
>
> * epoll_create1 and EPOLLRDHUP issue
>   -> patch for toolchain uClibc-0.9.30.1 :
> http://uclibc.10924.n7.nabble.com/PATCH-Implement-epoll-create1-and-epoll-pwait-system-calls-td268.html
>
> * be32toh issue
>   -> patch for toolchain uClibc-0.9.30.1 :
> http://lists.uclibc.org/pipermail/uclibc/2010-June/044107.html
>
> * pthread-condattr issue
>    -> patch for toolchain uClibc-0.9.30.1 :
> http://www.mail-archive.com/uclibc@uclibc.org/msg01909.html
>
> My last issue :
>
> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
> warning: liburcu-common.so.1, needed by
> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so, not
> found (try using -rpath or -rpath-link)
> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
> warning: liblttng-ust-tracepoint.so.0, needed by
> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
> not found (try using -rpath or -rpath-link)
> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
> warning: libuuid.so.1, needed by
> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
> not found (try using -rpath or -rpath-link)
> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
> warning: liburcu-cds.so.1, needed by
> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
> not found (try using -rpath or -rpath-link)
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `__tracepoint_probe_unregister'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `_cds_lfht_new'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `cds_lfht_lookup'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `init_tracepoint'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `cds_lfht_del'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `uuid_generate'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `exit_tracepoint'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `cds_lfht_destroy'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `cds_lfht_first'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `cds_lfht_add_unique'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `cds_lfht_next'
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
> undefined reference to `__tracepoint_probe_register'
>
> I found a bug here which seems related to my issue :
> https://bugs.lttng.org/issues/321
> This bug talk about a fix in configure.ac :
> https://bugs.lttng.org/projects/lttng-ust/repository/revisions/faebb41808b9deda5ef5dfea0c035077407e7f9f/diff
>
> Problem is that I seems to have already this fix in my lttng-ust version. I
> am not very confortable with autotools. Do I have to add a
> "libtool-linkdep-fixup" flag somewhere to be able to enable the fix during
> my compile process ?
>
> Thanks,
>
> Arthur.
>
>
> On 25/09/2013 18:17, Jérémie Galarneau wrote:
>
> On Wed, Sep 25, 2013 at 7:06 AM, Arthur LAMBERT
> <arthur.lambert@sagemcom.com> wrote:
>
> Hi,
>
> I am using backfire version of Openwrt and would like to try to use
> profiling features bring by tools like lttng. I found some Makefile packages
> on openwrt website to build lttng-tools and lttng-ust with recent version of
> openwrt version but I am not able to compile lttng without error. with
> mine..
>
> Environment :
>
> Openwrt Backfire
> UCLIBC 0.9.31
> Linux kernel 2.6.28
>
> Please note that kernel tracing is only available on kernels >= 2.6.38
> (or 2.6.32 if patched appropriately).
> I'm not an openwrt user, but it seems Makefiles are only provided for
> LTTng 2.1.0. Can you confirm whether or not the build succeeds for
> that version?
>
> ARCH mips32
> lttng version : 2.3.0
> librcu version : 0.8
>
> First problem was related to lttng-ust-2.3.0/libringbuffer/getcpu.h. I get
> an undefined reference to c variable in lttng_ust_get_cpu function. After
> some research I was not able to find a solution about this point even if I
> seem to be up to date since I found some patch related to issue with old
> version of uclibc than 0.9.32. This patch seems to be already integrated in
> my lttng ust version. Anyway, I found a workaround to check that the next
> step on the compilation is find... but it is not...
>
> Could you clarify what was the error and what is the workaround?
>
> Compilation result :
>
> make package/lttng-tools/compile V=99
>
> make[1]: Entering directory
> `XXXXXX/openwrt'
> make[2]: Entering directory
> `XXXXXX/openwrt/feeds/tools/libs/liburcu'
> make[2]: Leaving directory
> `XXXXXX/openwrt/feeds/tools/libs/liburcu'
> make[2]: Entering directory
> `XXXXXX/openwrt/package/e2fsprogs'
> WARNING: skipping e2fsprogs -- package not selected
> WARNING: skipping uuidgen -- package not selected
> WARNING: skipping libext2fs -- package not selected
> WARNING: skipping tune2fs -- package not selected
> WARNING: skipping resize2fs -- package not selected
> WARNING: skipping badblocks -- package not selected
> WARNING: skipping blkid -- package not selected
> make[2]: Leaving directory
> `XXXXXX/openwrt/package/e2fsprogs'
> make[2]: Entering directory
> `XXXXXX/openwrt/feeds/tools/devel/lttng-ust'
> CFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
> -fhonour-copts -msoft-float
> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
> " CXXFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
> -fhonour-copts -msoft-float
> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
> "
> LDFLAGS="-LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
> " make  -j2 -C
> XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.
> AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os
> -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts
> -msoft-float" LD=mips-openwrt-linux-uclibc-ld
> NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc"
> GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++"
> RANLIB=mips-openwrt-linux-uclibc-ranlib
> STRIP=mips-openwrt-linux-uclibc-strip
> OBJCOPY=mips-openwrt-linux-uclibc-objcopy
> OBJDUMP=mips-openwrt-linux-uclibc-objdump
> SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-"
> ARCH="mips" ;
> make[3]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> make  all-recursive
> make[4]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> Making all in .
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> make[5]: Nothing to be done for `all-am'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> Making all in include
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
> Making all in snprintf
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
> Making all in libringbuffer
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
> Making all in liblttng-ust-comm
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
> Making all in liblttng-ust
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
> Making all in liblttng-ust-ctl
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
> Making all in liblttng-ust-fork
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
> Making all in liblttng-ust-libc-wrapper
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
> Making all in liblttng-ust-cyg-profile
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
> Making all in tools
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
> Making all in tests
> make[5]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
> Making all in utils
> make[6]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
> make[6]: Nothing to be done for `all'.
> make[6]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
> Making all in hello
> make[6]: Entering directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
> /bin/bash ../../libtool  --tag=CC   --mode=link
> mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition -Wall -Os -pipe
> -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts -msoft-float
> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
> -o hello hello-hello.o hello-tp.o ../../liblttng-ust/liblttng-ust.la -ldl
> -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
> libtool: link: mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition
> -Wall -Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
> -fhonour-copts -msoft-float -o .libs/hello hello-hello.o hello-tp.o
> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
> ../../liblttng-ust/.libs/liblttng-ust.so
> XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so
> -lrt -ldl -lurcu-bp -lurcu-cds -lpthread
> ../../liblttng-ust/.libs/liblttng-ust.so: warning: the use of `mktemp' is
> dangerous, better use `mkstemp'
> XXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
> warning: liburcu-common.so.2, needed by
> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so,
> not found (try using -rpath or -rpath-link)
> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_open'
> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
> `shm_unlink'
> collect2: ld returned 1 exit status
> make[6]: *** [hello] Error 1
> make[6]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
> make[2]: ***
> [XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.built]
> Error 2
> make[2]: Leaving directory
> `XXXXXX/openwrt/feeds/tools/devel/lttng-ust'
> make[1]: *** [package/feeds/tools/lttng-ust/compile] Error 2
> make[1]: Leaving directory
> `XXXXXX/openwrt'
> make: *** [package/lttng-ust/compile] Erreur 2
>
> I am not very confortable with autotools but I am not able to understand
> this error. Is it relared to the missing liburcu-common.so.2 library ? shm
> functions are define by uclibc ? missing include ?
>
> Thanks,
> Arthur.
>
>
> #
> " Ce courriel et les documents qui lui sont joints peuvent contenir des
> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
> pas destiné nous vous signalons qu'il est strictement interdit de les
> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
> informer l'expéteur et de supprimer imméatement de votre systè
> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>
>
>                               ******
>
> " This e-mail and any attached documents may contain confidential or
> proprietary information. If you are not the intended recipient, you are
> notified that any dissemination, copying of this e-mail and any attachments
> thereto or use of their contents by any means whatsoever is strictly
> prohibited. If you have received this e-mail in error, please advise the
> sender immediately and delete this e-mail and all attached documents
> from your computer system."
> #
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>
>
> #
> " Ce courriel et les documents qui lui sont joints peuvent contenir des
> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
> pas destiné nous vous signalons qu'il est strictement interdit de les
> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
> informer l'expéteur et de supprimer imméatement de votre systè
> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>
>
>                                ******
>
> " This e-mail and any attached documents may contain confidential or
> proprietary information. If you are not the intended recipient, you are
> notified that any dissemination, copying of this e-mail and any attachments
> thereto or use of their contents by any means whatsoever is strictly
> prohibited. If you have received this e-mail in error, please advise the
> sender immediately and delete this e-mail and all attached documents
> from your computer system."
> #
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Compilation error with openwrt and uclibc 0.9.31
       [not found]     ` <CAGDH53ni8UgfT==5KifqCo7Qa3bJdRZSJ88Z20-BiSkdmseqGg@mail.gmail.com>
@ 2013-09-27  9:22       ` Arthur LAMBERT
  2013-09-27 13:23       ` Arthur LAMBERT
  1 sibling, 0 replies; 8+ messages in thread
From: Arthur LAMBERT @ 2013-09-27  9:22 UTC (permalink / raw)
  To: Christian Babeux; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 23227 bytes --]

Hi Christian,

You right, I guess that I need to add something. I was checking my 
Makefile using by openwrt to build lttng-ust and lttng-tools, the only 
process concerning flag are :  :

lttng-tools :
TARGET_LDFLAGS += -lurcu-bp
DEPENDS:=+lttng-ust +libpopt

lttng-ust
DEPENDS:=+liburcu +libuuid +librt

Nothing else..

Missing shared libraries file are :
- liburcu-common.so.1
- liblttng-ust-tracepoint.so.0
- libuuid.so.1
- liburcu-cds.so.1

I was checking my build-dir directory, all shared libraries seems to be 
there :
[XXX ] find build_dir/ -name  liblttng-ust-tracepoint.so.0
build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so.0
build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/ipkg-install/usr/lib/liblttng-ust-tracepoint.so.0
build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/ipkg-sagemcom/lttng-ust/usr/lib/liblttng-ust-tracepoint.so.0
build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.1.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so.0
build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.1.0/ipkg-install/usr/lib/liblttng-ust-tracepoint.so.0
build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.1.0/ipkg-sagemcom/lttng-ust/usr/lib/liblttng-ust-tracepoint.so.0
[XXX ] find build_dir/ -name  libuuid.so.1
build_dir/target-mips_uClibc-0.9.30.1/e2fsprogs-1.41.12/ipkg-install/usr/lib/libuuid.so.1
build_dir/target-mips_uClibc-0.9.30.1/e2fsprogs-1.41.12/ipkg-sagemcom/libuuid/usr/lib/libuuid.so.1
build_dir/target-mips_uClibc-0.9.30.1/e2fsprogs-1.41.12/lib/libuuid.so.1
[XXX ] find build_dir/ -name  liburcu-cds.so.1
build_dir/target-mips_uClibc-0.9.30.1/userspace-rcu-0.7.6/ipkg-install/usr/lib/liburcu-cds.so.1
build_dir/target-mips_uClibc-0.9.30.1/userspace-rcu-0.7.6/ipkg-sagemcom/liburcu/usr/lib/liburcu-cds.so.1
build_dir/target-mips_uClibc-0.9.30.1/userspace-rcu-0.7.6/.libs/liburcu-cds.so.1
[XXX ] find build_dir/ -name  liburcu-common.so.1
build_dir/target-mips_uClibc-0.9.30.1/userspace-rcu-0.7.6/ipkg-install/usr/lib/liburcu-common.so.1
build_dir/target-mips_uClibc-0.9.30.1/userspace-rcu-0.7.6/ipkg-sagemcom/liburcu/usr/lib/liburcu-common.so.1
build_dir/target-mips_uClibc-0.9.30.1/userspace-rcu-0.7.6/.libs/liburcu-common.so.1

I guess that it is not an issue related to lttng build but related to my 
knowledge about autotools usage in openwrt..

Last thing that I forgot, I get also an issue about useconds_t in 
gen-ust-event source file. No patch found to fix this issue. Currently, 
I just replace this type by an unsigned int to continue my building 
adventure.

Arthur.

On 26/09/2013 18:34, Christian Babeux wrote:
> Hi Arthur,
>
>> Problem is that I seems to have already this fix in my lttng-ust version. I
>> am not very confortable with autotools. Do I have to add a
>> "libtool-linkdep-fixup" flag somewhere to be able to enable the fix during
>> my compile process ?
> No need to add any flag, if configure detect a bogus link_all_deplibs
> value in your libtool.m4 it will automatically patch it. Relevant
> configure output:
>
> [...]
> checking for occurence(s) of link_all_deplibs = no in ./config/libtool.m4... 3
> the detected libtool will not link all dependencies, forcing
> link_all_deplibs = unknown
> [...]
>
> Your issue is that ld cannot find shared objects such as libuuid,
> liburcu*. Which flag did you use to cross-compile?
>
> Thanks,
>
> Christian
>
> On Thu, Sep 26, 2013 at 11:58 AM, Arthur LAMBERT
> <arthur.lambert@sagemcom.com> wrote:
>> Hi again,
>>
>> I was able now to build lttng-ust but I have still some problems with
>> lttng-tools...
>>
>> My current story is ( Could be usefull for the next guy which want to try to
>> compile the tool with a toolchain from Jurassic time) :
>>
>> * shm_open issue
>>    -> patch for toolchain uClibc-0.9.30.1 :
>> http://lists.uclibc.org/pipermail/uclibc/2009-February/041886.html
>>
>> * epoll_create1 and EPOLLRDHUP issue
>>    -> patch for toolchain uClibc-0.9.30.1 :
>> http://uclibc.10924.n7.nabble.com/PATCH-Implement-epoll-create1-and-epoll-pwait-system-calls-td268.html
>>
>> * be32toh issue
>>    -> patch for toolchain uClibc-0.9.30.1 :
>> http://lists.uclibc.org/pipermail/uclibc/2010-June/044107.html
>>
>> * pthread-condattr issue
>>     -> patch for toolchain uClibc-0.9.30.1 :
>> http://www.mail-archive.com/uclibc@uclibc.org/msg01909.html
>>
>> My last issue :
>>
>> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-common.so.1, needed by
>> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so, not
>> found (try using -rpath or -rpath-link)
>> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liblttng-ust-tracepoint.so.0, needed by
>> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
>> not found (try using -rpath or -rpath-link)
>> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: libuuid.so.1, needed by
>> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
>> not found (try using -rpath or -rpath-link)
>> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-cds.so.1, needed by
>> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
>> not found (try using -rpath or -rpath-link)
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `__tracepoint_probe_unregister'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `_cds_lfht_new'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_lookup'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `init_tracepoint'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_del'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `uuid_generate'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `exit_tracepoint'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_destroy'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_first'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_add_unique'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_next'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `__tracepoint_probe_register'
>>
>> I found a bug here which seems related to my issue :
>> https://bugs.lttng.org/issues/321
>> This bug talk about a fix in configure.ac :
>> https://bugs.lttng.org/projects/lttng-ust/repository/revisions/faebb41808b9deda5ef5dfea0c035077407e7f9f/diff
>>
>> Problem is that I seems to have already this fix in my lttng-ust version. I
>> am not very confortable with autotools. Do I have to add a
>> "libtool-linkdep-fixup" flag somewhere to be able to enable the fix during
>> my compile process ?
>>
>> Thanks,
>>
>> Arthur.
>>
>>
>> On 25/09/2013 18:17, Jérémie Galarneau wrote:
>>
>> On Wed, Sep 25, 2013 at 7:06 AM, Arthur LAMBERT
>> <arthur.lambert@sagemcom.com> wrote:
>>
>> Hi,
>>
>> I am using backfire version of Openwrt and would like to try to use
>> profiling features bring by tools like lttng. I found some Makefile packages
>> on openwrt website to build lttng-tools and lttng-ust with recent version of
>> openwrt version but I am not able to compile lttng without error. with
>> mine..
>>
>> Environment :
>>
>> Openwrt Backfire
>> UCLIBC 0.9.31
>> Linux kernel 2.6.28
>>
>> Please note that kernel tracing is only available on kernels >= 2.6.38
>> (or 2.6.32 if patched appropriately).
>> I'm not an openwrt user, but it seems Makefiles are only provided for
>> LTTng 2.1.0. Can you confirm whether or not the build succeeds for
>> that version?
>>
>> ARCH mips32
>> lttng version : 2.3.0
>> librcu version : 0.8
>>
>> First problem was related to lttng-ust-2.3.0/libringbuffer/getcpu.h. I get
>> an undefined reference to c variable in lttng_ust_get_cpu function. After
>> some research I was not able to find a solution about this point even if I
>> seem to be up to date since I found some patch related to issue with old
>> version of uclibc than 0.9.32. This patch seems to be already integrated in
>> my lttng ust version. Anyway, I found a workaround to check that the next
>> step on the compilation is find... but it is not...
>>
>> Could you clarify what was the error and what is the workaround?
>>
>> Compilation result :
>>
>> make package/lttng-tools/compile V=99
>>
>> make[1]: Entering directory
>> `XXXXXX/openwrt'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/package/e2fsprogs'
>> WARNING: skipping e2fsprogs -- package not selected
>> WARNING: skipping uuidgen -- package not selected
>> WARNING: skipping libext2fs -- package not selected
>> WARNING: skipping tune2fs -- package not selected
>> WARNING: skipping resize2fs -- package not selected
>> WARNING: skipping badblocks -- package not selected
>> WARNING: skipping blkid -- package not selected
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/package/e2fsprogs'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/feeds/tools/devel/lttng-ust'
>> CFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> " CXXFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> "
>> LDFLAGS="-LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> " make  -j2 -C
>> XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.
>> AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os
>> -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts
>> -msoft-float" LD=mips-openwrt-linux-uclibc-ld
>> NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc"
>> GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++"
>> RANLIB=mips-openwrt-linux-uclibc-ranlib
>> STRIP=mips-openwrt-linux-uclibc-strip
>> OBJCOPY=mips-openwrt-linux-uclibc-objcopy
>> OBJDUMP=mips-openwrt-linux-uclibc-objdump
>> SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-"
>> ARCH="mips" ;
>> make[3]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make  all-recursive
>> make[4]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in .
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[5]: Nothing to be done for `all-am'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in include
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> Making all in snprintf
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> Making all in libringbuffer
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> Making all in liblttng-ust-comm
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> Making all in liblttng-ust
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> Making all in liblttng-ust-ctl
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> Making all in liblttng-ust-fork
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> Making all in liblttng-ust-libc-wrapper
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> Making all in liblttng-ust-cyg-profile
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> Making all in tools
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> Making all in tests
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> Making all in utils
>> make[6]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> make[6]: Nothing to be done for `all'.
>> make[6]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> Making all in hello
>> make[6]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> /bin/bash ../../libtool  --tag=CC   --mode=link
>> mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition -Wall -Os -pipe
>> -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts -msoft-float
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> -o hello hello-hello.o hello-tp.o ../../liblttng-ust/liblttng-ust.la -ldl
>> -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
>> libtool: link: mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition
>> -Wall -Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float -o .libs/hello hello-hello.o hello-tp.o
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> ../../liblttng-ust/.libs/liblttng-ust.so
>> XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so
>> -lrt -ldl -lurcu-bp -lurcu-cds -lpthread
>> ../../liblttng-ust/.libs/liblttng-ust.so: warning: the use of `mktemp' is
>> dangerous, better use `mkstemp'
>> XXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-common.so.2, needed by
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so,
>> not found (try using -rpath or -rpath-link)
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_open'
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
>> `shm_unlink'
>> collect2: ld returned 1 exit status
>> make[6]: *** [hello] Error 1
>> make[6]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> make[5]: *** [all-recursive] Error 1
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[2]: ***
>> [XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.built]
>> Error 2
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/feeds/tools/devel/lttng-ust'
>> make[1]: *** [package/feeds/tools/lttng-ust/compile] Error 2
>> make[1]: Leaving directory
>> `XXXXXX/openwrt'
>> make: *** [package/lttng-ust/compile] Erreur 2
>>
>> I am not very confortable with autotools but I am not able to understand
>> this error. Is it relared to the missing liburcu-common.so.2 library ? shm
>> functions are define by uclibc ? missing include ?
>>
>> Thanks,
>> Arthur.
>>
>>
>> #
>> " Ce courriel et les documents qui lui sont joints peuvent contenir des
>> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
>> pas destiné nous vous signalons qu'il est strictement interdit de les
>> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
>> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
>> informer l'expéteur et de supprimer imméatement de votre systè
>> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>>
>>
>>                                ******
>>
>> " This e-mail and any attached documents may contain confidential or
>> proprietary information. If you are not the intended recipient, you are
>> notified that any dissemination, copying of this e-mail and any attachments
>> thereto or use of their contents by any means whatsoever is strictly
>> prohibited. If you have received this e-mail in error, please advise the
>> sender immediately and delete this e-mail and all attached documents
>> from your computer system."
>> #
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>
>>
>>
>> #
>> " Ce courriel et les documents qui lui sont joints peuvent contenir des
>> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
>> pas destiné nous vous signalons qu'il est strictement interdit de les
>> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
>> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
>> informer l'expéteur et de supprimer imméatement de votre systè
>> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>>
>>
>>                                 ******
>>
>> " This e-mail and any attached documents may contain confidential or
>> proprietary information. If you are not the intended recipient, you are
>> notified that any dissemination, copying of this e-mail and any attachments
>> thereto or use of their contents by any means whatsoever is strictly
>> prohibited. If you have received this e-mail in error, please advise the
>> sender immediately and delete this e-mail and all attached documents
>> from your computer system."
>> #
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>


#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractè privéS'ils ne vous sont
pas destiné nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
informer l'expéteur et de supprimer imméatement de votre systè
informatique ce courriel ainsi que tous les documents qui y sont attaché"


                               ******

" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents
from your computer system."
#


[-- Attachment #1.2: Type: text/html, Size: 24422 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Compilation error with openwrt and uclibc 0.9.31
       [not found]     ` <CAGDH53ni8UgfT==5KifqCo7Qa3bJdRZSJ88Z20-BiSkdmseqGg@mail.gmail.com>
  2013-09-27  9:22       ` Arthur LAMBERT
@ 2013-09-27 13:23       ` Arthur LAMBERT
  1 sibling, 0 replies; 8+ messages in thread
From: Arthur LAMBERT @ 2013-09-27 13:23 UTC (permalink / raw)
  To: Christian Babeux; +Cc: lttng-dev

Hi everyone,

just to say that I finally found a way out... and not so dirty
Just need to put an extra LDFLAGS in Makefile of lttng-tools in Openwrt :

-> feeds/tools/devel/lttng-tools/Makefile
   before: TARGET_LDFLAGS += -lurcu-bp
   after :   TARGET_LDFLAGS += -lurcu-bp 
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib

Let's start this toy called lttng...

Arthur.

On 26/09/2013 18:34, Christian Babeux wrote:
> Hi Arthur,
>
>> Problem is that I seems to have already this fix in my lttng-ust version. I
>> am not very confortable with autotools. Do I have to add a
>> "libtool-linkdep-fixup" flag somewhere to be able to enable the fix during
>> my compile process ?
> No need to add any flag, if configure detect a bogus link_all_deplibs
> value in your libtool.m4 it will automatically patch it. Relevant
> configure output:
>
> [...]
> checking for occurence(s) of link_all_deplibs = no in ./config/libtool.m4... 3
> the detected libtool will not link all dependencies, forcing
> link_all_deplibs = unknown
> [...]
>
> Your issue is that ld cannot find shared objects such as libuuid,
> liburcu*. Which flag did you use to cross-compile?
>
> Thanks,
>
> Christian
>
> On Thu, Sep 26, 2013 at 11:58 AM, Arthur LAMBERT
> <arthur.lambert@sagemcom.com> wrote:
>> Hi again,
>>
>> I was able now to build lttng-ust but I have still some problems with
>> lttng-tools...
>>
>> My current story is ( Could be usefull for the next guy which want to try to
>> compile the tool with a toolchain from Jurassic time) :
>>
>> * shm_open issue
>>    -> patch for toolchain uClibc-0.9.30.1 :
>> http://lists.uclibc.org/pipermail/uclibc/2009-February/041886.html
>>
>> * epoll_create1 and EPOLLRDHUP issue
>>    -> patch for toolchain uClibc-0.9.30.1 :
>> http://uclibc.10924.n7.nabble.com/PATCH-Implement-epoll-create1-and-epoll-pwait-system-calls-td268.html
>>
>> * be32toh issue
>>    -> patch for toolchain uClibc-0.9.30.1 :
>> http://lists.uclibc.org/pipermail/uclibc/2010-June/044107.html
>>
>> * pthread-condattr issue
>>     -> patch for toolchain uClibc-0.9.30.1 :
>> http://www.mail-archive.com/uclibc@uclibc.org/msg01909.html
>>
>> My last issue :
>>
>> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-common.so.1, needed by
>> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so, not
>> found (try using -rpath or -rpath-link)
>> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liblttng-ust-tracepoint.so.0, needed by
>> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
>> not found (try using -rpath or -rpath-link)
>> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: libuuid.so.1, needed by
>> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
>> not found (try using -rpath or -rpath-link)
>> /openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-cds.so.1, needed by
>> /openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so,
>> not found (try using -rpath or -rpath-link)
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `__tracepoint_probe_unregister'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `_cds_lfht_new'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_lookup'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `init_tracepoint'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_del'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `uuid_generate'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `exit_tracepoint'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_destroy'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_first'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_add_unique'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `cds_lfht_next'
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liblttng-ust.so:
>> undefined reference to `__tracepoint_probe_register'
>>
>> I found a bug here which seems related to my issue :
>> https://bugs.lttng.org/issues/321
>> This bug talk about a fix in configure.ac :
>> https://bugs.lttng.org/projects/lttng-ust/repository/revisions/faebb41808b9deda5ef5dfea0c035077407e7f9f/diff
>>
>> Problem is that I seems to have already this fix in my lttng-ust version. I
>> am not very confortable with autotools. Do I have to add a
>> "libtool-linkdep-fixup" flag somewhere to be able to enable the fix during
>> my compile process ?
>>
>> Thanks,
>>
>> Arthur.
>>
>>
>> On 25/09/2013 18:17, Jérémie Galarneau wrote:
>>
>> On Wed, Sep 25, 2013 at 7:06 AM, Arthur LAMBERT
>> <arthur.lambert@sagemcom.com> wrote:
>>
>> Hi,
>>
>> I am using backfire version of Openwrt and would like to try to use
>> profiling features bring by tools like lttng. I found some Makefile packages
>> on openwrt website to build lttng-tools and lttng-ust with recent version of
>> openwrt version but I am not able to compile lttng without error. with
>> mine..
>>
>> Environment :
>>
>> Openwrt Backfire
>> UCLIBC 0.9.31
>> Linux kernel 2.6.28
>>
>> Please note that kernel tracing is only available on kernels >= 2.6.38
>> (or 2.6.32 if patched appropriately).
>> I'm not an openwrt user, but it seems Makefiles are only provided for
>> LTTng 2.1.0. Can you confirm whether or not the build succeeds for
>> that version?
>>
>> ARCH mips32
>> lttng version : 2.3.0
>> librcu version : 0.8
>>
>> First problem was related to lttng-ust-2.3.0/libringbuffer/getcpu.h. I get
>> an undefined reference to c variable in lttng_ust_get_cpu function. After
>> some research I was not able to find a solution about this point even if I
>> seem to be up to date since I found some patch related to issue with old
>> version of uclibc than 0.9.32. This patch seems to be already integrated in
>> my lttng ust version. Anyway, I found a workaround to check that the next
>> step on the compilation is find... but it is not...
>>
>> Could you clarify what was the error and what is the workaround?
>>
>> Compilation result :
>>
>> make package/lttng-tools/compile V=99
>>
>> make[1]: Entering directory
>> `XXXXXX/openwrt'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/feeds/tools/libs/liburcu'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/package/e2fsprogs'
>> WARNING: skipping e2fsprogs -- package not selected
>> WARNING: skipping uuidgen -- package not selected
>> WARNING: skipping libext2fs -- package not selected
>> WARNING: skipping tune2fs -- package not selected
>> WARNING: skipping resize2fs -- package not selected
>> WARNING: skipping badblocks -- package not selected
>> WARNING: skipping blkid -- package not selected
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/package/e2fsprogs'
>> make[2]: Entering directory
>> `XXXXXX/openwrt/feeds/tools/devel/lttng-ust'
>> CFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> " CXXFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include
>> -IXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include
>> "
>> LDFLAGS="-LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> " make  -j2 -C
>> XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.
>> AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os
>> -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts
>> -msoft-float" LD=mips-openwrt-linux-uclibc-ld
>> NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc"
>> GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++"
>> RANLIB=mips-openwrt-linux-uclibc-ranlib
>> STRIP=mips-openwrt-linux-uclibc-strip
>> OBJCOPY=mips-openwrt-linux-uclibc-objcopy
>> OBJDUMP=mips-openwrt-linux-uclibc-objdump
>> SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-"
>> ARCH="mips" ;
>> make[3]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make  all-recursive
>> make[4]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in .
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[5]: Nothing to be done for `all-am'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> Making all in include
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
>> Making all in snprintf
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
>> Making all in libringbuffer
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
>> Making all in liblttng-ust-comm
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
>> Making all in liblttng-ust
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
>> Making all in liblttng-ust-ctl
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
>> Making all in liblttng-ust-fork
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
>> Making all in liblttng-ust-libc-wrapper
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
>> Making all in liblttng-ust-cyg-profile
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
>> Making all in tools
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> make[5]: Nothing to be done for `all'.
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
>> Making all in tests
>> make[5]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> Making all in utils
>> make[6]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> make[6]: Nothing to be done for `all'.
>> make[6]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
>> Making all in hello
>> make[6]: Entering directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> /bin/bash ../../libtool  --tag=CC   --mode=link
>> mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition -Wall -Os -pipe
>> -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts -msoft-float
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> -o hello hello-hello.o hello-tp.o ../../liblttng-ust/liblttng-ust.la -ldl
>> -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
>> libtool: link: mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition
>> -Wall -Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3
>> -fhonour-copts -msoft-float -o .libs/hello hello-hello.o hello-tp.o
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib
>> -LXXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib
>> ../../liblttng-ust/.libs/liblttng-ust.so
>> XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so
>> -lrt -ldl -lurcu-bp -lurcu-cds -lpthread
>> ../../liblttng-ust/.libs/liblttng-ust.so: warning: the use of `mktemp' is
>> dangerous, better use `mkstemp'
>> XXXXXX/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld:
>> warning: liburcu-common.so.2, needed by
>> XXXXXX/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so,
>> not found (try using -rpath or -rpath-link)
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_open'
>> ../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to
>> `shm_unlink'
>> collect2: ld returned 1 exit status
>> make[6]: *** [hello] Error 1
>> make[6]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
>> make[5]: *** [all-recursive] Error 1
>> make[5]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory
>> `XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
>> make[2]: ***
>> [XXXXXX/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.built]
>> Error 2
>> make[2]: Leaving directory
>> `XXXXXX/openwrt/feeds/tools/devel/lttng-ust'
>> make[1]: *** [package/feeds/tools/lttng-ust/compile] Error 2
>> make[1]: Leaving directory
>> `XXXXXX/openwrt'
>> make: *** [package/lttng-ust/compile] Erreur 2
>>
>> I am not very confortable with autotools but I am not able to understand
>> this error. Is it relared to the missing liburcu-common.so.2 library ? shm
>> functions are define by uclibc ? missing include ?
>>
>> Thanks,
>> Arthur.
>>
>>
>> #
>> " Ce courriel et les documents qui lui sont joints peuvent contenir des
>> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
>> pas destiné nous vous signalons qu'il est strictement interdit de les
>> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
>> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
>> informer l'expéteur et de supprimer imméatement de votre systè
>> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>>
>>
>>                                ******
>>
>> " This e-mail and any attached documents may contain confidential or
>> proprietary information. If you are not the intended recipient, you are
>> notified that any dissemination, copying of this e-mail and any attachments
>> thereto or use of their contents by any means whatsoever is strictly
>> prohibited. If you have received this e-mail in error, please advise the
>> sender immediately and delete this e-mail and all attached documents
>> from your computer system."
>> #
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>
>>
>>
>> #
>> " Ce courriel et les documents qui lui sont joints peuvent contenir des
>> informations confidentielles ou ayant un caractè privéS'ils ne vous sont
>> pas destiné nous vous signalons qu'il est strictement interdit de les
>> divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
>> soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
>> informer l'expéteur et de supprimer imméatement de votre systè
>> informatique ce courriel ainsi que tous les documents qui y sont attaché"
>>
>>
>>                                 ******
>>
>> " This e-mail and any attached documents may contain confidential or
>> proprietary information. If you are not the intended recipient, you are
>> notified that any dissemination, copying of this e-mail and any attachments
>> thereto or use of their contents by any means whatsoever is strictly
>> prohibited. If you have received this e-mail in error, please advise the
>> sender immediately and delete this e-mail and all attached documents
>> from your computer system."
>> #
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>


#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractè privéS'ils ne vous sont
pas destiné nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
informer l'expéteur et de supprimer imméatement de votre systè
informatique ce courriel ainsi que tous les documents qui y sont attaché"


                               ******

" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents
from your computer system."
#


_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Compilation error with openwrt and uclibc 0.9.31
@ 2013-09-25 11:06 Arthur LAMBERT
  0 siblings, 0 replies; 8+ messages in thread
From: Arthur LAMBERT @ 2013-09-25 11:06 UTC (permalink / raw)
  To: lttng-dev

Hi,

I am using backfire version of Openwrt and would like to try to use 
profiling features bring by tools like lttng. I found some Makefile 
packages on openwrt website to build lttng-tools and lttng-ust with 
recent version of openwrt version but I am not able to compile lttng 
without error. with mine..

Environment :

Openwrt Backfire
UCLIBC 0.9.31
Linux kernel 2.6.28
ARCH mips32
lttng version : 2.3.0
librcu version : 0.8

First problem was related to lttng-ust-2.3.0/libringbuffer/getcpu.h. I 
get an undefined reference to c variable in lttng_ust_get_cpu function. 
After some research I was not able to find a solution about this point 
even if I seem to be up to date since I found some patch related to 
issue with old version of uclibc than 0.9.32. This patch seems to be 
already integrated in my lttng ust version. Anyway, I found a workaround 
to check that the next step on the compilation is find... but it is not...

Compilation result :

make package/lttng-tools/compile V=99

make[1]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt'
make[2]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/libs/liburcu'
make[2]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/libs/liburcu'
make[2]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/package/e2fsprogs'
WARNING: skipping e2fsprogs -- package not selected
WARNING: skipping uuidgen -- package not selected
WARNING: skipping libext2fs -- package not selected
WARNING: skipping tune2fs -- package not selected
WARNING: skipping resize2fs -- package not selected
WARNING: skipping badblocks -- package not selected
WARNING: skipping blkid -- package not selected
make[2]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/package/e2fsprogs'
make[2]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/devel/lttng-ust'
CFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 
-fhonour-copts -msoft-float 
-I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include 
-I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include 
-I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include 
-I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include 
" CXXFLAGS="-Os -pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 
-fhonour-copts -msoft-float 
-I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include 
-I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include 
-I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/include 
-I/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/include 
" 
LDFLAGS="-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib 
" make  -j2 -C 
/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/. 
AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os 
-pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts 
-msoft-float" LD=mips-openwrt-linux-uclibc-ld 
NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" 
GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" 
RANLIB=mips-openwrt-linux-uclibc-ranlib 
STRIP=mips-openwrt-linux-uclibc-strip 
OBJCOPY=mips-openwrt-linux-uclibc-objcopy 
OBJDUMP=mips-openwrt-linux-uclibc-objdump 
SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" 
ARCH="mips" ;
make[3]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
make  all-recursive
make[4]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
Making all in .
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
Making all in include
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/include'
Making all in snprintf
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/snprintf'
Making all in libringbuffer
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/libringbuffer'
Making all in liblttng-ust-comm
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-comm'
Making all in liblttng-ust
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust'
Making all in liblttng-ust-ctl
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-ctl'
Making all in liblttng-ust-fork
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-fork'
Making all in liblttng-ust-libc-wrapper
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-libc-wrapper'
Making all in liblttng-ust-cyg-profile
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust-cyg-profile'
Making all in tools
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tools'
Making all in tests
make[5]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
Making all in utils
make[6]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/utils'
Making all in hello
make[6]: Entering directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
/bin/bash ../../libtool  --tag=CC   --mode=link 
mips-openwrt-linux-uclibc-gcc -Werror=old-style-definition -Wall -Os 
-pipe -mabi=32 -mtune=mips32 -fno-strict-aliasing -g3 -fhonour-copts 
-msoft-float 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib 
-o hello hello-hello.o hello-tp.o ../../liblttng-ust/liblttng-ust.la 
-ldl  -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
libtool: link: mips-openwrt-linux-uclibc-gcc 
-Werror=old-style-definition -Wall -Os -pipe -mabi=32 -mtune=mips32 
-fno-strict-aliasing -g3 -fhonour-copts -msoft-float -o .libs/hello 
hello-hello.o hello-tp.o 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/lib 
-L/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib 
../../liblttng-ust/.libs/liblttng-ust.so 
/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/liblttng-ust/.libs/liblttng-ust-tracepoint.so 
-lrt -ldl -lurcu-bp -lurcu-cds -lpthread
../../liblttng-ust/.libs/liblttng-ust.so: warning: the use of `mktemp' 
is dangerous, better use `mkstemp'
/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/lib/gcc/mips-openwrt-linux-uclibc/4.4.2/../../../../mips-openwrt-linux-uclibc/bin/ld: 
warning: liburcu-common.so.2, needed by 
/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/liburcu-bp.so, 
not found (try using -rpath or -rpath-link)
../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to `shm_open'
../../liblttng-ust/.libs/liblttng-ust.so: undefined reference to 
`shm_unlink'
collect2: ld returned 1 exit status
make[6]: *** [hello] Error 1
make[6]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests/hello'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/tests'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0'
make[2]: *** 
[/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/build_dir/target-mips_uClibc-0.9.30.1/lttng-ust-2.3.0/.built] 
Error 2
make[2]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt/feeds/tools/devel/lttng-ust'
make[1]: *** [package/feeds/tools/lttng-ust/compile] Error 2
make[1]: Leaving directory 
`/home/g179168/middleware/dev/TELEFONICA_3_32_X/openwrt'
make: *** [package/lttng-ust/compile] Erreur 2

I am not very confortable with autotools but I am not able to understand 
this error. Is it relared to the missing liburcu-common.so.2 library ? 
shm functions are define by uclibc ? missing include ?

Thanks,
Arthur.


#
" Ce courriel et les documents qui lui sont joints peuvent contenir des
informations confidentielles ou ayant un caractè privéS'ils ne vous sont
pas destiné nous vous signalons qu'il est strictement interdit de les
divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce
soit le contenu. Si ce message vous a é transmis par erreur, merci d'en
informer l'expéteur et de supprimer imméatement de votre systè
informatique ce courriel ainsi que tous les documents qui y sont attaché"


                               ******

" This e-mail and any attached documents may contain confidential or
proprietary information. If you are not the intended recipient, you are
notified that any dissemination, copying of this e-mail and any attachments
thereto or use of their contents by any means whatsoever is strictly
prohibited. If you have received this e-mail in error, please advise the
sender immediately and delete this e-mail and all attached documents
from your computer system."
#

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

end of thread, other threads:[~2013-09-27 13:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5242C3C4.3060207@sagemcom.com>
2013-09-25 16:17 ` Compilation error with openwrt and uclibc 0.9.31 Jérémie Galarneau
     [not found] ` <CA+jJMxuPudXDiatZfWVwUvvHJ9_WJ4gg_4vUeFapKZet4G-UFw@mail.gmail.com>
2013-09-26  8:03   ` Arthur LAMBERT
2013-09-26 10:38   ` Arthur LAMBERT
2013-09-26 15:58   ` Arthur LAMBERT
     [not found]   ` <5244599E.4050100@sagemcom.com>
2013-09-26 16:34     ` Christian Babeux
     [not found]     ` <CAGDH53ni8UgfT==5KifqCo7Qa3bJdRZSJ88Z20-BiSkdmseqGg@mail.gmail.com>
2013-09-27  9:22       ` Arthur LAMBERT
2013-09-27 13:23       ` Arthur LAMBERT
2013-09-25 11:06 Arthur LAMBERT

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.