Hi Liron, Can you paste a full copy of the ./configure output?
Brian On Wed, Oct 18, 2017 at 9:58 AM, Liron Himi <lir...@marvell.com> wrote: > Hi, > > We are using 'gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu' as our > tool-chain. > When I compile ODP1.15 with it I get a lot of: > 'libtool: warning: library > '/home/userlab/work/crosstools/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/lib64/libatomic.la' > was moved.' > > The main problem is that we have another package that uses our ODP outcome > and it doesn't compile due to > '/bin/sed: can't read > /home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg/target/aarch64-linux-gnu/_build/builds/destdir/x86_64-unknown-linux-gnu/aarch64-linux-gnu/lib/../lib64/libatomic.la: > No such file or directory > libtool: error: > '/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg/target/aarch64-linux-gnu/_build/builds/destdir/x86_64-unknown-linux-gnu/aarch64-linux-gnu/lib/../lib64/libatomic.la' > is not a valid libtool archive' > > I notice that it is related to added lines (compared to ODP1.11) in > 'linux-generic/m4/configure.m4'. > dnl Check whether -latomic is needed > use_libatomic=no > > AC_MSG_CHECKING(whether -latomic is needed for 64-bit atomic built-ins) > AC_LINK_IFELSE( > [AC_LANG_SOURCE([[ > static int loc; > int main(void) > { > int prev = __atomic_exchange_n(&loc, 7, __ATOMIC_RELAXED); > return 0; > } > ]])], > [AC_MSG_RESULT(no)], > [AC_MSG_RESULT(yes) > AC_CHECK_LIB( > [atomic], [__atomic_exchange_8], > [use_libatomic=yes], > [AC_MSG_FAILURE([__atomic_exchange_8 is not available])]) > ]) > > AC_MSG_CHECKING(whether -latomic is needed for 128-bit atomic built-ins) > AC_LINK_IFELSE( > [AC_LANG_SOURCE([[ > static __int128 loc; > int main(void) > { > __int128 prev; > prev = __atomic_exchange_n(&loc, 7, __ATOMIC_RELAXED); > return 0; > } > ]])], > [AC_MSG_RESULT(no)], > [AC_MSG_RESULT(yes) > AC_CHECK_LIB( > [atomic], [__atomic_exchange_16], > [use_libatomic=yes], > [AC_MSG_CHECKING([cannot detect support for 128-bit atomics])]) > ]) > > if test "x$use_libatomic" = "xyes"; then > ATOMIC_LIBS="-latomic" > fi > AC_SUBST([ATOMIC_LIBS]) > > > Is there anything I can do with 5.3.1 except of removing the new lines in > configure.m4? > > Thanks, > Liron