[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvswitch-discuss
Subject:    [ovs-discuss] undefined reference to `__atomic_load_8'
From:       fbl () sysclose ! org (Flavio Leitner)
Date:       2015-04-24 0:17:15
Message-ID: 20150423211715.3ee1ec56 () x240 ! home
[Download RAW message or body]

On Wed, 22 Apr 2015 19:07:19 +0000
Vipin Garg <vgarg at fortinet.com> wrote:

> 
> Hello,
> 
> I downloaded openvswitch-ovs-v1.1.0pre2-8269-g186de41.tar and
> cross-compiling it for PowerPC platform and I am seeing following
> linking errors -
> 
> libtool:
> link: /fortidev4-ppce500/bin/powerpc-unknown-linux-gnuspe-gcc
> -std=gnu99 -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare
> -Wpointer-arith -Wno-format-zero-length -Wswitch-enum
> -Wunused-parameter -Wbad-function-cast -Wcast-align
> -Wmissing-prototypes -Wmissing-field-initializers
> -fno-strict-aliasing
> -I/fortidev4-ppce500/powerpc-unknown-linux-gnuspe/include/
> -I/fortidev4-ppce500/include -o utilities/ovs-testcontroller
> utilities/ovs-testcontroller.o  lib/.libs/libopenvswitch.a -lpthread
> -lrt -lm lib/.libs/libopenvswitch.a(dpif-netdev.o): In function
> `dpif_netdev_pmd_info': dpif-netdev.c:(.text+0x24d0): undefined
> reference to `__atomic_load_8' dpif-netdev.c:(.text+0x253c):
> undefined reference to `__atomic_load_8'
> lib/.libs/libopenvswitch.a(dpif-netdev.o): In function
> `non_atomic_ullong_add': dpif-netdev.c:(.text+0x31e4): undefined
> reference to `__atomic_load_8' dpif-netdev.c:(.text+0x3230):
> undefined reference to `__atomic_store_8'
> lib/.libs/libopenvswitch.a(dpif-netdev.o): In function
> `dpif_netdev_get_stats': dpif-netdev.c:(.text+0x3350): undefined
> reference to `__atomic_load_8' dpif-netdev.c:(.text+0x33a0):
> undefined reference to `__atomic_load_8'
> dpif-netdev.c:(.text+0x33f0): undefined reference to
> `__atomic_load_8' dpif-netdev.c:(.text+0x3440): undefined reference
> to `__atomic_load_8' lib/.libs/libopenvswitch.a(dpif-netdev.o): In
> function `get_dpif_flow_stats': dpif-netdev.c:(.text+0x5a6c):
> undefined reference to `__atomic_load_8'
> lib/.libs/libopenvswitch.a(dpif-netdev.o):dpif-netdev.c:(.text+0x5aa4):
> more undefined references to `__atomic_load_8' follow
> lib/.libs/libopenvswitch.a(dpif-netdev.o): In function
> `dp_netdev_flow_used': dpif-netdev.c:(.text+0x8d60): undefined
> reference to `__atomic_store_8' collect2: error: ld returned 1 exit
> status
> 
> 
> Please let me know if anyone has any advice on how to fix this.
> 
> Thanks
> Vipin Garg
> 
> 
> 
> ***  Please note that this message and any attachments may contain
> confidential and proprietary material and information and are
> intended only for the use of the intended recipient(s). If you are
> not the intended recipient, you are hereby notified that any review,
> use, disclosure, dissemination, distribution or copying of this
> message and any attachments is strictly prohibited. If you have
> received this email in error, please immediately notify the sender
> and destroy this e-mail and any attachments and all copies, whether
> electronic or printed. Please also note that any views, opinions,
> conclusions or commitments expressed in this message are those of the
> individual sender and do not necessarily reflect the views of
> Fortinet, Inc., its affiliates, and emails are not binding on
> Fortinet and only a writing manually signed by Fortinet's General
> Counsel can be a binding commitment of Fortinet to Fortinet's
> customers or partners. Thank you. ***

Please remove that from your e-mail as it doesn't fit with the
opensource project goals.

Depending on the GCC version, the atomic functions were moved to
a library, so you need to link to that library too.  Just backport
this commit to your code:
https://github.com/openvswitch/ovs/commit/fd2e50cd333324ca18d8186a5c9211aa03c439cf

fbl




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic