[lttng-dev] compiling liburcu for powerpc error: void value not ignored as it ought to be

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu May 24 11:49:19 EDT 2012


* Paul Barrette (paulbarrette at gmail.com) wrote:
> I am seeing this error compiling for powerpc:
> 
> urcu-pointer.c: In function 'rcu_set_pointer_sym':
> urcu-pointer.c:43:2: error: void value not ignored as it ought to be
> powerpc-wrs-linux-libtool: compile:  powerpc-wrs-linux-gcc -m32
> -mhard-float -mcpu=603e
> --sysroot=/pb_scratch/WL3/yocto-wrlinux-4.3/wrlinux-4.3/qemu-ppc/bitbake_build/tmp/sysroots/qemuppc
> -DHAVE_CONFIG_H -I. -I./urcu -I./urcu -DRCU_MB -O2 -pipe -g
> -feliminate-unused-debug-types -c urcu-pointer.c  -fPIC -DPIC -o
> .libs/liburcu_mb_la-urcu-pointer.o
> 
> Removing the return statements produces a warning, but it exposes more of
> the same compile errors.

Thanks for reporting !!

I pushed the fix in urcu master branch:

commit 424d4ed5e7b0ca5e05c3078f15abf473c6879521
Author: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
Date:   Thu May 24 11:51:03 2012 -0400

    fix: uatomic_set return value compile fix for non-x86 arch.
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

can you confirm that it fixes your problem ?

Thanks,

Mathieu

> 
> Pb
> -- 
> --
> Paul Barrette
> Linked In Profile <http://ca.linkedin.com/pub/paul-barrette/11/b42/a96>
> http://sitarplayer.net
> Ő
>  \\=^%
>  (*)---(*)
> ^^~~^~~~^^^~~^

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


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



More information about the lttng-dev mailing list