-
Notifications
You must be signed in to change notification settings - Fork 136
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: use of undeclared identifier 'AVRDUDE_FULL_VERSION' #1706
Comments
Just turning it into an issue for easier tracking. |
For reference, here's the verbose build output for |
I can reproduce the issue under Windows MSYS2 mingw64 build environment. Repost of the above comment below. Interestingly I just reproduced your issue under MSYS2 mingw64 with clone from official avrdude, and the solution is the same -- redo the clone. I am not so sure what is the issue though. Occassionally there is the issue of getting wrong version number. And the solution has always the same for me -- to delete the local repo and clone again. Note: I have delete the build directory before the build but it does not help.
Once I reclone the repo, it works fine,
|
I do not think this issue is directly linked to @ndim's PR #1681. It may have something to do with git and avrdude's build script. As mentioned before, I've encounter below issue as well under MSYS2 mingw64 and macOS Homebrew (Mac Mini M1). Re-clone the repo will sort out the issue.
|
How it is supposed to workThe first line of code in There is no complaint from the C preprocessor that it cannot find The line in
which was added by me in PR #1681 commit cc94578 where I effectively just renamed that line from the old
to make it clearer which kind of version an occurrence of What happens on your system?On my FreeBSD system, after a
@dl8dtl I presume in your affected private fork working dir, this same grep yields the following. Or is the version older?
Then the next check would be
which in your case might be
Unfortunately, the build logs never mention Maybe it could help forcing cmake to rebuild I cannot see how Shooting in the dark, maybe running Worst case, send me a tarball of the offending directory including all your local and private data. That would give me all your git history, stashes, and local files with weird stuff. (Note to self: Check that I can receive mails with 30+MB attachments.) |
That was actually the key to understand it.
The failing one:
The |
Is it possible you have an older |
The two above comments are a good example for a race condition. Anyway, thanks for pointing this out. There should be an automatic check for this kind of thing. |
Wait a minute. There should not be a need for such a check. The C preprocessor should just search the |
OK, I reopen the issue tracker then. Alas, I don't have time right now for any testing. |
Working on it. Two avenues of attack:
As an aside, this also explains the following occasional error which I have not tracked down completely yet, but it always happens after I have cleaned out all files from the working dir using
|
Quoting section "2.3 Search Path" from
So by using the quote form The sequence of For static |
And for balance, MSVC appears to do basically the same. Quoting https://learn.microsoft.com/en-us/cpp/build/reference/i-additional-include-directories?view=msvc-170:
|
Wonderful analysis. I have lived with the issue for a long time, as I tested with both CMake (more often) and autotools build (occassionally). It is great now that the root cause has been found.
@ndim mentioned the following.
|
I actually mentioned the issue during the testing towards avrdude 7.3 release a few weeks ago.
|
This adds checks for zombie sourcecode problems, i.e. problems we have tried to eliminate but which might be or have been resurrected. The example check is for the problematic #include "ac_cfg.h" with double quotes instead of <> which were identified as a problem in avrdudes#1706 and then fixed.
This adds checks for zombie sourcecode problems, i.e. problems we have tried to eliminate but which might be or have been resurrected. The example check is for the problematic #include "ac_cfg.h" with double quotes instead of <> which were identified as a problem in avrdudes#1706 and then fixed.
This adds checks for zombie sourcecode problems, i.e. problems we have tried to eliminate but which might be or have been resurrected. The example check is for the problematic #include "ac_cfg.h" with double quotes instead of <> which were identified as a problem in avrdudes#1706 and then fixed.
This adds checks for zombie sourcecode problems, i.e. problems we have tried to eliminate but which might be or have been resurrected. The example check is for the problematic #include "ac_cfg.h" with double quotes instead of <> which were identified as a problem in avrdudes#1706 and then fixed.
This adds checks for zombie sourcecode problems, i.e. problems we have tried to eliminate but which might be or have been resurrected. The example check is for the problematic #include "ac_cfg.h" with double quotes instead of <> which were identified as a problem in avrdudes#1706 and then fixed.
This adds checks for zombie sourcecode problems, i.e. problems we have tried to eliminate but which might be or have been resurrected. The example check is for the problematic #include "ac_cfg.h" with double quotes instead of <> which were identified as a problem in avrdudes#1706 and then fixed.
This adds checks for zombie sourcecode problems, i.e. problems we have tried to eliminate but which might be or have been resurrected. The example check is for the problematic #include "ac_cfg.h" with double quotes instead of <> which were identified as a problem in avrdudes#1706 and then fixed.
This adds checks for zombie sourcecode problems, i.e. problems we have tried to eliminate but which might be or have been resurrected. The example check is for the problematic #include "ac_cfg.h" with double quotes instead of <> which were identified as a problem in avrdudes#1706 and then fixed.
Everything works fine when I rund
build.sh
on a clone of the official AVRDUDE repo.However, when running it on my private fork (where the official repo is only
upstream
remote), even with the same source tree as the official repo, I eventually get:Originally posted by @dl8dtl in #1681 (comment)
The text was updated successfully, but these errors were encountered: