-
Notifications
You must be signed in to change notification settings - Fork 127
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 version 10.1.0 #641
Comments
This `enum LOG_LEVELS` declaration also included a _variable name_, causing RuntimeTools/appmetrics#641. It ended up defining a `Log_levels` variable in every compilation unit that included "Log.h", which then caused duplicate symbols at link time. I don't know if there was a reason for this definition, but it looks like a bug to me … if not, maybe it can be fixed by just putting a `static` in front? idk. Thanks!
same problem here! do we have plans on fixing this ? |
@acheronfail I actually realized that I have the same issue as you and the same system since we both work at the same place and are falling with the same project. How did you manage to solve this issue? I tried to find you on slack but could not find you based on your GitHub username alone |
Depending on what I'm doing I do one of two things:
|
For people who would rather not downgrade several major gcc versions just for this 1 package, the following works for me and I hope will help you too:
|
I've noticed that building appmetrics with the latest version of
gcc
fails.I've tried this on multiple node versions (10, 12 & 13).
The last good working version of
gcc
is9.3.0
.Building it with
10.1.0
fails with the following output:Some information about my system:
And I've confirmed the issue fails to build with
gcc 10.1.0
on various node versions:Downgrading to
gcc 9.3.0
resolves the issues for me.The text was updated successfully, but these errors were encountered: