bcgsc / btllib

Bioinformatics Technology Lab common code library
Other
23 stars 5 forks source link

error: use of deleted function during Compiling C++ object wrappers/python/_btllib.so.p/btllib_wrap.cxx.o #86

Closed jwcodee closed 1 year ago

jwcodee commented 1 year ago

[23/24] Compiling C++ object wrappers/python/_btllib.so.p/btllib_wrap.cxx.o
FAILED: wrappers/python/_btllib.so.p/btllib_wrap.cxx.o
/projects/btl/jowong/anaconda3/envs/btllib_dev_2023/bin/x86_64-conda-linux-gnu-c++ -Iwrappers/python/_btllib.so.p -Iwrappers/python -I../wrappers/python -I/projects/btl/jowong/anaconda3/envs/btllib_dev_2023/include/python3.11 -Iinclude -I../include -I. -I.. -I../subprojects/cpptoml/include -Isubprojects/cpptoml/__CMake_build -I../subprojects/cpptoml/__CMake_build -Isubprojects/cpptoml -I../subprojects/cpptoml -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++11 -O0 -g -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /projects/btl/jowong/anaconda3/envs/btllib_dev_2023/include -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -isystem /projects/btl/jowong/anaconda3/include -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -isystem /projects/btl/jowong/anaconda3/include -O2 -isystem /projects/btl/jowong/anaconda3/envs/btllib_dev_2023/include -O2 -isystem /projects/btl/jowong/anaconda3/include -D_FORTIFY_SOURCE=2 -O2 -isystem /projects/btl/jowong/anaconda3/include -fPIC -fopenmp -pthread -isystem../subprojects/sdsl-lite -isystemsubprojects/sdsl-lite -isystem../subprojects/sdsl-lite/__CMake_build -isystemsubprojects/sdsl-lite/__CMake_build -isystem../subprojects/sdsl-lite/include -isystem../subprojects/sdsl-lite/__CMake_build/external/libdivsufsort/include -isystemsubprojects/sdsl-lite/__CMake_build/external/libdivsufsort/include -isystem../subprojects/sdsl-lite/__CMake_build/include -isystemsubprojects/sdsl-lite/__CMake_build/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -isystem /projects/btl/jowong/anaconda3/envs/btllib_dev_2023/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/python-split_1673698225848/work=/usr/local/src/conda/python-3.11.0 -fdebug-prefix-map=/projects/btl/jowong/anaconda3/envs/btllib_dev_2023=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto -DNDEBUG -fwrapv -O3 -Wall -w -MD -MQ wrappers/python/_btllib.so.p/btllib_wrap.cxx.o -MF wrappers/python/_btllib.so.p/btllib_wrap.cxx.o.d -o wrappers/python/_btllib.so.p/btllib_wrap.cxx.o -c ../wrappers/python/btllib_wrap.cxx
../wrappers/python/btllib_wrap.cxx: In function 'PyObject* _wrap_MIBloomFilterInitializer_ifs_id_arr_set(PyObject*, PyObject*)':
../wrappers/python/btllib_wrap.cxx:36432:15: error: use of deleted function 'std::basic_ifstream<_CharT, _Traits>& std::basic_ifstream<_CharT, _Traits>::operator=(const std::basic_ifstream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]'
36432 |       arg2 = *temp;
      |               ^~~~
In file included from ../subprojects/cpptoml/include/cpptoml.h:15,
                 from ../include/btllib/bloom_filter.hpp:6,
                 from ../include/btllib/indexlr.hpp:4,
                 from ../wrappers/python/btllib_wrap.cxx:4018:
/projects/btl/jowong/anaconda3/envs/btllib_dev_2023/x86_64-conda-linux-gnu/include/c++/11.3.0/fstream:611:7: note: declared here
  611 |       operator=(const basic_ifstream&) = delete;
      |       ^~~~~~~~
../wrappers/python/btllib_wrap.cxx:36436:34: error: use of deleted function 'std::basic_ifstream<_CharT, _Traits>& std::basic_ifstream<_CharT, _Traits>::operator=(const std::basic_ifstream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]'
36436 |   if (arg1) (arg1)->ifs_id_arr = arg2;
      |                                  ^~~~
In file included from ../subprojects/cpptoml/include/cpptoml.h:15,
                 from ../include/btllib/bloom_filter.hpp:6,
                 from ../include/btllib/indexlr.hpp:4,
                 from ../wrappers/python/btllib_wrap.cxx:4018:
/projects/btl/jowong/anaconda3/envs/btllib_dev_2023/x86_64-conda-linux-gnu/include/c++/11.3.0/fstream:611:7: note: declared here
  611 |       operator=(const basic_ifstream&) = delete;
      |       ^~~~~~~~
../wrappers/python/btllib_wrap.cxx: In function 'PyObject* _wrap_MIBloomFilterInitializer_ifs_id_arr_get(PyObject*, PyObject*)':
../wrappers/python/btllib_wrap.cxx:36458:32: error: use of deleted function 'std::basic_ifstream<_CharT, _Traits>& std::basic_ifstream<_CharT, _Traits>::operator=(const std::basic_ifstream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]'
36458 |   result =  ((arg1)->ifs_id_arr);
      |                                ^
In file included from ../subprojects/cpptoml/include/cpptoml.h:15,
                 from ../include/btllib/bloom_filter.hpp:6,
                 from ../include/btllib/indexlr.hpp:4,
                 from ../wrappers/python/btllib_wrap.cxx:4018:
/projects/btl/jowong/anaconda3/envs/btllib_dev_2023/x86_64-conda-linux-gnu/include/c++/11.3.0/fstream:611:7: note: declared here
  611 |       operator=(const basic_ifstream&) = delete;
      |       ^~~~~~~~
../wrappers/python/btllib_wrap.cxx:36459:59: error: use of deleted function 'std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const std::basic_ifstream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]'
36459 |   resultobj = SWIG_NewPointerObj((new std::ifstream(result)), SWIGTYPE_p_std__ifstream, SWIG_POINTER_OWN |  0 );
      |                                                           ^
../wrappers/python/btllib_wrap.cxx:1084:89: note: in definition of macro 'SWIG_NewPointerObj'
 1084 | #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
      |                                                                                         ^~~
In file included from ../subprojects/cpptoml/include/cpptoml.h:15,
                 from ../include/btllib/bloom_filter.hpp:6,
                 from ../include/btllib/indexlr.hpp:4,
                 from ../wrappers/python/btllib_wrap.cxx:4018:
/projects/btl/jowong/anaconda3/envs/btllib_dev_2023/x86_64-conda-linux-gnu/include/c++/11.3.0/fstream:590:7: note: declared here
  590 |       basic_ifstream(const basic_ifstream&) = delete;
      |       ^~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.```
parham-k commented 1 year ago

Fixed in #87, will be merged soon.