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: 'OnShutdownRun' was not declared in this scope #15

Open
gangcai opened this issue Mar 19, 2021 · 2 comments
Open

error: 'OnShutdownRun' was not declared in this scope #15

gangcai opened this issue Mar 19, 2021 · 2 comments

Comments

@gangcai
Copy link

gangcai commented Mar 19, 2021

make[1]: Entering directory '/tmp/Rtmp3C2eJD/R.INSTALL1d778a7bed94/RProtoBufLib/src/protobuf-3.10.0/src'
CXX google/protobuf/stubs/bytestream.lo
CXX google/protobuf/stubs/common.lo
google/protobuf/stubs/common.cc: In function 'void google::protobuf::internal::OnShutdown(void ()())':
google/protobuf/stubs/common.cc:345:3: error: 'OnShutdownRun' was not declared in this scope
OnShutdownRun(RunZeroArgFunc, reinterpret_cast<void
>(func));
^~~~~~~~~~~~~
google/protobuf/stubs/common.cc:345:3: note: suggested alternative: 'OnShutdown'
OnShutdownRun(RunZeroArgFunc, reinterpret_cast<void*>(func));
^~~~~~~~~~~~~
OnShutdown
make[1]: *** [Makefile:915: google/protobuf/stubs/common.lo] Error 1
make[1]: Leaving directory '/tmp/Rtmp3C2eJD/R.INSTALL1d778a7bed94/RProtoBufLib/src/protobuf-3.10.0/src'
make: *** [Makefile:1714: install-recursive] Error 1
configure: creating ./config.status
config.status: creating src/Makevars
** libs
mkdir -p "/public/packages/R-4.0.3/lib/00LOCK-RProtoBufLib/00new/RProtoBufLib/include"
cp -r /tmp/Rtmp3C2eJD/R.INSTALL1d778a7bed94/RProtoBufLib/src/pb_build/include/google /public/packages/R-4.0.3/lib/00LOCK-RProtoBufLib/00new/RProtoBufLib/include
cp: cannot stat ‘/tmp/Rtmp3C2eJD/R.INSTALL1d778a7bed94/RProtoBufLib/src/pb_build/include/google’: No such file or directory
make: *** [Makevars:12: copying] Error 1
ERROR: compilation failed for package ‘RProtoBufLib’

  • removing ‘/public/packages/R-4.0.3/lib/RProtoBufLib’
@mikejiang
Copy link
Member

Can you provide more info?like which version of RProtoBufLib?How did you install it?

@gangcai
Copy link
Author

gangcai commented Mar 22, 2021

'RProtoBufLib' was installed through R bioconductor:

if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")

BiocManager::install("RProtoBufLib")
Bioconductor version 3.12 (BiocManager 1.30.10), R 4.0.3 (2020-10-10)
Installing package(s) 'RProtoBufLib'

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