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

error during compilation (control reaches end of non-void function ) #268

Open
thommohr opened this issue May 14, 2022 · 1 comment
Open

Comments

@thommohr
Copy link

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

@sneumann
Copy link
Owner

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

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

2 participants