error during compilation (control reaches end of non-void function )
thommohr opened this issue · 1 comments
Dear developers,
trying to install mzR on a linux system causes following error:
g++ -std=gnu++11 -I"/usr/lib64/R/include" -DNDEBUG -I./boost_aux/ -I./boost/ -I. -D_LARGEFILE_SOURCE -DHAVE_PWIZ_MZML_LIB -D_NODEBUG -I'/usr/lib64/R/library/Rcpp/include' -I'/usr/lib64/R/library/Rhdf5lib/include' -I/usr/local/include -fpic -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -c pwiz/data/msdata/MSData.cpp -o pwiz/data/msdata/MSData.o
In file included from pwiz/data/msdata/MSData.hpp:29,
from pwiz/data/msdata/MSData.cpp:25:
./pwiz/utility/misc/BinaryData.hpp:124: warning: ignoring ‘#pragma region Ctors’ [-Wunknown-pragmas]
124 | #pragma region Ctors/Dtor
|
./pwiz/utility/misc/BinaryData.hpp:136: warning: ignoring ‘#pragma endregion ’ [-Wunknown-pragmas]
136 | #pragma endregion
|
./pwiz/utility/misc/BinaryData.hpp:138: warning: ignoring ‘#pragma region Iterators’ [-Wunknown-pragmas]
138 | #pragma region Iterators/accessors
|
./pwiz/utility/misc/BinaryData.hpp:267: warning: ignoring ‘#pragma endregion ’ [-Wunknown-pragmas]
267 | #pragma endregion
|
./pwiz/utility/misc/BinaryData.hpp:269: warning: ignoring ‘#pragma region Mutators’ [-Wunknown-pragmas]
269 | #pragma region Mutators
|
./pwiz/utility/misc/BinaryData.hpp:377: warning: ignoring ‘#pragma endregion ’ [-Wunknown-pragmas]
377 | #pragma endregion
|
pwiz/data/msdata/MSData.cpp: In member function ‘virtual size_t pwiz::msdata::SpectrumList::findAbbreviated(const std::string&, char) const’:
pwiz/data/msdata/MSData.cpp:1115:1: error: control reaches end of non-void function [-Werror=return-type]
1115 | }
| ^
Any idea what could go wrong?
best,
Thomas
Hi, please provide more information about your system. Which Distribution ? Which Version ? Which hardware/CPU ? Which compiler version ? Which version of mzR are you installing, and which command did you use to do so ?
Builds are fine on http://bioconductor.org/checkResults/devel/bioc-LATEST/mzR/, so we need to figure out what is different on your system. Yours, Steffen