[ovs-discuss] Building OvS with clang 32bit - shared and not shared libraries
blp at ovn.org
Fri Aug 16 19:24:54 UTC 2019
On Tue, Aug 06, 2019 at 04:06:53PM +0000, Sirvys, Andrius wrote:
> I'm trying to build 32 bit OvS using clang. It's on Ubuntu 18.04 LTS
> I'm on
> commit a8f005cf26fd16f77133d67fe4b205409fc444db (HEAD -> master, origin/master, origin/HEAD)
> Author: John Hurley <john.hurley at netronome.com>
> Date: Tue Jul 30 12:05:17 2019 +0100
> The configuration I'm using is
> ./configure CC=clang --enable-Werror --enable-ssl/--disable-ssl
> make -j CFLAGS=-m32
> No matter if I build with shared libraries enabled or disabled I keep running into the same issue
> lib/.libs/libopenvswitch.a(rconn.o): In function `llsat_mul':
> rconn.c:(.text+0x3c0): undefined reference to `__mulodi4'
> I'm thinking it could possibly be that this 32bit build is trying to link with some 64bit library? Not exactly sure what's going on.
> Would appreciate any advice or pointers on where to go or how to fix this.
It's probably a bad idea to add CFLAGS that change the architecture
after running "configure". Try adding CFLAGS=-m32 to the configure
command line instead.
More information about the discuss