You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/03/11 05:31:05 UTC
[GitHub] [incubator-mxnet] aashudwivedi removed a comment on issue #14332:
MXNet static library build results in error in centos,
oracle linux and similar distros
aashudwivedi removed a comment on issue #14332: MXNet static library build results in error in centos, oracle linux and similar distros
URL: https://github.com/apache/incubator-mxnet/issues/14332#issuecomment-470151109
Thanks for the help @lanking520
I am not able to use the libs which are built in ubuntu, in centos. It runs into an error for missing .so files.
To build in ole7 / centos, I have added the following lines in the script build_lib.sh before the line `>&2 echo "Checking linked objects on libmxnet.so..."`
```
for libname in $(ls staticdeps/lib64/*.a | xargs -n 1 basename)
do
cp -fL staticdeps/lib64/$libname staticdeps/lib/$libname
done
cp -L /usr/lib64/libgfortran.so.3 lib/libgfortran.so.3
cp -L /usr/gcc-4.8.5/release/x86_64-unknown-linux-gnu/libquadmath/.libs/libquadmath.so lib/libquadmath.so.0
```
which resolves the previous error. However the build still fails, with the error message :
```
/usr/bin/ld: skipping incompatible /lib/librt.so when searching for -lrt
/usr/bin/ld: cannot find -lgfortran
/usr/bin/ld: skipping incompatible /lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /lib/libpthread.so when searching for -lpthread
collect2: error: ld returned 1 exit status
make: *** [lib/libmxnet.so] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: skipping incompatible /lib/librt.so when searching for -lrt
/usr/bin/ld: cannot find -lgfortran
/usr/bin/ld: skipping incompatible /lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /lib/libpthread.so when searching for -lpthread
collect2: error: ld returned 1 exit status
make: *** [bin/im2rec] Error 1
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services