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/06 15:29:49 UTC

[GitHub] [incubator-mxnet] aashudwivedi edited a comment on issue #14332: MXNet static library build results in error in centos, oracle linux and similar distros

aashudwivedi edited 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
 
 
   I add 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
   cp: cannot stat '/usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.so': No such file or directory
   cp: cannot stat '/usr/lib/x86_64-linux-gnu/libquadmath.so.0': No such file or directory
   Checking linked objects on libmxnet.so...
   readelf: Error: 'lib/libmxnet.so': No such file
   strip: 'lib/libmxnet.so': No such file
   ```

----------------------------------------------------------------
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