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: aggregate ‘std::ofstream genfile’ has incomplete type and cannot be defined #502

Closed
Alessandro-Barbieri opened this issue May 30, 2022 · 1 comment
Labels

Comments

@Alessandro-Barbieri
Copy link

Gentoo's CI had a build failure

[69/281] /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DFMT_LOCALE -DFMT_SHARED -DLOCATION_HH=\"/var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00_build/thrift/compiler/location.hh\" -DTHRIFT_HAVE_LIBSNAPPY=0 -I/var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00 -I/var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00_build  -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=c++17 -MD -MT thrift/compiler/CMakeFiles/thrift1.dir/compiler.cc.o -MF thrift/compiler/CMakeFiles/thrift1.dir/compiler.cc.o.d -o thrift/compiler/CMakeFiles/thrift1.dir/compiler.cc.o -c /var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00/thrift/compiler/compiler.cc
FAILED: thrift/compiler/CMakeFiles/thrift1.dir/compiler.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DFMT_LOCALE -DFMT_SHARED -DLOCATION_HH=\"/var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00_build/thrift/compiler/location.hh\" -DTHRIFT_HAVE_LIBSNAPPY=0 -I/var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00 -I/var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00_build  -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=c++17 -MD -MT thrift/compiler/CMakeFiles/thrift1.dir/compiler.cc.o -MF thrift/compiler/CMakeFiles/thrift1.dir/compiler.cc.o.d -o thrift/compiler/CMakeFiles/thrift1.dir/compiler.cc.o -c /var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00/thrift/compiler/compiler.cc
/var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00/thrift/compiler/compiler.cc: In function ‘bool apache::thrift::compiler::{anonymous}::generate(const apache::thrift::compiler::{anonymous}::gen_params&, apache::thrift::compiler::t_program*, std::set<std::__cxx11::basic_string<char> >&)’:
/var/tmp/portage/dev-cpp/fbthrift-2022.04.11.00-r1/work/fbthrift-2022.04.11.00/thrift/compiler/compiler.cc:331:19: error: aggregate ‘std::ofstream genfile’ has incomplete type and cannot be defined
  331 |     std::ofstream genfile;
      |                   ^~~~~~~

see https://bugs.gentoo.org/848456
log https://848456.bugs.gentoo.org/attachment.cgi?id=781388

@vitaut
Copy link
Contributor

vitaut commented May 31, 2022

This has been fixed in 5bd55f1 already.

@vitaut vitaut closed this as completed May 31, 2022
@vitaut vitaut added the invalid label May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants