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

Build fails with clang-19: use of undeclared identifier 'See_the_standard_on_proper_argument_type_for_ctype_functions' #13

Open
yurivict opened this issue Nov 3, 2024 · 6 comments

Comments

@yurivict
Copy link

yurivict commented Nov 3, 2024

In file included from /wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/src/corelib/test/test_trial_fail.cpp:38:
In file included from /wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/include/corelib/error_codes.hpp:38:
In file included from /wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/include/corelib/ncbidiag.hpp:42:
In file included from /wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/include/corelib/ncbi_stack.hpp:35:
In file included from /wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/include/corelib/ncbistre.hpp:39:
/wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/include/corelib/ncbictype.hpp:73:1: error: use of undeclared identifier 'See_the_standard_on_proper_argument_type_for_ctype_functions'
   73 | NCBI_DEFINE_CTYPE_FUNC(toupper)
      | ^
/wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/include/corelib/ncbictype.hpp:57:16: note: expanded from macro 'NCBI_DEFINE_CTYPE_FUNC'
   57 |         return See_the_standard_on_proper_argument_type_for_ctype_functions(c); \
      |                ^
/wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/src/corelib/test/test_trial_fail.cpp:109:5: note: in instantiation of function template specialization 'std::toupper<double>' requested here
  109 |     toupper(1.);
      |     ^
1 error generated.

log

Version: 28.0.9
FreeBSD 15

@ucko
Copy link
Member

ucko commented Nov 4, 2024

Hi, Yuri.

As in #5, that error is expected and harmless. A look at the log (thanks for attaching it up front!) indicates why the build wound up failing:

In file included from /wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/src/util/diff/diff.cpp:36:
In file included from /wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/src/util/diff/dtl/dtl/dtl.hpp:44:
/wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/src/util/diff/dtl/dtl/Diff.hpp:166:27: error: cannot assign to non-static data member within const member function 'enableTrivial'
  166 |             this->trivial = true;
      |             ~~~~~~~~~~~~~ ^
/wrkdirs/usr/ports/biology/ncbi-cxx-toolkit/work/ncbi-cxx-toolkit-public-release-28.0.9/src/util/diff/dtl/dtl/Diff.hpp:165:14: note: member function 'dtl::Diff::enableTrivial' is declared const here
  165 |         void enableTrivial () const {
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~

We've applied @kemin711's fix for that error from #10 to our trunk and should be able to get it into subsequent 28.0.x releases; copying @vladimir-ivanov-ncbi accordingly.

@yurivict
Copy link
Author

yurivict commented Nov 4, 2024

I'll wait for the next release.

@ucko
Copy link
Member

ucko commented Nov 5, 2024

I'll wait for the next release.

Good plan; as I suspected, you'll need a few other small changes.

@kemin711
Copy link

kemin711 commented Nov 6, 2024 via email

@ucko
Copy link
Member

ucko commented Dec 9, 2024

28.0.11 should build fine in release mode. (In debug mode, there's still one assertion that will fail to compile; @tlk00, please do take a look when you get a chance.)

@kemin711
Copy link

kemin711 commented Dec 9, 2024

Anyway, I got it compiled successfully thanks for all the good work

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

3 participants