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 failure with Clang 19 #134

Closed
kostadinsh opened this issue Nov 27, 2024 · 2 comments
Closed

Build failure with Clang 19 #134

kostadinsh opened this issue Nov 27, 2024 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@kostadinsh
Copy link

clang-extract fails to build with Clang 19.

I believe these PRs might be related:
llvm/llvm-project#74910
llvm/llvm-project#98735

FAILED: libcextract/libcextract.a.p/MacroWalker.cpp.o 
clang++ -Ilibcextract/libcextract.a.p -Ilibcextract -I../libcextract -I/usr/lib/llvm/19/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -Wno-unused-parameter -Wno-vla-extension -march=native -O2 -pipe -fPIC -MD -MQ libcextract/libcextract.a.p/MacroWalker.cpp.o -MF libcextract/libcextract.a.p/MacroWalker.cpp.o.d -o libcextract/libcextract.a.p/MacroWalker.cpp.o -c ../libcextract/MacroWalker.cpp
../libcextract/MacroWalker.cpp:101:17: error: no member named 'equals' in 'llvm::StringRef'
  101 |     if (tok_str.equals(arg_str)) {
      |         ~~~~~~~ ^
FAILED: libcextract/libcextract.a.p/IncludeTree.cpp.o 
clang++ -Ilibcextract/libcextract.a.p -Ilibcextract -I../libcextract -I/usr/lib/llvm/19/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -Wno-unused-parameter -Wno-vla-extension -march=native -O2 -pipe -fPIC -MD -MQ libcextract/libcextract.a.p/IncludeTree.cpp.o -MF libcextract/libcextract.a.p/IncludeTree.cpp.o.d -o libcextract/libcextract.a.p/IncludeTree.cpp.o -c ../libcextract/IncludeTree.cpp
../libcextract/IncludeTree.cpp:530:65: error: no member named 'getName' in 'clang::FileEntry'
  530 |     if (Tree.IEP->Must_Expand(entry.tryGetRealPathName(), entry.getName())) {
      |
FAILED: libcextract/libcextract.a.p/PrettyPrint.cpp.o 
clang++ -Ilibcextract/libcextract.a.p -Ilibcextract -I../libcextract -I/usr/lib/llvm/19/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -Wno-unused-parameter -Wno-vla-extension -march=native -O2 -pipe -fPIC -MD -MQ libcextract/libcextract.a.p/PrettyPrint.cpp.o -MF libcextract/libcextract.a.p/PrettyPrint.cpp.o.d -o libcextract/libcextract.a.p/PrettyPrint.cpp.o -c ../libcextract/PrettyPrint.cpp
../libcextract/PrettyPrint.cpp:128:21: error: no member named 'equals' in 'llvm::StringRef'
  128 |     if (decl_source.equals("")) {
      |         ~~~~~~~~~~~ ^
FAILED: libcextract/libcextract.a.p/SymbolExternalizer.cpp.o 
clang++ -Ilibcextract/libcextract.a.p -Ilibcextract -I../libcextract -I/usr/lib/llvm/19/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -Wno-unused-parameter -Wno-vla-extension -march=native -O2 -pipe -fPIC -MD -MQ libcextract/libcextract.a.p/SymbolExternalizer.cpp.o -MF libcextract/libcextract.a.p/SymbolExternalizer.cpp.o.d -o libcextract/libcextract.a.p/SymbolExternalizer.cpp.o -c ../libcextract/SymbolExternalizer.cpp
../libcextract/SymbolExternalizer.cpp:693:36: error: no member named 'getName' in 'clang::FileEntry'
  693 |       if (new_mfs->addFile(fentry->getName(),
      |                            ~~~~~~  ^
../libcextract/SymbolExternalizer.cpp:695:53: error: no member named 'getName' in 'clang::FileEntry'
  695 |         llvm::outs() << "Unable to add " << fentry->getName() << " into InMemoryFS.\n";
      |                                             ~~~~~~  ^
../libcextract/SymbolExternalizer.cpp:700:39: error: no member named 'getName' in 'clang::FileEntry'
  700 |         StringRef file_name = fentry->getName();
      |                               ~~~~~~  ^
../libcextract/SymbolExternalizer.cpp:715:36: error: no member named 'getName' in 'clang::FileEntry'
  715 |       if (new_mfs->addFile(fentry->getName(),
      |                            ~~~~~~  ^
../libcextract/SymbolExternalizer.cpp:718:53: error: no member named 'getName' in 'clang::FileEntry'
  718 |         llvm::outs() << "Unable to add " << fentry->getName() << " into InMemoryFS.\n";
      |                                             ~~~~~~  ^

complete build log

@giulianobelinassi
Copy link
Collaborator

Some work will need to be done to support clang-19.

@giulianobelinassi giulianobelinassi added bug Something isn't working enhancement New feature or request labels Nov 28, 2024
@giulianobelinassi
Copy link
Collaborator

Fixed in 8344124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants