Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646146 - dev-util/creduce-2.7.0-r1 fails compile: TransformationManager.cpp:104:10: error: request for member ‘getLanguage’ in ‘IK’, which is of non-class type ‘clang::InputKind’
Summary: dev-util/creduce-2.7.0-r1 fails compile: TransformationManager.cpp:104:10: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-30 18:56 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2018-02-15 22:10 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
creduce-2.7.0-r1:20180130-024652.log (creduce-2.7.0-r1:20180130-024652.log,89.54 KB, text/plain)
2018-01-30 18:56 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-01-30 18:56:52 UTC
Created attachment 517160 [details]
creduce-2.7.0-r1:20180130-024652.log

TransformationManager.cpp:104:10: error: request for member ‘getLanguage’ in ‘IK’, which is of non-class type ‘clang::InputKind’
   if (IK.getLanguage() == InputKind::C) {
          ^~~~~~~~~~~
/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0/clang_delta/TransformationManager.cpp:104:38: error: ‘C’ is not a member of ‘clang::InputKind’
   if (IK.getLanguage() == InputKind::C) {
                                      ^
/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0/clang_delta/TransformationManager.cpp:105:73: error: ‘C’ is not a member of ‘clang::InputKind’
     Invocation.setLangDefaults(ClangInstance->getLangOpts(), InputKind::C, T, PPOpts);
                                                                         ^
/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0/clang_delta/TransformationManager.cpp:107:15: error: request for member ‘getLanguage’ in ‘IK’, which is of non-class type ‘clang::InputKind’
   else if (IK.getLanguage() == InputKind::CXX) {
               ^~~~~~~~~~~
/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0/clang_delta/TransformationManager.cpp:107:43: error: ‘CXX’ is not a member of ‘clang::InputKind’
   else if (IK.getLanguage() == InputKind::CXX) {
                                           ^~~
/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0/clang_delta/TransformationManager.cpp:111:73: error: ‘CXX’ is not a member of ‘clang::InputKind’
     Invocation.setLangDefaults(ClangInstance->getLangOpts(), InputKind::CXX, T, PPOpts);
                                                                         ^~~
/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0/clang_delta/TransformationManager.cpp:113:14: error: request for member ‘getLanguage’ in ‘IK’, which is of non-class type ‘clang::InputKind’
   else if(IK.getLanguage() == InputKind::OpenCL) {
              ^~~~~~~~~~~
/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0/clang_delta/TransformationManager.cpp:113:42: error: ‘OpenCL’ is not a member of ‘clang::InputKind’
   else if(IK.getLanguage() == InputKind::OpenCL) {
                                          ^~~~~~
/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0/clang_delta/TransformationManager.cpp:138:43: error: ‘OpenCL’ is not a member of ‘clang::InputKind’
                                InputKind::OpenCL, T, PPOpts);


[ebuild  N    ~] dev-util/creduce-2.7.0-r1  0 KiB
[ebuild  N     ]  dev-perl/Regexp-Common-2017060201.0.0  USE="{-test}" 0 KiB
[ebuild  N     ]  dev-util/ninja-1.8.2  USE="-doc -emacs {-test} -vim-syntax -zsh-completion" 0 KiB
[ebuild  N     ]   dev-util/re2c-0.16  0 KiB
[ebuild  N     ]  dev-perl/Exporter-Lite-0.20.0-r1  0 KiB
[ebuild  N    ~]  dev-perl/Benchmark-Timer-0.710.700  USE="{-test}" 0 KiB
[ebuild  N    ~]   dev-perl/Statistics-TTest-1.1.0-r1  0 KiB
[ebuild  N    ~]    dev-perl/Statistics-Distributions-1.20.0-r1  0 KiB
[ebuild  N     ]    dev-perl/Statistics-Descriptive-3.61.200  USE="-examples {-test}" 0 KiB
[ebuild  N     ]     dev-perl/List-MoreUtils-0.418.0  USE="xs {-test}" 0 KiB
[ebuild  N     ]      dev-perl/List-MoreUtils-XS-0.418.0  USE="{-test}" 0 KiB
[ebuild  N     ]      dev-perl/Exporter-Tiny-0.42.0  USE="{-test}" 0 KiB
[ebuild  N     ]   dev-perl/URI-1.710.0  USE="{-test}" 0 KiB
[ebuild  N     ]  dev-util/astyle-3.0.1  USE="-examples -java -static-libs" 0 KiB
[ebuild  N     ]  sys-devel/clang-4.0.1:4  USE="static-analyzer -debug -default-compiler-rt -default-libcxx -doc {-test} -xml" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N     ]   sys-devel/llvm-4.0.1-r1:4  USE="libffi ncurses -debug -doc -gold -libedit {-test}" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -XCore" 0 KiB
[ebuild  N     ]    sys-devel/llvm-common-4.0.1  0 KiB
[ebuild  N     ]   sys-devel/clang-runtime-4.0.1:4.0.1  USE="compiler-rt openmp sanitize -libcxx" 0 KiB
[ebuild  N     ]    sys-libs/compiler-rt-4.0.1:4.0.1  USE="clang {-test}" 0 KiB
[ebuild  N     ]    sys-libs/compiler-rt-sanitizers-4.0.1:4.0.1  USE="{-test}" 0 KiB
[ebuild  N     ]    sys-libs/libomp-4.0.1  USE="-hwloc -ompt {-test}" 0 KiB
[ebuild  N     ]  dev-perl/File-Which-1.90.0-r1  USE="{-test}" 0 KiB
[ebuild  N     ]  dev-util/indent-2.2.11-r1  USE="nls" 0 KiB
[ebuild  N     ]   app-text/texi2html-5.0-r1  USE="unicode" 0 KiB
[ebuild  N     ]  dev-perl/Sys-CPU-0.610.0  0 KiB
[ebuild  N    ~]  dev-perl/Getopt-Tabular-0.300.0-r1  USE="-examples" 0 KiB


 * Package:    dev-util/creduce-2.7.0-r1
 * Repository: gentoo
 * Maintainer: rhill@gentoo.org mgorny@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   ccache preserve-libs sandbox userpriv usersandbox
 * Applying creduce-2.7.0-llvm-5.patch ...
 * ERROR: dev-util/creduce-2.7.0-r1::gentoo failed (compile phase):
 *   ninja -v -j3 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 2996:  Called cmake-utils_src_compile
 *   environment, line  738:  Called cmake-utils_src_make
 *   environment, line  911:  Called _cmake_ninja_src_make
 *   environment, line  327:  Called eninja
 *   environment, line 1256:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-util/creduce-2.7.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/creduce-2.7.0-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage-build/build/dev-util/creduce-2.7.0-r1:20180130-024652.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/creduce-2.7.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/creduce-2.7.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0_build'
 * S: '/var/tmp/portage/dev-util/creduce-2.7.0-r1/work/creduce-2.7.0'


Portage 2.3.13 (python 2.7.14-final-0, default/linux/amd64/17.1/no-multilib, gcc-7.2.0, glibc-2.25-r9, 4.9.6-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.4.1
KiB Mem:     2042732 total,    868448 free
KiB Swap:   18588764 total,  18522796 free
Head commit of repository gentoo: 2f7c60b31db36129c58b790c6e2a304fde6b0246

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.28.9999::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.9.6::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-30 19:12:16 UTC
Looks like the following non-maintainer commit broke compatibility with LLVM 4 without updating the ebuild properly:


commit 5c5af6f0b0c4fb3e986d6a878568b2f8fed91db0
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Thu Jan 4 05:40:06 2018
Commit:     Mike Frysinger <vapier@gentoo.org>
CommitDate: Thu Jan 4 05:41:26 2018

    dev-util/creduce: add upstream fix for building w/llvm-5

 dev-util/creduce/creduce-2.7.0-r1.ebuild          | 38 ++++++++++++++++++++++++++++++++++++++
 dev-util/creduce/files/creduce-2.7.0-llvm-5.patch | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2018-02-15 22:10:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdb8cec75476ffc8bcc9d32e7ced703efa00e158

commit bdb8cec75476ffc8bcc9d32e7ced703efa00e158
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-02-15 22:10:27 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-02-15 22:10:40 +0000

    dev-util/creduce: Require llvm-5 on the patched version
    
    Closes: https://bugs.gentoo.org/646146

 dev-util/creduce/creduce-2.7.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)