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 fails with gcc 4.8 #356

Closed
pachadotdev opened this issue May 15, 2024 · 2 comments · Fixed by #359
Closed

build fails with gcc 4.8 #356

pachadotdev opened this issue May 15, 2024 · 2 comments · Fixed by #359

Comments

@pachadotdev
Copy link
Contributor

The CI workflow passes the recent PRs except for gcc 4.8 on Ubuntu 20.

Here is what the CI says

/home/runner/work/_temp/Library/cpp11/include/cpp11/protect.hpp:161:31: warning: format not a string literal and no format arguments [-Wformat-security]
     decltype(std::declval<F*>()(std::declval<A&&>()...)) operator()(A&&... a) const {
                               ^
/home/runner/work/_temp/Library/cpp11/include/cpp11/protect.hpp: In instantiation of ‘struct cpp11::detail::closure<void(SEXPREC*, const char*, ...), SEXPREC*&, const char*&&>’:
/home/runner/work/_temp/Library/cpp11/include/cpp11/protect.hpp:185:89:   required from ‘void cpp11::protect::noreturn_function<F>::operator()(A&& ...) const [with A = {SEXPREC*&, const char*}; F = void(SEXPREC*, const char*, ...)]’
/home/runner/work/_temp/Library/cpp11/include/cpp11/protect.hpp:234:29:   required from ‘void cpp11::stop(const string&, Args ...) [with Args = {}; std::string = std::basic_string<char>]’
errors.cpp:5:84:   required from here
/home/runner/work/_temp/Library/cpp11/include/cpp11/protect.hpp:148:29: warning: format not a string literal and no format arguments [-Wformat-security]
   decltype(std::declval<F*>()(std::declval<Aref>()...)) operator()() && {
                             ^
‘
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccOS2WLf.out file, please attach this to your bugreport.
make: *** [/opt/R/4.4.0/lib/R/etc/Makeconf:204: errors.o] Error 1

I tried to replicate this locally with VirtualBox, and so far I didn't succeed.

Enter one or more numbers, or an empty line to skip updates: 
Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
@DavisVaughan
Copy link
Member

Isn't that extremely old? Like, "last release in 2015 and no longer supported" old? https://gcc.gnu.org/gcc-4.8/

@pachadotdev
Copy link
Contributor Author

Isn't that extremely old? Like, "last release in 2015 and no longer supported" old? https://gcc.gnu.org/gcc-4.8/

well, yes

I will edit the CI then :)

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

Successfully merging a pull request may close this issue.

2 participants