Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

fatal error: span: No such file or directory #15

Closed
rwjack opened this issue Jul 13, 2021 · 4 comments
Closed

fatal error: span: No such file or directory #15

rwjack opened this issue Jul 13, 2021 · 4 comments

Comments

@rwjack
Copy link

rwjack commented Jul 13, 2021

WSL2 Ubuntu 20.10 groovy

$ make -j $(nproc)

...

windows-fido-bridge/src/common/include/windows_fido_bridge/util.hpp:7:10: fatal error: span: No such file or directory
    7 | #include <span>
      |          ^~~~~~
compilation terminated.
@mgbowen
Copy link
Owner

mgbowen commented Jul 14, 2021

Looks like groovy only includes g++-mingw version 9.3.0, which doesn't include std::span support. The minimum supported version for that is 10

I'm not terribly familiar with Ubuntu, so I'm not sure if there's a better way to get the latest version. I can try investigating some time later this week/weekend.

@rwjack
Copy link
Author

rwjack commented Jul 14, 2021

Solid research skills.

It's very likely that I've found the same link you did even before opening the issue -> upgraded from 20.04 (g++9.3.0) to 20.10 (g++10.3.0) -> still the same problem.

$ g++ --version

g++ (Ubuntu 10.3.0-1ubuntu1~20.10) 10.3.0

That's the only g++ installed besides g++9 and g++10 which are probably aliases for different versions, unless you're referring to another compiler. I'm not really experienced with this.

@mgbowen
Copy link
Owner

mgbowen commented Jul 14, 2021

From my original comment:

Looks like groovy only includes g++-mingw version 9.3.0

I'm explicitly referring to g++-mingw-w64, which is version 9.3.0 in groovy. Presumably you need to upgrade to 21.04 to get std::span support.

@rwjack
Copy link
Author

rwjack commented Jul 14, 2021

$ g++-mingw-w64
g++-mingw-w64: command not found

Is there a way I can invoke it to check the version? What package should I be looking for so I could upgrade it?

EDIT: Whoops, didn't see you linked to it.
Updating to 21.10, will check if it compiles then.

EDIT2: Done, works like a charm.
Quick help for anyone upgrading WSL to 21.04
microsoft/WSL#6942 (comment)

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