conda-forge / nn-feedstock

A conda-smithy repository for nn.
BSD 3-Clause "New" or "Revised" License
1 stars 7 forks source link

Request: add -fPIC to CFLAGS for libnn #19

Closed ihumphrey closed 6 years ago

ihumphrey commented 6 years ago

Issue: Would it be possible to compile the libnn library with position-independent code?


Environment (conda list): Linux (Fedora28)

``` $ conda list asn1crypto 0.24.0 py36_1003 conda-forge bzip2 1.0.6 h470a237_2 conda-forge ca-certificates 2018.8.24 ha4d7672_0 conda-forge certifi 2018.8.24 py36_1001 conda-forge cffi 1.11.5 py36h5e8e0c9_1 conda-forge chardet 3.0.4 py36_1003 conda-forge conda 4.5.11 py36_0 conda-forge conda-env 2.6.0 1 cryptography 2.3.1 py36hdffb7b8_0 conda-forge cryptography-vectors 2.3.1 py36_1000 conda-forge idna 2.7 py36_1002 conda-forge libedit 3.1.20170329 h6b74fdf_2 libffi 3.2.1 hd88cf55_4 libgcc-ng 8.2.0 hdf63c60_1 libstdcxx-ng 8.2.0 hdf63c60_1 ncurses 6.1 hf484d3e_0 openssl 1.0.2p h470a237_0 conda-forge pip 18.0 py36_1001 conda-forge pycosat 0.6.3 py36h470a237_1 conda-forge pycparser 2.19 py_0 conda-forge pyopenssl 18.0.0 py36_0 conda-forge pysocks 1.6.8 py36_1002 conda-forge python 3.6.6 h5001a0f_0 conda-forge readline 7.0 h7b6447c_5 requests 2.19.1 py36_1 conda-forge ruamel_yaml 0.15.71 py36h470a237_0 conda-forge setuptools 40.4.3 py36_0 conda-forge six 1.11.0 py36_1001 conda-forge sqlite 3.24.0 h84994c4_0 tk 8.6.8 hbc83047_0 urllib3 1.23 py36_1 conda-forge wheel 0.32.1 py36_0 conda-forge xz 5.2.4 h14c3975_4 yaml 0.1.7 had09818_2 zlib 1.2.11 ha838bed_2 ```


Details about conda and system ( conda info ):

``` $ conda info active environment : None user config file : /home/ihumphrey/.condarc populated config files : /home/ihumphrey/.condarc conda version : 4.5.11 conda-build version : not installed python version : 3.6.6.final.0 base environment : /home/ihumphrey/miniconda3 (writable) channel URLs : https://conda.anaconda.org/usgs-astrogeology/linux-64 https://conda.anaconda.org/usgs-astrogeology/noarch https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/linux-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/linux-64 https://repo.anaconda.com/pkgs/pro/noarch package cache : /home/ihumphrey/miniconda3/pkgs /home/ihumphrey/.conda/pkgs envs directories : /home/ihumphrey/miniconda3/envs /home/ihumphrey/.conda/envs platform : linux-64 user-agent : conda/4.5.11 requests/2.19.1 CPython/3.6.6 Linux/4.18.9-200.fc28.x86_64 fedora/28 glibc/2.27 UID:GID : 2096:1800 netrc file : None offline mode : False ```
ocefpaf commented 6 years ago

-fPIC should be added by default via the compilers flags, right @isuruf?

PS: you may be getting an older version from before we started using the flag. I cannot see which version you have installed in your conda list above.

ihumphrey commented 6 years ago

Oh, sorry about that, I was looking at my root environment on my dev computer. Here's the conda list for the package I'm trying to build on Ubuntu18.04 that has a dependency on libnn.a

``` armadillo 8.200.0 blas_openblas_200 [blas_openblas] conda-forge arpack 3.6.2 blas_openblash26a2512_200 [blas_openblas] conda-forge blas 1.1 openblas conda-forge boost-cpp 1.67.0 h3a22d5f_0 conda-forge bullet 2.86.1 0 usgs-astrogeology bz2file 0.98 py_0 conda-forge bzip2 1.0.6 1 conda-forge ca-certificates 2018.8.24 ha4d7672_0 conda-forge cairo 1.14.6 4 conda-forge certifi 2018.8.24 py36_1001 conda-forge cmake 3.9.1 0 conda-forge cspice 66 h470a237_4 conda-forge curl 7.60.0 0 conda-forge dbus 1.13.0 h3a4f0e9_0 conda-forge doxygen 1.8.14 0 conda-forge eigen 3.3.3 0 conda-forge embree 2.14.0 0 conda-forge expat 2.2.5 hfc679d8_2 conda-forge ffmpeg 3.4.1 0 conda-forge flann 1.8.4 0 usgs-astrogeology fontconfig 2.12.1 4 conda-forge freetype 2.7 1 conda-forge geos 3.5.1 h6bb024c_1 usgs-astrogeology geotiff 1.4.2 1 conda-forge gettext 0.19.8.1 h5e8e0c9_1 conda-forge giflib 5.1.4 h470a237_1 conda-forge glib 2.51.4 0 conda-forge gmm 5.0 0 usgs-astrogeology gmp 6.1.2 0 conda-forge gsl 2.2.1 blas_openblas_3 [blas_openblas] conda-forge gst-plugins-base 1.8.0 0 conda-forge gstreamer 1.8.0 2 conda-forge harfbuzz 1.3.4 2 conda-forge hdf5 1.8.18 2 conda-forge icu 58.2 0 conda-forge jama 125 0 usgs-astrogeology jasper 1.900.1 4 conda-forge jpeg 9b 2 conda-forge kakadu 1 0 usgs-astrogeology krb5 1.14.2 0 conda-forge libedit 3.1.20170329 0 conda-forge libffi 3.2.1 hfc679d8_5 conda-forge libgcc 7.2.0 h69d50b8_2 conda-forge libgcc-ng 7.2.0 hdf63c60_3 conda-forge libgfortran 3.0.0 1 conda-forge libiconv 1.15 h470a237_3 conda-forge libpng 1.6.35 ha92aebf_2 conda-forge libprotobuf 3.5.2 h6bb024c_0 usgs-astrogeology libssh2 1.8.0 2 conda-forge libstdcxx-ng 7.2.0 hdf63c60_3 conda-forge libtiff 4.0.9 0 conda-forge libuuid 2.32.1 h470a237_2 conda-forge libuv 1.22.0 h470a237_1 conda-forge libwebp 0.5.2 7 conda-forge libxcb 1.13 h470a237_2 conda-forge libxml2 2.9.7 0 conda-forge llvm-meta 7.0.0 0 conda-forge llvmdev 7.0.0 h2d50403_0 conda-forge m4 1.4.18 h470a237_1 conda-forge make 4.2.1 h470a237_1002 conda-forge mesalib 17.2.0 0 conda-forge metis 5.1.0 h470a237_3 conda-forge mysql 5.7.20 1 conda-forge mysql-connector-c 6.1.6 0 conda-forge nanoflann 1.2.2 0 conda-forge ncurses 5.9 10 conda-forge ninja 1.7.2 0 conda-forge nn 1.86.0 2 conda-forge numpy 1.13.3 py36_blas_openblas_200 [blas_openblas] conda-forge openblas 0.2.19 2 conda-forge opencv 3.2.0 np113py36_blas_openblas_203 [blas_openblas] conda-forge openssl 1.0.2n 0 conda-forge patchelf 0.9 0 usgs-astrogeology pcl 1.8.1 h6bb024c_1 usgs-astrogeology pcre 8.41 hfc679d8_3 conda-forge pip 9.0.1 py36_1 conda-forge pixman 0.34.0 h470a237_3 conda-forge proj4 4.9.3 h470a237_8 conda-forge protobuf 3.5.2 py36h6bb024c_0 usgs-astrogeology pthread-stubs 0.4 h470a237_1 conda-forge python 3.6.0 2 conda-forge qhull 7.2.0 0 usgs-astrogeology qt 5.9.6 0 usgs-astrogeology qwt 6.1.3 0 usgs-astrogeology readline 6.2 0 conda-forge rhash 1.3.6 h470a237_1 conda-forge setuptools 38.5.1 py36_0 conda-forge sip 4.18 py36_1 conda-forge six 1.11.0 py36_1001 conda-forge sqlite 3.13.0 1 conda-forge suitesparse 4.5.4 blas_openblas_200 [blas_openblas] conda-forge superlu 5.2.1 blas_openblas_201 [blas_openblas] conda-forge tbb 4.4 0 usgs-astrogeology tk 8.5.19 2 conda-forge tnt 126 0 usgs-astrogeology wheel 0.30.0 py36_2 conda-forge x264 20131218 0 conda-forge xalan-c 1.11 0 usgs-astrogeology xerces-c 3.1.4 0 usgs-astrogeology xorg-fixesproto 5.0 h470a237_2 conda-forge xorg-inputproto 2.3.2 h470a237_2 conda-forge xorg-kbproto 1.0.7 1 conda-forge xorg-libice 1.0.9 h470a237_4 conda-forge xorg-libsm 1.2.2 h8c8a85c_6 conda-forge xorg-libx11 1.6.4 6 conda-forge xorg-libxau 1.0.8 h470a237_6 conda-forge xorg-libxdmcp 1.1.2 h470a237_7 conda-forge xorg-libxext 1.3.3 h470a237_4 conda-forge xorg-libxfixes 5.0.3 h470a237_4 conda-forge xorg-libxi 1.7.9 h470a237_2 conda-forge xorg-libxrender 0.9.10 h470a237_2 conda-forge xorg-renderproto 0.11.1 h470a237_2 conda-forge xorg-xextproto 7.3.0 h470a237_2 conda-forge xorg-xproto 7.0.31 h470a237_7 conda-forge xz 5.2.4 h470a237_1 conda-forge zlib 1.2.11 0 conda-forge ```

Here's some more details about the failure I'm having, it's during linking one of the executables:

``` /usr/bin/c++ -Wall -fPIC -std=c++11 -DISIS_LITTLE_ENDIAN=1 -Wno-unused-parameter -Wno-overloaded-virtual -Wno-strict-aliasing - DGMM_USES_SUPERLU -DENABLEJP2K=1 -Wall -fPIC -std=c++11 -DISIS_LITTLE_ENDIAN=1 -Wno-unused-parameter -Wno-overloaded-virtual -Wno-str ict-aliasing -DGMM_USES_SUPERLU -DENABLEJP2K=1 -fuse-ld=gold -pthread -fext-numeric-literals -Wl,-rpath,/home/sgstapleton/anaconda3/e nvs/test4/lib -g objects/CMakeFiles/cnet2dem_app.dir/control/apps/cnet2dem/DatumFunctoid.cpp.o objects/CMakeFiles/cnet2dem_app.dir/ control/apps/cnet2dem/cnet2dem.cpp.o -o bin/cnet2dem -L/home/sgstapleton/anaconda3/envs/test4/lib -Wl,-rpath,/home/sgstapleton/anaco nda3/envs/test4/lib:/work/users/sgstapleton/cmake/MERGEcmake/build/lib: /home/sgstapleton/anaconda3/envs/test4/lib/libamd.so /home/sg stapleton/anaconda3/envs/test4/lib/libarmadillo.so /home/sgstapleton/anaconda3/envs/test4/lib/libblas.so /home/sgstapleton/anaconda3/ envs/test4/lib/libboost_atomic.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_chrono.so /home/sgstapleton/anaconda3/envs/test 4/lib/libboost_container.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_context.so /home/sgstapleton/anaconda3/envs/test4/lib /libboost_coroutine.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_date_time.so /home/sgstapleton/anaconda3/envs/test4/lib/li bboost_exception.a /home/sgstapleton/anaconda3/envs/test4/lib/libboost_filesystem.so /home/sgstapleton/anaconda3/envs/test4/lib/libbo ost_iostreams.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_log.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_log_s etup.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_c99f.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_c99 l.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_c99.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_tr1f.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_tr1l.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_tr1.so /ho me/sgstapleton/anaconda3/envs/test4/lib/libboost_prg_exec_monitor.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_program_opti ons.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_random.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_regex.so /ho me/sgstapleton/anaconda3/envs/test4/lib/libboost_serialization.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_signals.so /hom e/sgstapleton/anaconda3/envs/test4/lib/libboost_system.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_test_exec_monitor.a /ho me/sgstapleton/anaconda3/envs/test4/lib/libboost_thread.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_timer.so /home/sgstapl eton/anaconda3/envs/test4/lib/libboost_unit_test_framework.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_wave.so /home/sgsta pleton/anaconda3/envs/test4/lib/libboost_wserialization.so /home/sgstapleton/anaconda3/envs/test4/lib/libBullet3Collision.so /home/sg stapleton/anaconda3/envs/test4/lib/libBullet3Dynamics.so /home/sgstapleton/anaconda3/envs/test4/lib/libBullet3Geometry.so /home/sgsta pleton/anaconda3/envs/test4/lib/libBulletCollision.so /home/sgstapleton/anaconda3/envs/test4/lib/libLinearMath.so /home/sgstapleton/a naconda3/envs/test4/lib/libBullet3Common.so /home/sgstapleton/anaconda3/envs/test4/lib/libBulletDynamics.so /home/sgstapleton/anacond a3/envs/test4/lib/libBulletInverseDynamics.so /home/sgstapleton/anaconda3/envs/test4/lib/libBullet3OpenCL_clew.so /home/sgstapleton/a naconda3/envs/test4/lib/libBulletSoftBody.so /home/sgstapleton/anaconda3/envs/test4/lib/libcamd.so /home/sgstapleton/anaconda3/envs/t est4/lib/libccolamd.so /home/sgstapleton/anaconda3/envs/test4/lib/libcholmod.so /home/sgstapleton/anaconda3/envs/test4/lib/libcolamd. so /home/sgstapleton/anaconda3/envs/test4/lib/libcspice.so /home/sgstapleton/anaconda3/envs/test4/lib/libembree.so /home/sgstapleton/ anaconda3/envs/test4/lib/libgeos_c.so /home/sgstapleton/anaconda3/envs/test4/lib/libgeos.so /home/sgstapleton/anaconda3/envs/test4/li b/libgeotiff.so /home/sgstapleton/anaconda3/envs/test4/lib/libgslcblas.so /home/sgstapleton/anaconda3/envs/test4/lib/libgsl.so /home/ sgstapleton/anaconda3/envs/test4/lib/libhdf5_cpp.so /home/sgstapleton/anaconda3/envs/test4/lib/libhdf5_hl_cpp.so /home/sgstapleton/an aconda3/envs/test4/lib/libhdf5_hl.so /home/sgstapleton/anaconda3/envs/test4/lib/libhdf5.so -lkdu_a79R -lkdu_v79R /home/sgstapleton/an aconda3/envs/test4/lib/liblapack.so /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a /home/sgstapleton/anaconda3/envs/test4/lib/lib opencv_calib3d.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_core.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_f eatures2d.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_flann.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_highg ui.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_imgcodecs.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_imgproc. so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_ml.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_objdetect.so /home /sgstapleton/anaconda3/envs/test4/lib/libopencv_photo.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_stitching.so /home/sgst apleton/anaconda3/envs/test4/lib/libopencv_superres.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_videostab.so /home/sgstap leton/anaconda3/envs/test4/lib/libopencv_video.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_xfeatures2d.so /home/sgstaplet on/anaconda3/envs/test4/lib/libpcl_common.so /home/sgstapleton/anaconda3/envs/test4/lib/libpcl_io.so /home/sgstapleton/anaconda3/envs /test4/lib/libpcl_octree.so /home/sgstapleton/anaconda3/envs/test4/lib/libpng.so /home/sgstapleton/anaconda3/envs/test4/lib/libprotob uf.so /home/sgstapleton/anaconda3/envs/test4/lib/libqwt.so /home/sgstapleton/anaconda3/envs/test4/lib/libsuitesparseconfig.so /home/s gstapleton/anaconda3/envs/test4/lib/libsuperlu.a /home/sgstapleton/anaconda3/envs/test4/lib/libtiff.so /home/sgstapleton/anaconda3/en vs/test4/lib/libX11.so /home/sgstapleton/anaconda3/envs/test4/lib/libxerces-c.so lib/libisis3.so /home/sgstapleton/anaconda3/envs/tes t4/lib/libamd.so /home/sgstapleton/anaconda3/envs/test4/lib/libarmadillo.so /home/sgstapleton/anaconda3/envs/test4/lib/libblas.so /ho me/sgstapleton/anaconda3/envs/test4/lib/libboost_atomic.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_chrono.so /home/sgstap leton/anaconda3/envs/test4/lib/libboost_container.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_context.so /home/sgstapleton /anaconda3/envs/test4/lib/libboost_coroutine.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_date_time.so /home/sgstapleton/an aconda3/envs/test4/lib/libboost_exception.a /home/sgstapleton/anaconda3/envs/test4/lib/libboost_filesystem.so /home/sgstapleton/anaco nda3/envs/test4/lib/libboost_iostreams.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_log.so /home/sgstapleton/anaconda3/envs /test4/lib/libboost_log_setup.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_c99f.so /home/sgstapleton/anaconda3/envs/te st4/lib/libboost_math_c99l.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_c99.so /home/sgstapleton/anaconda3/envs/test4/ lib/libboost_math_tr1f.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_math_tr1l.so /home/sgstapleton/anaconda3/envs/test4/lib /libboost_math_tr1.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_prg_exec_monitor.so /home/sgstapleton/anaconda3/envs/test4/ lib/libboost_program_options.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_random.so /home/sgstapleton/anaconda3/envs/test4/ lib/libboost_regex.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_serialization.so /home/sgstapleton/anaconda3/envs/test4/lib /libboost_signals.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_system.so /home/sgstapleton/anaconda3/envs/test4/lib/libboos t_test_exec_monitor.a /home/sgstapleton/anaconda3/envs/test4/lib/libboost_thread.so /home/sgstapleton/anaconda3/envs/test4/lib/libboo st_timer.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_unit_test_framework.so /home/sgstapleton/anaconda3/envs/test4/lib/lib boost_wave.so /home/sgstapleton/anaconda3/envs/test4/lib/libboost_wserialization.so /home/sgstapleton/anaconda3/envs/test4/lib/libBul let3Collision.so /home/sgstapleton/anaconda3/envs/test4/lib/libBullet3Dynamics.so /home/sgstapleton/anaconda3/envs/test4/lib/libBulle t3Geometry.so /home/sgstapleton/anaconda3/envs/test4/lib/libBulletCollision.so /home/sgstapleton/anaconda3/envs/test4/lib/libLinearMa th.so /home/sgstapleton/anaconda3/envs/test4/lib/libBullet3Common.so /home/sgstapleton/anaconda3/envs/test4/lib/libBulletDynamics.so /home/sgstapleton/anaconda3/envs/test4/lib/libBulletInverseDynamics.so /home/sgstapleton/anaconda3/envs/test4/lib/libBullet3OpenCL_cl ew.so /home/sgstapleton/anaconda3/envs/test4/lib/libBulletSoftBody.so /home/sgstapleton/anaconda3/envs/test4/lib/libcamd.so /home/sgs tapleton/anaconda3/envs/test4/lib/libccolamd.so /home/sgstapleton/anaconda3/envs/test4/lib/libcholmod.so /home/sgstapleton/anaconda3/ envs/test4/lib/libcolamd.so /home/sgstapleton/anaconda3/envs/test4/lib/libcspice.so /home/sgstapleton/anaconda3/envs/test4/lib/libemb ree.so /home/sgstapleton/anaconda3/envs/test4/lib/libgeos_c.so /home/sgstapleton/anaconda3/envs/test4/lib/libgeos.so /home/sgstapleto n/anaconda3/envs/test4/lib/libgeotiff.so /home/sgstapleton/anaconda3/envs/test4/lib/libgslcblas.so /home/sgstapleton/anaconda3/envs/t est4/lib/libgsl.so /home/sgstapleton/anaconda3/envs/test4/lib/libhdf5_cpp.so /home/sgstapleton/anaconda3/envs/test4/lib/libhdf5_hl_cp p.so /home/sgstapleton/anaconda3/envs/test4/lib/libhdf5_hl.so /home/sgstapleton/anaconda3/envs/test4/lib/libhdf5.so -lkdu_a79R -lkdu_ v79R /home/sgstapleton/anaconda3/envs/test4/lib/liblapack.so /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a /home/sgstapleton/ana conda3/envs/test4/lib/libopencv_calib3d.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_core.so /home/sgstapleton/anaconda3/e nvs/test4/lib/libopencv_features2d.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_flann.so /home/sgstapleton/anaconda3/envs/ test4/lib/libopencv_highgui.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_imgcodecs.so /home/sgstapleton/anaconda3/envs/tes t4/lib/libopencv_imgproc.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_ml.so /home/sgstapleton/anaconda3/envs/test4/lib/lib opencv_objdetect.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_photo.so /home/sgstapleton/anaconda3/envs/test4/lib/libopenc v_stitching.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_superres.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_ videostab.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_video.so /home/sgstapleton/anaconda3/envs/test4/lib/libopencv_xfeat ures2d.so /home/sgstapleton/anaconda3/envs/test4/lib/libpcl_common.so /home/sgstapleton/anaconda3/envs/test4/lib/libpcl_io.so /home/s gstapleton/anaconda3/envs/test4/lib/libpcl_octree.so /home/sgstapleton/anaconda3/envs/test4/lib/libpng.so /home/sgstapleton/anaconda3 /envs/test4/lib/libprotobuf.so /home/sgstapleton/anaconda3/envs/test4/lib/libqwt.so /home/sgstapleton/anaconda3/envs/test4/lib/libQt5 Concurrent.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5MultimediaWidgets.so.5.9.6 /home/sgstapleton/anaconda3/envs/test 4/lib/libQt5Multimedia.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5OpenGL.so.5.9.6 /home/sgstapleton/anaconda3/envs/tes t4/lib/libQt5PrintSupport.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5Quick.so.5.9.6 /home/sgstapleton/anaconda3/envs/t est4/lib/libQt5ScriptTools.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5Script.so.5.9.6 /home/sgstapleton/anaconda3/envs /test4/lib/libQt5Sql.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5Svg.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/li b/libQt5Test.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5WebChannel.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib /libQt5Qml.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5Widgets.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQ t5Gui.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5XmlPatterns.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt 5Network.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5Xml.so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libQt5Core .so.5.9.6 /home/sgstapleton/anaconda3/envs/test4/lib/libsuitesparseconfig.so /home/sgstapleton/anaconda3/envs/test4/lib/libsuperlu.a /home/sgstapleton/anaconda3/envs/test4/lib/libtiff.so /home/sgstapleton/anaconda3/envs/test4/lib/libX11.so /home/sgstapleton/anaconda 3/envs/test4/lib/libxerces-c.so && : /usr/bin/x86_64-linux-gnu-ld.gold: error: /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a(delaunay.o): requires dynamic R_X86_64_P C32 reloc against 'free' which may overflow at runtime; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld.gold: error: /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a(istack.o): requires dynamic R_X86_64_PC3 2 reloc against 'malloc' which may overflow at runtime; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld.gold: error: /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a(nnpi.o): requires dynamic R_X86_64_PC32 reloc against 'malloc' which may overflow at runtime; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld.gold: error: /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a(nncommon.o): requires dynamic R_X86_64_P C32 reloc against 'fflush' which may overflow at runtime; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld.gold: error: /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a(nncommon-vulnerable.o): requires dynamic R_X86_64_PC32 reloc against 'hypot' which may overflow at runtime; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld.gold: error: /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a(triangle.o): requires dynamic R_X86_64_P C32 reloc against 'malloc' which may overflow at runtime; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld.gold: error: /home/sgstapleton/anaconda3/envs/test4/lib/libnn.a(hash.o): requires dynamic R_X86_64_PC32 reloc against 'malloc' which may overflow at runtime; recompile with -fPIC collect2: error: ld returned 1 exit status ```
ocefpaf commented 6 years ago

Yep, nn 1.86.0 2 is an old build. We need to fix the toolchain builds though to get a new package in the old compilers.

Can you try the built with the new compilers? You can install it with:

conda install -c conda-forge conda-forge/label/gcc7::nn

Note that we did not finish the migration to the new compilers yet, so it will take a while for that package to be available in the main channel.

ihumphrey commented 6 years ago

Looks like it worked with the gcc7 build, thanks for all your help! Should there be an issue for getting a new package up for the new compilers?

Also, another quick question if you have time, is there a way to specify this version of nn (the gcc7 label version) within an environment yml file (so I could use conda env create)?

ocefpaf commented 6 years ago

Should there be an issue for getting a new package up for the new compilers?

The package exists and it is the one you installed :smile:

We are migrating to the new compilers, once the migration is over that package will be the "default" one. You can follow the status of the migration here:

https://conda-forge.org/status/

Also, another quick question if you have time, is there a way to specify this version of nn (the gcc7 label version) within an environment yml file (so I could use conda env create)?

Yep. Same syntax:

- conda-forge/label/gcc7::nn