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

2019-07-01 Thread GitBox
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-480588295
 
 
   @lanking520 Thanks that helped and I was able to build for Cent OS 7.
   I've been trying to build it for Cent OS 6.9 as well (which required 
upgrading a few more things like nasm compiler). But I keep running into this 
error while using the compiled lib: 
   
   ```Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/tmp/mxnet3708514393684345361/mxnet-scala: /usr/lib64/libstdc++.so.6: version 
`GLIBCXX_3.4.18' not found (required by /
   tmp/mxnet3708514393684345361/mxnet-scala```
   
   Do you have any suggestions on how can I go about fixing this? 
   I have tried using the `-static-libstdc++` flag without much luck.
   


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:
us...@infra.apache.org


With regards,
Apache Git Services


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

2019-03-10 Thread GitBox
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:
us...@infra.apache.org


With regards,
Apache Git Services