Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] liburcu error: Cannot find -lurcu
@ 2013-11-22 13:57 Thibault, Daniel
  2013-11-22 14:59 ` kumar s
  0 siblings, 1 reply; 4+ messages in thread
From: Thibault, Daniel @ 2013-11-22 13:57 UTC (permalink / raw)


> Date: Fri, 22 Nov 2013 10:51:01 +0530
>
> I am using latest version of userspace. Cloned from userspace.git
>
>While Cross Compiling for Mips Architecture I get the following error.
>
>make  all-recursive
>make[1]: Entering directory `/home/kumar/userspace/userspace-rcu'
>Making all in .
>make[2]: Entering directory `/home/kumar/userspace/userspace-rcu'

   Aren't there a bunch of CC and CCLD messages missing from here?  Did you edit this log or did your make really skip /userspace-rcu/. and go straight to /userspace-rcu/doc?

>make[2]: Leaving directory `/home/kumar/userspace/userspace-rcu'
>Making all in doc
>make[2]: Entering directory `/home/kumar/userspace/userspace-rcu/doc'
>Making all in examples
>make[3]: Entering directory
>`/home/kumar/userspace/userspace-rcu/doc/examples'
>make -f dist-files/Makefile AM_CPPFLAGS=" -I../../../urcu/ -I../../../"
>AM_CFLAGS='-g -O2' AM_LDFLAGS=' -L../../../.libs/
>-Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/"' all
>make[4]: Entering directory
>`/home/kumar/userspace/userspace-rcu/doc/examples'
>make -C hlist
>make[5]: Entering directory
>`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
>make -f Makefile.cds_hlist_add_head_rcu
>make[6]: Entering directory
>`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
>cc -g -O2 -Wall  -g -O2 -L../../../.libs/
>-Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/" \
>        -o cds_hlist_add_head_rcu cds_hlist_add_head_rcu.o -lurcu
>/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.so when
>searching for -lurcu
>/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.a when searching
>for -lurcu
>/usr/bin/ld: cannot find -lurcu
>collect2: ld returned 1 exit status
>make[6]: *** [cds_hlist_add_head_rcu] Error 1
>make[6]: Leaving directory
>`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
>make[5]: *** [all] Error 2
>make[5]: Leaving directory
>`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
>make[4]: *** [all] Error 2
>make[4]: Leaving directory
>`/home/kumar/userspace/userspace-rcu/doc/examples'
>make[3]: *** [all-local] Error 2
>make[3]: Leaving directory
>`/home/kumar/userspace/userspace-rcu/doc/examples'
>make[2]: *** [all-recursive] Error 1
>make[2]: Leaving directory `/home/kumar/userspace/userspace-rcu/doc'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/home/kumar/userspace/userspace-rcu'
>make: *** [all] Error 2
>
> How can I fix this?

   When you capture the log, be sure to get both stdout and stderr, by using e.g. 'make install &> install.log' or 'make install 2>&1 | tee install.log'.

Daniel U. Thibault
Protection des syst?mes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber s?curit? pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la d?fense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Qu?bec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>



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

* [lttng-dev] liburcu error: Cannot find -lurcu
  2013-11-22 13:57 [lttng-dev] liburcu error: Cannot find -lurcu Thibault, Daniel
@ 2013-11-22 14:59 ` kumar s
  0 siblings, 0 replies; 4+ messages in thread
From: kumar s @ 2013-11-22 14:59 UTC (permalink / raw)


HELLO,

I edited the log to show only the error. The detailed log is  :


[shkumar at shrayanth userspace-rcu]$ make
make  all-recursive
make[1]: Entering directory `/home/kumar/userspace/userspace-rcu'
Making all in .
make[2]: Entering directory `/home/kumar/userspace/userspace-rcu'
  CC     wfqueue.lo
  CC     wfcqueue.lo
  CC     wfstack.lo
  CCLD   liburcu-common.la
  CC     urcu.lo
In file included from urcu.c:530:
urcu-call-rcu-impl.h: In function 'alloc_cpu_call_rcu_data':
urcu-call-rcu-impl.h:150: warning: implicit declaration of function
'rpl_malloc'
urcu-call-rcu-impl.h:150: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'call_rcu_data_init':
urcu-call-rcu-impl.h:380: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'free_all_cpu_call_rcu_data_memb':
urcu-call-rcu-impl.h:741: warning: assignment makes pointer from integer
without a cast
In file included from urcu.c:531:
urcu-defer-impl.h: In function 'rcu_defer_register_thread_memb':
urcu-defer-impl.h:424: warning: assignment makes pointer from integer
without a cast
  CC     urcu-pointer.lo
  CCLD   liburcu.la
  CC     urcu-qsbr.lo
In file included from urcu-qsbr.c:456:
urcu-call-rcu-impl.h: In function 'alloc_cpu_call_rcu_data':
urcu-call-rcu-impl.h:150: warning: implicit declaration of function
'rpl_malloc'
urcu-call-rcu-impl.h:150: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'call_rcu_data_init':
urcu-call-rcu-impl.h:380: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'free_all_cpu_call_rcu_data':
urcu-call-rcu-impl.h:741: warning: assignment makes pointer from integer
without a cast
In file included from urcu-qsbr.c:457:
urcu-defer-impl.h: In function 'rcu_defer_register_thread_qsbr':
urcu-defer-impl.h:424: warning: assignment makes pointer from integer
without a cast
  CCLD   liburcu-qsbr.la
  CC     liburcu_mb_la-urcu.lo
In file included from urcu.c:530:
urcu-call-rcu-impl.h: In function 'alloc_cpu_call_rcu_data':
urcu-call-rcu-impl.h:150: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'call_rcu_data_init':
urcu-call-rcu-impl.h:380: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'free_all_cpu_call_rcu_data_mb':
urcu-call-rcu-impl.h:741: warning: assignment makes pointer from integer
without a cast
In file included from urcu.c:531:
urcu-defer-impl.h: In function 'rcu_defer_register_thread_mb':
urcu-defer-impl.h:424: warning: assignment makes pointer from integer
without a cast
  CC     liburcu_mb_la-urcu-pointer.lo
  CCLD   liburcu-mb.la
  CC     liburcu_signal_la-urcu.lo
In file included from urcu.c:530:
urcu-call-rcu-impl.h: In function 'alloc_cpu_call_rcu_data':
urcu-call-rcu-impl.h:150: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'call_rcu_data_init':
urcu-call-rcu-impl.h:380: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'free_all_cpu_call_rcu_data_sig':
urcu-call-rcu-impl.h:741: warning: assignment makes pointer from integer
without a cast
In file included from urcu.c:531:
urcu-defer-impl.h: In function 'rcu_defer_register_thread_sig':
urcu-defer-impl.h:424: warning: assignment makes pointer from integer
without a cast
  CC     liburcu_signal_la-urcu-pointer.lo
  CCLD   liburcu-signal.la
  CC     urcu-bp.lo
In file included from urcu-bp.c:654:
urcu-call-rcu-impl.h: In function 'alloc_cpu_call_rcu_data':
urcu-call-rcu-impl.h:150: warning: implicit declaration of function
'rpl_malloc'
urcu-call-rcu-impl.h:150: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'call_rcu_data_init':
urcu-call-rcu-impl.h:380: warning: assignment makes pointer from integer
without a cast
urcu-call-rcu-impl.h: In function 'free_all_cpu_call_rcu_data_bp':
urcu-call-rcu-impl.h:741: warning: assignment makes pointer from integer
without a cast
In file included from urcu-bp.c:655:
urcu-defer-impl.h: In function 'rcu_defer_register_thread_bp':
urcu-defer-impl.h:424: warning: assignment makes pointer from integer
without a cast
  CCLD   liburcu-bp.la
  CC     rculfqueue.lo
  CC     rculfstack.lo
  CC     lfstack.lo
  CC     rculfhash.lo
rculfhash.c: In function '__cds_lfht_resize_lazy_launch':
rculfhash.c:1980: warning: implicit declaration of function 'rpl_malloc'
rculfhash.c:1980: warning: assignment makes pointer from integer without a
cast
  CC     rculfhash-mm-order.lo
  CC     rculfhash-mm-chunk.lo
  CC     rculfhash-mm-mmap.lo
  CCLD   liburcu-cds.la
make[2]: Leaving directory `/home/kumar/userspace/userspace-rcu'
Making all in doc
make[2]: Entering directory `/home/kumar/userspace/userspace-rcu/doc'
Making all in examples
make[3]: Entering directory
`/home/kumar/userspace/userspace-rcu/doc/examples'
make -f dist-files/Makefile AM_CPPFLAGS=" -I../../../urcu/ -I../../../"
AM_CFLAGS='-g -O2' AM_LDFLAGS=' -L../../../.libs/
-Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/"'
all
make[4]: Entering directory
`/home/kumar/userspace/userspace-rcu/doc/examples'
make -C hlist
make[5]: Entering directory
`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
make -f Makefile.cds_hlist_add_head_rcu
make[6]: Entering directory
`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
cc  -g -O2 -Wall -I../../../urcu/ -I../../../ -g -O2 \
        -c -o cds_hlist_add_head_rcu.o cds_hlist_add_head_rcu.c
cc -g -O2 -Wall  -g -O2 -L../../../.libs/
-Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/" \
        -o cds_hlist_add_head_rcu cds_hlist_add_head_rcu.o -lurcu
/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.so when
searching for -lurcu
/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.a when searching
for -lurcu
/usr/bin/ld: cannot find -lurcu
collect2: ld returned 1 exit status
make[6]: *** [cds_hlist_add_head_rcu] Error 1
make[6]: Leaving directory
`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/home/kumar/userspace/userspace-rcu/doc/examples'
make[3]: *** [all-local] Error 2
make[3]: Leaving directory
`/home/kumar/userspace/userspace-rcu/doc/examples'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kumar/userspace/userspace-rcu/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kumar/userspace/userspace-rcu'
make: *** [all] Error 2


Thank you
Skumar

On Fri, Nov 22, 2013 at 7:27 PM, Thibault, Daniel <
Daniel.Thibault at drdc-rddc.gc.ca> wrote:

> > Date: Fri, 22 Nov 2013 10:51:01 +0530
> >
> > I am using latest version of userspace. Cloned from userspace.git
> >
> >While Cross Compiling for Mips Architecture I get the following error.
> >
> >make  all-recursive
> >make[1]: Entering directory `/home/kumar/userspace/userspace-rcu'
> >Making all in .
> >make[2]: Entering directory `/home/kumar/userspace/userspace-rcu'
>
>    Aren't there a bunch of CC and CCLD messages missing from here?  Did
> you edit this log or did your make really skip /userspace-rcu/. and go
> straight to /userspace-rcu/doc?
>
> >make[2]: Leaving directory `/home/kumar/userspace/userspace-rcu'
> >Making all in doc
> >make[2]: Entering directory `/home/kumar/userspace/userspace-rcu/doc'
> >Making all in examples
> >make[3]: Entering directory
> >`/home/kumar/userspace/userspace-rcu/doc/examples'
> >make -f dist-files/Makefile AM_CPPFLAGS=" -I../../../urcu/ -I../../../"
> >AM_CFLAGS='-g -O2' AM_LDFLAGS=' -L../../../.libs/
> >-Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/"'
> all
> >make[4]: Entering directory
> >`/home/kumar/userspace/userspace-rcu/doc/examples'
> >make -C hlist
> >make[5]: Entering directory
> >`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
> >make -f Makefile.cds_hlist_add_head_rcu
> >make[6]: Entering directory
> >`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
> >cc -g -O2 -Wall  -g -O2 -L../../../.libs/
> >-Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/"
> \
> >        -o cds_hlist_add_head_rcu cds_hlist_add_head_rcu.o -lurcu
> >/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.so when
> >searching for -lurcu
> >/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.a when
> searching
> >for -lurcu
> >/usr/bin/ld: cannot find -lurcu
> >collect2: ld returned 1 exit status
> >make[6]: *** [cds_hlist_add_head_rcu] Error 1
> >make[6]: Leaving directory
> >`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
> >make[5]: *** [all] Error 2
> >make[5]: Leaving directory
> >`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
> >make[4]: *** [all] Error 2
> >make[4]: Leaving directory
> >`/home/kumar/userspace/userspace-rcu/doc/examples'
> >make[3]: *** [all-local] Error 2
> >make[3]: Leaving directory
> >`/home/kumar/userspace/userspace-rcu/doc/examples'
> >make[2]: *** [all-recursive] Error 1
> >make[2]: Leaving directory `/home/kumar/userspace/userspace-rcu/doc'
> >make[1]: *** [all-recursive] Error 1
> >make[1]: Leaving directory `/home/kumar/userspace/userspace-rcu'
> >make: *** [all] Error 2
> >
> > How can I fix this?
>
>    When you capture the log, be sure to get both stdout and stderr, by
> using e.g. 'make install &> install.log' or 'make install 2>&1 | tee
> install.log'.
>
> Daniel U. Thibault
> Protection des syst?mes et contremesures (PSC) | Systems Protection &
> Countermeasures (SPC)
> Cyber s?curit? pour les missions essentielles (CME) | Mission Critical
> Cyber Security (MCCS)
> R & D pour la d?fense Canada - Valcartier (RDDC Valcartier) | Defence R&D
> Canada - Valcartier (DRDC Valcartier)
> 2459 route de la Bravoure
> Qu?bec QC  G3J 1X5
> CANADA
> Vox : (418) 844-4000 x4245
> Fax : (418) 844-4538
> NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
> Gouvernement du Canada | Government of Canada
> <http://www.valcartier.drdc-rddc.gc.ca/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131122/9583f773/attachment-0001.html>


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

* [lttng-dev] liburcu error: Cannot find -lurcu
@ 2013-11-22 15:46 Thibault, Daniel
  0 siblings, 0 replies; 4+ messages in thread
From: Thibault, Daniel @ 2013-11-22 15:46 UTC (permalink / raw)


> I edited the log to show only the error. The detailed log is  :

   Copy-writer's tip: when omitting irrelevant parts from a log (or conversation quote), indicate the omission with an ellipsis (e.g. '(...)' or '[...]').

> $ make
> make  all-recursive
> [...]
>  CC     wfstack.lo
>  CCLD   liburcu-common.la
>  CC     urcu.lo

   That's the line that creates liburcu.so.  It seems to succeed, albeit with a number of warnings.

> In file included from urcu.c:530:
> urcu-call-rcu-impl.h: In function 'alloc_cpu_call_rcu_data':
> urcu-call-rcu-impl.h:150: warning: implicit declaration of function 'rpl_malloc'
> urcu-call-rcu-impl.h:150: warning: assignment makes pointer from integer without a cast
> [...]
>  CC     urcu-pointer.lo
> [...]
> make -f Makefile.cds_hlist_add_head_rcu
> make[6]: Entering directory
> `/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
> cc  -g -O2 -Wall -I../../../urcu/ -I../../../ -g -O2 \
>        -c -o cds_hlist_add_head_rcu.o cds_hlist_add_head_rcu.c cc -g -O2 -Wall  -g -O2 -L../../../.libs/ -Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/" \
>        -o cds_hlist_add_head_rcu cds_hlist_add_head_rcu.o -lurcu
> /usr/bin/ld: skipping incompatible ../../../.libs//liburcu.so when searching for -lurcu

   But when we get here and try to use liburcu.so for the first time, it turns out to be "incompatible".

> /usr/bin/ld: skipping incompatible ../../../.libs//liburcu.a when searching for -lurcu
> /usr/bin/ld: cannot find -lurcu
> collect2: ld returned 1 exit status
> make[6]: *** [cds_hlist_add_head_rcu] Error 1
> [...]

   Except for the warnings, your make log matches mine up to the fatal liburcu.so incompatibility error.

   Could the compiler be misconfigured?  Try making a small test .so and application pair.

Daniel U. Thibault
Protection des syst?mes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber s?curit? pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la d?fense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Qu?bec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>



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

* [lttng-dev] liburcu error: Cannot find -lurcu
@ 2013-11-22  5:21 kumar s
  0 siblings, 0 replies; 4+ messages in thread
From: kumar s @ 2013-11-22  5:21 UTC (permalink / raw)


Hi,

I am using latest version of userspace. Cloned from userspace.git

While Cross Compiling for Mips Architecture I get the following error.

make  all-recursive
make[1]: Entering directory `/home/kumar/userspace/userspace-rcu'
Making all in .
make[2]: Entering directory `/home/kumar/userspace/userspace-rcu'
make[2]: Leaving directory `/home/kumar/userspace/userspace-rcu'
Making all in doc
make[2]: Entering directory `/home/kumar/userspace/userspace-rcu/doc'
Making all in examples
make[3]: Entering directory
`/home/kumar/userspace/userspace-rcu/doc/examples'
make -f dist-files/Makefile AM_CPPFLAGS=" -I../../../urcu/ -I../../../"
AM_CFLAGS='-g -O2' AM_LDFLAGS=' -L../../../.libs/
-Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/"'
all
make[4]: Entering directory
`/home/kumar/userspace/userspace-rcu/doc/examples'
make -C hlist
make[5]: Entering directory
`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
make -f Makefile.cds_hlist_add_head_rcu
make[6]: Entering directory
`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
cc -g -O2 -Wall  -g -O2 -L../../../.libs/
-Wl,-rpath="/home/kumar/userspace/userspace-rcu/doc/examples/../../.libs/" \
        -o cds_hlist_add_head_rcu cds_hlist_add_head_rcu.o -lurcu
/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.so when
searching for -lurcu
/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.a when searching
for -lurcu
/usr/bin/ld: cannot find -lurcu
collect2: ld returned 1 exit status
make[6]: *** [cds_hlist_add_head_rcu] Error 1
make[6]: Leaving directory
`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/home/kumar/userspace/userspace-rcu/doc/examples/hlist'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/home/kumar/userspace/userspace-rcu/doc/examples'
make[3]: *** [all-local] Error 2
make[3]: Leaving directory
`/home/kumar/userspace/userspace-rcu/doc/examples'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kumar/userspace/userspace-rcu/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kumar/userspace/userspace-rcu'
make: *** [all] Error 2


How can i fix this?

Thank you
SKumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131122/4f672661/attachment-0001.html>


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

end of thread, other threads:[~2013-11-22 15:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-22 13:57 [lttng-dev] liburcu error: Cannot find -lurcu Thibault, Daniel
2013-11-22 14:59 ` kumar s
  -- strict thread matches above, loose matches on Subject: below --
2013-11-22 15:46 Thibault, Daniel
2013-11-22  5:21 kumar s

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