Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Compilation error when using gcc versions {7,9,10,11} #24

Open
jiang719 opened this issue Nov 10, 2022 · 1 comment
Open

Compilation error when using gcc versions {7,9,10,11} #24

jiang719 opened this issue Nov 10, 2022 · 1 comment

Comments

@jiang719
Copy link

jiang719 commented Nov 10, 2022

When I was trying to run the given command: bazel run -c opt :print_names_and_sources /tmp/dm-code_contests/code_contests_valid.riegeli, I got this compilation error.

image
error: cannot cast private base class 'std::__detail::__variant::_Variant_storage<false, std::shared_futureriegeli::ChunkHeader, riegeli::records_internal::FutureChunkBegin::PadToBlockBoundary>' to 'std::variant<std::shared_futureriegeli::ChunkHeader, riegeli::records_internal::FutureChunkBegin::PadToBlockBoundary>'

This seems to be related to GCC.

I tried gcc-7 and I got an error saying <filesystem.h> is not found.

Then I tried gcc-9/10/11 and they all resulted in the error above. How can I fix this? Thanks.

@felixgimeno
Copy link
Member

Can you try
gcc version (Debian 12.2.0-10) 12.2.0
clang version (Debian clang version 14.0.6-2)
on debian/ubuntu?

@felixgimeno felixgimeno changed the title Compilation error: gcc/clang verion? Compilation error using gcc versions {7,9,10,11} Jan 16, 2023
@felixgimeno felixgimeno changed the title Compilation error using gcc versions {7,9,10,11} Compilation error when using gcc versions {7,9,10,11} Jan 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants