Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue on docker #262

Open
allyite opened this issue Feb 9, 2022 · 10 comments
Open

Build issue on docker #262

allyite opened this issue Feb 9, 2022 · 10 comments

Comments

@allyite
Copy link

allyite commented Feb 9, 2022

Hi, I'm trying to install mzr on docker with:-
R version: 3.6
Bioconductor version: 3.10

I apologise in advance, if this question has been asked earlier.
I'm not an expert but I've tried everything I could find & understand on google.
Any help would be really appreciated.

Note: I can't upgrade my R version, because I'm trying to run an app as-is & with tonnes of other packages.

Error msg (till the end)::

Installing package into ‘/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3’
(as ‘lib’ is unspecified)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4791k  100 4791k    0     0  4481k      0  0:00:01  0:00:01 --:--:-- 4482k
 installing *source* package ‘mzR’ ...
** using staged installation
** libs
rm -f cramp.o ramp_base64.o ramp.o RcppRamp.o RcppRampModule.o RcppPwiz.o RcppPwizModule.o RcppIdent.o RcppIdentModule.o ./boost/libs/system/src/error_code.o ./boost/libs/regex/src/posix_api.o ./boost/libs/regex/src/fileiter.o ./boost/libs/regex/src/regex_raw_buffer.o ./boost/libs/regex/src/cregex.o ./boost/libs/regex/src/regex_debug.o ./boost/libs/regex/src/instances.o ./boost/libs/regex/src/icu.o ./boost/libs/regex/src/usinstances.o ./boost/libs/regex/src/regex.o ./boost/libs/regex/src/wide_posix_api.o ./boost/libs/regex/src/regex_traits_defaults.o ./boost/libs/regex/src/winstances.o ./boost/libs/regex/src/wc_regex_traits.o ./boost/libs/regex/src/c_regex_traits.o ./boost/libs/regex/src/cpp_regex_traits.o ./boost/libs/regex/src/static_mutex.o ./boost/libs/regex/src/w32_regex_traits.o ./boost/libs/iostreams/src/zlib.o ./boost/libs/iostreams/src/file_descriptor.o ./boost/libs/filesystem/src/operations.o ./boost/libs/filesystem/src/path.o ./boost/libs/filesystem/src/utf8_codecvt_facet.o ./boost/libs/chrono/src/chrono.o ./boost/libs/chrono/src/process_cpu_clocks.o ./boost/libs/chrono/src/thread_clock.o ./pwiz/data/msdata/Version.o ./pwiz/data/identdata/Version.o ./pwiz/data/common/MemoryIndex.o ./pwiz/data/common/CVTranslator.o ./pwiz/data/common/cv.o ./pwiz/data/common/ParamTypes.o ./pwiz/data/common/BinaryIndexStream.o ./pwiz/data/common/diff_std.o ./pwiz/data/common/Unimod.o ./pwiz/data/msdata/mz5/Configuration_mz5.o ./pwiz/data/msdata/mz5/Connection_mz5.o ./pwiz/data/msdata/mz5/Datastructures_mz5.o ./pwiz/data/msdata/mz5/ReferenceRead_mz5.o ./pwiz/data/msdata/mz5/ReferenceWrite_mz5.o ./pwiz/data/msdata/mz5/Translator_mz5.o ./pwiz/data/msdata/SpectrumList_MGF.o ./pwiz/data/msdata/DefaultReaderList.o ./pwiz/data/msdata/ChromatogramList_mzML.o ./pwiz/data/msdata/ChromatogramList_mz5.o ./pwiz/data/msdata/examples.o ./pwiz/data/msdata/Serializer_mzML.o ./pwiz/data/msdata/Serializer_MSn.o ./pwiz/data/msdata/Reader.o ./pwiz/data/msdata/Serializer_mz5.o ./pwiz/data/msdata/Serializer_MGF.o ./pwiz/data/msdata/Serializer_mzXML.o ./pwiz/data/msdata/SpectrumList_mzML.o ./pwiz/data/msdata/SpectrumList_MSn.o ./pwiz/data/msdata/SpectrumList_mz5.o ./pwiz/data/msdata/BinaryDataEncoder.o ./pwiz/data/msdata/Diff.o ./pwiz/data/msdata/MSData.o ./pwiz/data/msdata/References.o ./pwiz/data/msdata/SpectrumList_mzXML.o ./pwiz/data/msdata/IO.o ./pwiz/data/msdata/SpectrumList_BTDX.o ./pwiz/data/msdata/SpectrumInfo.o ./pwiz/data/msdata/RAMPAdapter.o ./pwiz/data/msdata/LegacyAdapter.o ./pwiz/data/msdata/SpectrumIterator.o ./pwiz/data/msdata/MSDataFile.o ./pwiz/data/msdata/MSNumpress.o ./pwiz/data/msdata/SpectrumListCache.o ./pwiz/data/msdata/Index_mzML.o ./pwiz/data/msdata/SpectrumWorkerThreads.o ./pwiz/data/identdata/IdentDataFile.o ./pwiz/data/identdata/IdentData.o ./pwiz/data/identdata/DefaultReaderList.o ./pwiz/data/identdata/Reader.o ./pwiz/data/identdata/Serializer_protXML.o ./pwiz/data/identdata/Serializer_pepXML.o ./pwiz/data/identdata/Serializer_mzid.o ./pwiz/data/identdata/IO.o ./pwiz/data/identdata/References.o ./pwiz/data/identdata/MascotReader.o ./pwiz/data/proteome/Modification.o ./pwiz/data/proteome/Digestion.o ./pwiz/data/proteome/Peptide.o ./pwiz/data/proteome/AminoAcid.o ./pwiz/utility/minimxml/XMLWriter.o ./pwiz/utility/minimxml/SAXParser.o ./pwiz/utility/chemistry/Chemistry.o ./pwiz/utility/chemistry/ChemistryData.o ./pwiz/utility/chemistry/MZTolerance.o ./pwiz/utility/misc/IntegerSet.o ./pwiz/utility/misc/Base64.o ./pwiz/utility/misc/IterationListener.o ./pwiz/utility/misc/MSIHandler.o ./pwiz/utility/misc/Filesystem.o ./pwiz/utility/misc/TabReader.o ./pwiz/utility/misc/random_access_compressed_ifstream.o ./pwiz/utility/misc/SHA1.o ./pwiz/utility/misc/SHA1Calculator.o ./pwiz/utility/misc/sha1calc.o ./random_access_gzFile.o ./RcppExports.o ./boost/libs/thread/src/pthread/once.o ./boost/libs/thread/src/pthread/thread.o rampR.o 
find . -name \*~ -exec rm {} \;   ## from cleanup
find . -name \*.o -exec rm {} \;  ## from cleanup
find . -name "#*#" -exec rm {} \; ## from cleanup
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./boost_aux/ -I./boost/ -I. -D_LARGEFILE_SOURCE -DHAVE_PWIZ_MZML_LIB -D_NODEBUG    -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include" -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/zlibbioc/include" -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rhdf5lib/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-DxB5H5/r-base-3.6.2.20200221=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c cramp.cpp -o cramp.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./boost_aux/ -I./boost/ -I. -D_LARGEFILE_SOURCE -DHAVE_PWIZ_MZML_LIB -D_NODEBUG    -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include" -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/zlibbioc/include" -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rhdf5lib/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-DxB5H5/r-base-3.6.2.20200221=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c ramp_base64.cpp -o ramp_base64.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./boost_aux/ -I./boost/ -I. -D_LARGEFILE_SOURCE -DHAVE_PWIZ_MZML_LIB -D_NODEBUG    -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include" -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/zlibbioc/include" -I"/workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rhdf5lib/include"   -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-DxB5H5/r-base-3.6.2.20200221=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c ramp.cpp -o ramp.o
In file included from ./boost/boost/smart_ptr/detail/shared_count.hpp:30,
                 from ./boost/boost/smart_ptr/shared_ptr.hpp:28,
                 from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp:81:33: error: ‘sp_typeinfo’ has not been declared
   81 |     virtual void * get_deleter( sp_typeinfo const & )
      |                                 ^~~~~~~~~~~
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp:156:33: error: ‘sp_typeinfo’ has not been declared
  156 |     virtual void * get_deleter( sp_typeinfo const & ti )
      |                                 ^~~~~~~~~~~
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp: In member function ‘virtual void* boost::detail::sp_counted_impl_pd<P, D>::get_deleter(const int&)’:
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp:158:39: error: expected primary-expression before ‘)’ token
  158 |         return ti == BOOST_SP_TYPEID(D)? &reinterpret_cast<char&>( del ): 0;
      |                                       ^
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp:158:22: error: there are no arguments to ‘BOOST_SP_TYPEID’ that depend on a template parameter, so a declaration of ‘BOOST_SP_TYPEID’ must be available [-fpermissive]
  158 |         return ti == BOOST_SP_TYPEID(D)? &reinterpret_cast<char&>( del ): 0;
      |                      ^~~~~~~~~~~~~~~
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp:158:22: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp: At global scope:
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp:252:33: error: ‘sp_typeinfo’ has not been declared
  252 |     virtual void * get_deleter( sp_typeinfo const & ti )
      |                                 ^~~~~~~~~~~
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp: In member function ‘virtual void* boost::detail::sp_counted_impl_pda<P, D, A>::get_deleter(const int&)’:
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp:254:41: error: expected primary-expression before ‘)’ token
  254 |         return ti == BOOST_SP_TYPEID( D )? &reinterpret_cast<char&>( d_ ): 0;
      |                                         ^
./boost/boost/smart_ptr/detail/sp_counted_impl.hpp:254:22: error: there are no arguments to ‘BOOST_SP_TYPEID’ that depend on a template parameter, so a declaration of ‘BOOST_SP_TYPEID’ must be available [-fpermissive]
  254 |         return ti == BOOST_SP_TYPEID( D )? &reinterpret_cast<char&>( d_ ): 0;
      |                      ^~~~~~~~~~~~~~~
In file included from ./boost/boost/smart_ptr/shared_ptr.hpp:28,
                 from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/detail/shared_count.hpp: At global scope:
./boost/boost/smart_ptr/detail/shared_count.hpp:395:33: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  395 |     explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
      |                                 ^~~~~~~~
In file included from /usr/include/c++/11/bits/locale_conv.h:41,
                 from /usr/include/c++/11/locale:43,
                 from /usr/include/c++/11/iomanip:43,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/RcppCommon.h:52,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/Rcpp.h:27,
                 from ramp.cpp:33:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./boost/boost/smart_ptr/shared_ptr.hpp:28,
                 from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/detail/shared_count.hpp:518:25: error: ‘sp_typeinfo’ has not been declared
  518 |     void * get_deleter( sp_typeinfo const & ti ) const
      |                         ^~~~~~~~~~~
./boost/boost/smart_ptr/detail/shared_count.hpp: In member function ‘void* boost::detail::shared_count::get_deleter(const int&) const’:
./boost/boost/smart_ptr/detail/shared_count.hpp:520:39: error: cannot convert ‘const int’ to ‘const sp_typeinfo_&’ {aka ‘const std::type_info&’}
  520 |         return pi_? pi_->get_deleter( ti ): 0;
      |                                       ^~
      |                                       |
      |                                       const int
In file included from ./boost/boost/smart_ptr/detail/sp_counted_base.hpp:72,
                 from ./boost/boost/smart_ptr/detail/shared_count.hpp:29,
                 from ./boost/boost/smart_ptr/shared_ptr.hpp:28,
                 from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
/usr/include/boost/smart_ptr/detail/sp_counted_base_sync.hpp:119:54: note:   initializing argument 1 of ‘virtual void* boost::detail::sp_counted_base::get_deleter(const sp_typeinfo_&)’
  119 |     virtual void * get_deleter( sp_typeinfo_ const & ti ) = 0;
      |                                 ~~~~~~~~~~~~~~~~~~~~~^~
In file included from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/shared_ptr.hpp: At global scope:
./boost/boost/smart_ptr/shared_ptr.hpp:242:65: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  242 | template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
      |                                                                 ^~~~~~~~
In file included from /usr/include/c++/11/bits/locale_conv.h:41,
                 from /usr/include/c++/11/locale:43,
                 from /usr/include/c++/11/iomanip:43,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/RcppCommon.h:52,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/Rcpp.h:27,
                 from ramp.cpp:33:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/shared_ptr.hpp:441:31: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  441 |     explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
      |                               ^~~~~~~~
In file included from /usr/include/c++/11/bits/locale_conv.h:41,
                 from /usr/include/c++/11/locale:43,
                 from /usr/include/c++/11/iomanip:43,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/RcppCommon.h:52,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/Rcpp.h:27,
                 from ramp.cpp:33:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/shared_ptr.hpp:454:22: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  454 |     shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn()
      |                      ^~~~~~~~
In file included from /usr/include/c++/11/bits/locale_conv.h:41,
                 from /usr/include/c++/11/locale:43,
                 from /usr/include/c++/11/iomanip:43,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/RcppCommon.h:52,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/Rcpp.h:27,
                 from ramp.cpp:33:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/shared_ptr.hpp:520:34: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  520 |     shared_ptr & operator=( std::auto_ptr<Y> & r )
      |                                  ^~~~~~~~
In file included from /usr/include/c++/11/bits/locale_conv.h:41,
                 from /usr/include/c++/11/locale:43,
                 from /usr/include/c++/11/iomanip:43,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/RcppCommon.h:52,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/Rcpp.h:27,
                 from ramp.cpp:33:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/shared_ptr.hpp:529:34: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  529 |     shared_ptr & operator=( std::auto_ptr<Y> && r )
      |                                  ^~~~~~~~
In file included from /usr/include/c++/11/bits/locale_conv.h:41,
                 from /usr/include/c++/11/locale:43,
                 from /usr/include/c++/11/iomanip:43,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/RcppCommon.h:52,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/Rcpp.h:27,
                 from ramp.cpp:33:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/shared_ptr.hpp:695:50: error: ‘boost::detail::sp_typeinfo’ has not been declared
  695 |     void * _internal_get_deleter( boost::detail::sp_typeinfo const & ti ) const BOOST_NOEXCEPT
      |                                                  ^~~~~~~~~~~
In file included from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&)’:
./boost/boost/smart_ptr/shared_ptr.hpp:531:38: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
  531 |         this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this );
      |                                      ^~~~~~~~
In file included from /usr/include/c++/11/bits/locale_conv.h:41,
                 from /usr/include/c++/11/locale:43,
                 from /usr/include/c++/11/iomanip:43,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/RcppCommon.h:52,
                 from /workspaces/ump/packrat/lib/aarch64-unknown-linux-gnu/3.6.3/Rcpp/include/Rcpp.h:27,
                 from ramp.cpp:33:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./boost/boost/shared_ptr.hpp:17,
                 from ./pwiz/data/msdata/RAMPAdapter.hpp:30,
                 from ramp.cpp:60:
./boost/boost/smart_ptr/shared_ptr.hpp: In function ‘D* boost::detail::basic_get_deleter(const boost::shared_ptr<U>&)’:
./boost/boost/smart_ptr/shared_ptr.hpp:887:71: error: expected primary-expression before ‘)’ token
  887 |     return static_cast<D *>( p._internal_get_deleter(BOOST_SP_TYPEID(D)) );
      |                                                                       ^
./boost/boost/smart_ptr/shared_ptr.hpp:887:54: error: there are no arguments to ‘BOOST_SP_TYPEID’ that depend on a template parameter, so a declaration of ‘BOOST_SP_TYPEID’ must be available [-fpermissive]
  887 |     return static_cast<D *>( p._internal_get_deleter(BOOST_SP_TYPEID(D)) );
      |                                                      ^~~~~~~~~~~~~~~
make: *** [/usr/lib/R/etc/Makeconf:177: ramp.o] Error 1
ERROR: compilation failed for package ‘mzR’
@sneumann
Copy link
Owner

sneumann commented Feb 9, 2022

Hi, can you provide the Dockerfile ? Yours, Steffen

@allyite
Copy link
Author

allyite commented Feb 10, 2022

Hi, can you provide the Dockerfile ? Yours, Steffen

Here it is:

FROM r-base:3.6.2
EXPOSE 4200
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \ 
    && apt-get install -y libcurl4-openssl-dev libudunits2-dev libxml2-dev libgdal-dev \
    make build-essential zlib1g-dev \
    libbz2-dev libreadline-dev libsqlite3-dev git wget curl llvm libncurses5-dev \
    libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl\
    libmagick++-dev\
    libnetcdf-dev
    
RUN R -e 'install.packages("packrat")'
USER docker
RUN curl https://pyenv.run | bash
ENV PATH="/home/docker/.pyenv/bin:$PATH"
RUN eval "$(pyenv init -)" && eval "$(pyenv virtualenv-init -)"
RUN PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.0
USER root
ENV PATH="/home/docker/.pyenv/bin:$PATH"
ENV PATH="/home/docker/.pyenv/versions/3.6/bin:$PATH"

File- Packrat.lock :: (mentioning only some of the packages below)

PackratFormat: 1.4
PackratVersion: 0.5.0.310210272
RVersion: 3.6.2
Repos: BioCsoft=https://bioconductor.org/packages/3.10/bioc,
    BioCann=https://bioconductor.org/packages/3.10/data/annotation,
    BioCexp=https://bioconductor.org/packages/3.10/data/experiment,
    BioCworkflows=https://bioconductor.org/packages/3.10/workflows,
    CRAN=https://cloud.r-project.org

Package: mzID
Source: Bioconductor
Version: 1.24.0
Hash: 57f4c8208913005696fc40cca83fb411
Requires: ProtGenerics, XML, doParallel, foreach, iterators, plyr

Package: mzR
Source: Bioconductor
Version: 2.20.0
Hash: 07034fc31539dbdea9fb6096e2eae04a
Requires: Biobase, BiocGenerics, ProtGenerics, Rcpp, Rhdf5lib, ncdf4,
    zlibbioc

Package: ncdf4
Source: CRAN
Version: 1.17
Hash: 7cf17483666153addae35552ca6debd9

Package: BiocManager
Source: CRAN
Version: 1.30.9
Hash: 0dc0169c4d82275fdf64cdd8dfb27311

Package: BiocParallel
Source: Bioconductor
Version: 1.20.1
Hash: cefc0c2a973eeb14746cf935eec1c99d
Requires: BH, futile.logger, snow

@sneumann
Copy link
Owner

Hm, I dont even get that far:

Downloading Python-3.6.0.tar.xz...
-> https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
Installing Python-3.6.0...
/home/docker/.pyenv/plugins/python-build/bin/python-build: line 1899: 11453 Segmentation fault      (core dumped) "$PYTHON_BIN" -s -m ensurepip ${ensurepip_opts} > /dev/null 2>&1
Installing pip from https://bootstrap.pypa.io/pip/3.6/get-pip.py...
/home/docker/.pyenv/plugins/python-build/bin/python-build: line 1880: 11457 Segmentation fault      (core dumped) "${PYTHON_BIN}" -s "${get_pip}" ${GET_PIP_OPTS} 1>&4 2>&1
error: failed to install pip via get-pip.py

BUILD FAILED (Debian GNU/Linux using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20220210143325.63
Results logged to /tmp/python-build.20220210143325.63.log

Last 10 log lines:
		upgrade) ensurepip="--upgrade" ;; \
		install|*) ensurepip="" ;; \
	esac; \
	LD_LIBRARY_PATH=/tmp/python-build.20220210143325.63/Python-3.6.0 ./python -E -m ensurepip \
		$ensurepip --root=/ ; \
fi
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-9.0.1 setuptools-28.8.0
The command '/bin/sh -c PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6.0' returned a non-zero code: 1

=> Can you edit your above error trace as a code block ? I am having a hard time reading it. The GitHub Issue Editor needs three backticks (```) above and below the text to format it as code.

@allyite
Copy link
Author

allyite commented Feb 10, 2022

I've put it in a nice code block now :) Sorry about that.

I'm using the exact same docker-file as shared above, with docker desktop and Visual studio code (with Remote containers extension).
You can avoid the python-related stuff from docker-file. I guess its not related to the mzR-issue.

@sneumann
Copy link
Owner

Hm, can't reproduce. (Docker and Packrat renamed to *.txt to please GitHub
Dockerfile.txt
Packrat.lock.txt
)

[Dockerfile.txt](https://github.com/sneumann/mzR/files/8047143/Dockerfile.txt)
[Packrat.lock.txt](https://github.com/sneumann/mzR/files/8047144/Packrat.lock.txt)
Sending build context to Docker daemon  5.632kB
Step 1/5 : FROM r-base:3.6.2
 ---> 46edce0e80af
Step 2/5 : EXPOSE 4200
 ---> Using cache
 ---> 7633db18650d
Step 3/5 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 96f407fdd5ee
Step 4/5 : RUN apt-get update && apt-get install -y libcurl4-openssl-dev libudunits2-dev libxml2-dev libgdal-dev make build-essential zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev git wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl libmagick++-dev libnetcdf-dev
 ---> Using cache
 ---> b9b6cf285517
Step 5/5 : RUN R -e 'install.packages("packrat")'
 ---> Using cache
 ---> 95c1c4aa7914
Successfully built 95c1c4aa7914

@allyite
Copy link
Author

allyite commented Feb 11, 2022

Hi.. I'm also able to build the container.
But after that, have you been able to install mzR package (along with its dependencies) as mentioned in packrat.lock?
If yes, can you please share your project folder/repo with me?

Commands after container built:

R -e "packrat::init()"
R -e "packrat::restore()"

If no, you can try installing it using below packrat.lock file (I've included mzr and its needed dependencies).

PackratFormat: 1.4
PackratVersion: 0.5.0.310210272
RVersion: 3.6.2
Repos: BioCsoft=https://bioconductor.org/packages/3.10/bioc,
    BioCann=https://bioconductor.org/packages/3.10/data/annotation,
    BioCexp=https://bioconductor.org/packages/3.10/data/experiment,
    BioCworkflows=https://bioconductor.org/packages/3.10/workflows,
    CRAN=https://cloud.r-project.org/

Package: mzR
Source: Bioconductor
Version: 2.20.0
Hash: 07034fc31539dbdea9fb6096e2eae04a
Requires: Biobase, BiocGenerics, ProtGenerics, Rcpp, Rhdf5lib, ncdf4, zlibbioc

Package: Biobase
Source: Bioconductor
Version: 2.46.0
Hash: 8cafc212f9d20d470843c13c4988771c
Requires: BiocGenerics

Package: BiocGenerics
Source: Bioconductor
Version: 0.32.0
Hash: b64f82cc8788075b3d2b3c85d879fbf4

Package: ProtGenerics
Source: Bioconductor
Version: 1.18.0
Hash: 48c92173f285349bdbd5408c683551fd

Package: Rcpp
Source: CRAN
Version: 1.0.6
Hash: d891b607ea796cf30abfe4795380423f

Package: Rhdf5lib
Source: Bioconductor
Version: 1.8.0
Hash: d745e0bfadca3d7ebc4bc246eadcc8b2

Package: ncdf4
Source: CRAN
Version: 1.17
Hash: 7cf17483666153addae35552ca6debd9

Package: zlibbioc
Source: Bioconductor
Version: 1.32.0
Hash: 5fadfb71ee7cd5fe6b00762e79b56cf8

@sneumann
Copy link
Owner

Sorry, I need much more handholding to reproduce, I have zero experience with packrat.
I have done the R -e "packrat::init()" and copied the packrat.lock into the container, but restore() wont do anything. What am I missing ? Yours, Steffen

root@fc34c03f997c:/tmp# ls -l 
total 8
drwxr-xr-x 6 root root 4096 Feb 12 13:00 packrat
-rw-r--r-- 1 root root  984 Feb 12 13:06 packrat.lock
root@fc34c03f997c:/tmp# head packrat.lock 
PackratFormat: 1.4
PackratVersion: 0.5.0.310210272
RVersion: 3.6.2
Repos: BioCsoft=https://bioconductor.org/packages/3.10/bioc,
BioCann=https://bioconductor.org/packages/3.10/data/annotation,
BioCexp=https://bioconductor.org/packages/3.10/data/experiment,
BioCworkflows=https://bioconductor.org/packages/3.10/workflows,
CRAN=https://cloud.r-project.org

Package: mzID
[...]
root@fc34c03f997c:/tmp# R -e "packrat::restore()"

R version 3.6.3 RC (2020-02-21 r77847) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> packrat::restore()
Already up to date.
> 

@sneumann
Copy link
Owner

You cloud provide a container on github or quay for testing, and dump it after we fixed things. Yours, Steffen

@Wh1isper
Copy link

Same problem, maybe related to easybuilders/easybuild-easyconfigs#11393 (comment)

Due to the privacy agreement, I can't provide a complete Dockerfile at present, sorry

@Wh1isper
Copy link

Just tried to build with the latest code and succeed

Known it from #235 (comment)

git clone https://github.com/sneumann/mzR.git
R CMD INSTALL mzR/

cc @allyite

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants