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

GCC toolchain cannot find the system package #2321

Open
kreisl opened this issue Jun 25, 2020 · 0 comments
Open

GCC toolchain cannot find the system package #2321

kreisl opened this issue Jun 25, 2020 · 0 comments

Comments

@kreisl
Copy link

kreisl commented Jun 25, 2020

The GCC-Toolchain cannot be picked up from the system if cc is not symlinked to gcc.
The version check
which cc && test -f $(dirname $(which cc))/c++ && printf "#define GCCVER ((__GNUC__ << 16)+(__GNUC_MINOR__ << 8)+(__GNUC_PATCHLEVEL__))\n#if (GCCVER < 0x070300)\ n#error \"System's GCC cannot be used: we need at least GCC 7.X. We are going to compile our own version.\"\n#endif\n" | cc -xc++ - -c -o /dev/null
is using cc.
A possible fix is using environment variable $CC instead of cc. For me this fixes the problem.

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

1 participant