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

[FTBFS] [clang] [i686t] ‘getParams’ is not a member of ‘llvm::coverage::mcdc’ #81880

Open
LW-archlinux opened this issue Feb 15, 2024 · 3 comments
Labels
build-problem clang Clang issues not falling into any other category

Comments

@LW-archlinux
Copy link

llcm/clang trunk , rev 43b291c

75f0d40 causes build failure when building a 32-bit multilib version of clang (intended to be used by 32-bit apps like wine & steam that do run on x86_64 ) .

/home/panoramix/Documents/Aur/pkgbuilds/lib32-clang-minimal-git/src/llvm-project/clang/lib/CodeGen/CoverageMappingGen.cpp: In member function ‘const auto& {anonymous}::SourceMappingRegion::getMCDCDecisionParams() const’:
/home/panoramix/Documents/Aur/pkgbuilds/lib32-clang-minimal-git/src/llvm-project/clang/lib/CodeGen/CoverageMappingGen.cpp:193:18: error: ‘getParams’ is not a member of ‘llvm::coverage::mcdc’
  193 |     return mcdc::getParams<const mcdc::DecisionParameters>(MCDCParams);
      |                  ^~~~~~~~~
/home/panoramix/Documents/Aur/pkgbuilds/lib32-clang-minimal-git/src/llvm-project/clang/lib/CodeGen/CoverageMappingGen.cpp:193:28: error: expected primary-expression before ‘const’
  193 |     return mcdc::getParams<const mcdc::DecisionParameters>(MCDCParams);
      |                            ^~~~~
/home/panoramix/Documents/Aur/pkgbuilds/lib32-clang-minimal-git/src/llvm-project/clang/lib/CodeGen/CoverageMappingGen.cpp:193:28: error: expected ‘;’ before ‘const’
/home/panoramix/Documents/Aur/pkgbuilds/lib32-clang-minimal-git/src/llvm-project/clang/lib/CodeGen/CoverageMappingGen.cpp:193:58: error: expected unqualified-id before ‘>’ token
  193 |     return mcdc::getParams<const mcdc::DecisionParameters>(MCDCParams);
      |                                                          ^
make[2]: *** [lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/build.make:748: lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CoverageMappingGen.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7959: lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/home/panoramix/Documents/Aur/pkgbuilds/lib32-clang-minimal-git/src/_build'

cmake arguments

    -G "Unix Makefiles"
    -D CMAKE_BUILD_TYPE=Release
    -D CMAKE_INSTALL_PREFIX=/usr
    -D CMAKE_SKIP_RPATH=ON
    -D CLANG_DEFAULT_PIE_ON_LINUX=ON
    -D CLANG_LINK_CLANG_DYLIB=ON
    -D CMAKE_CXX_FLAGS:STRING=-m32
    -D CMAKE_C_FLAGS:STRING=-m32
    -D LLVM_HOST_TRIPLE=$CHOST
    -D ENABLE_LINKER_BUILD_ID=ON
    -D LLVM_INCLUDE_DOCS=OFF
    -D LLVM_INCLUDE_TESTS=OFF
    -D LLVM_CONFIG="/usr/bin/llvm-config32"
    -D LLVM_ENABLE_RTTI=ON
    -D LLVM_LIBDIR_SUFFIX=32
    -D LLVM_LINK_LLVM_DYLIB=ON
    -D LLVM_TARGETS_TO_BUILD="AMDGPU;X86"

build log
lib32-clang-minimal-git-19.0.0_r489812.43b291cbecca-1-x86_64-build.log

@github-actions github-actions bot added the clang Clang issues not falling into any other category label Feb 15, 2024
@chapuni
Copy link
Contributor

chapuni commented Feb 16, 2024

Seems a build glitch.

  • Is it still blocking?
  • Is it reproducible for you locally?
  • Is -m32 required to reproduce?
  • Does it use the installed llvm-dev tree (not clang and llvm in-tree together)?
  • Could you show me the command line in the compilation?

@LW-archlinux
Copy link
Author

Seems a build glitch.

* Is it still blocking?

yes, Rev 3b6e250 has the same issue.

* Is it reproducible for you locally?

yes

* Is `-m32` required to reproduce?

unknown.
A 64-bit build of the same revision where llvm + clang are build together from the same tree doesn't have the issue.
I will check a -m32 build of llvm + clang together later.

* Does it use the installed llvm-dev tree (not clang and llvm in-tree together)?

correct, llvm & clang are built separately .

* Could you show me the command line in the compilation?

The build is done on archlinux using makepkg that executes a PKGBUILD recipe.
Without understanding archlinux build system it may be hard to determine the exact command used for the compilation.

The recipe for clang is at https://aur.archlinux.org/packages/lib32-clang-minimal-git , the llvm one is at
https://aur.archlinux.org/packages/lib32-llvm-minimal-git .
Use the "view PKGBUILD' button to see the recipes.

@LW-archlinux
Copy link
Author

Building llvm & clang together with -m32 does succeed, the seperate build still fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-problem clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

3 participants