Bug 1469983 - CMake Error at CMakeLists.txt:3 (project): No CMAKE_CXX_COMPILER could be found.
CMake Error at CMakeLists.txt:3 (project): No CMAKE_CXX_COMPILER could be f...
Product: Fedora
Classification: Fedora
Component: abrt-java-connector (Show other bugs)
Unspecified Unspecified
unspecified Severity urgent
: ---
: ---
Assigned To: Jakub Filak
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-07-12 04:15 EDT by lsy
Modified: 2017-07-12 22:33 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-07-12 22:33:48 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description lsy 2017-07-12 04:15:43 EDT
with fc25,build abrt-java-connector-1.1.0-8.fc24.src.rpm.
error info:

[mock@fc25-dev ~/rpmbuild/SPECS]$ rpmbuild -ba abrt-java-connector.spec 

执行(%prep): /bin/sh -e /var/tmp/rpm-tmp.mAyoPO
+ umask 022
+ cd /home/mock/rpmbuild/BUILD
+ cd /home/mock/rpmbuild/BUILD
+ rm -rf abrt-java-connector-230b72697c7c43db747b2644b17cb2685d1539de
+ /usr/bin/gzip -dc /home/mock/rpmbuild/SOURCES/abrt-java-connector-1.1.0-230b726.tar.gz
+ /usr/bin/tar -xof -
+ '[' 0 -ne 0 ']'
+ cd abrt-java-connector-230b72697c7c43db747b2644b17cb2685d1539de
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/git init -q
+ /usr/bin/git config user.name rpm-build
+ /usr/bin/git config user.email '<rpm-build>'
+ /usr/bin/git add .
+ /usr/bin/git commit -q -a --author 'rpm-build <rpm-build>' -m 'abrt-java-connector-1.1.0 base'
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0001-Decrease-the-tested-memory-limits-because-of-failure.patch
+ /usr/bin/git am
Applying: Decrease the tested memory limits because of failures on arm
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0002-Adapt-the-arm-test-outputs-to-java-1.8.patch
+ /usr/bin/git am
Applying: Adapt the arm test outputs to java-1.8
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0003-Add-java-1.8-test-outputs-for-aarch-ppc-and-s390.patch
+ /usr/bin/git am
Applying: Add java-1.8 test outputs for aarch, ppc and s390
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0004-Update-Linux-aarch64-test-outputs.patch
+ /usr/bin/git am
Applying: Update Linux-aarch64 test outputs
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0005-Update-the-test-results.patch
+ /usr/bin/git am
Applying: Update the test results
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0006-Make-the-dependency-on-systemd-optional.patch
+ /usr/bin/git am
Applying: Make the dependency on systemd optional
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0007-Update-README.patch
+ /usr/bin/git am
Applying: Update README
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0008-Remove-function-malloc_readlink.patch
+ /usr/bin/git am
Applying: Remove function malloc_readlink
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0009-Makefile-Adds-srpm-target.patch
+ /usr/bin/git am
Applying: Makefile: Adds srpm target
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0010-Update-the-test-results.patch
+ /usr/bin/git am
Applying: Update the test results
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0011-Clearly-state-that-tests-cannot-be-run-under-root.patch
+ /usr/bin/git am
Applying: Clearly state that tests cannot be run under root
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0012-Disable-ClassNotFoundException-test-again.patch
+ /usr/bin/git am
Applying: Disable ClassNotFoundException test again
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0013-Correct-includes-for-ABRT.patch
+ /usr/bin/git am
Applying: Correct includes for ABRT
+ /usr/bin/cat /home/mock/rpmbuild/SOURCES/0014-Drop-pedantic-from-CFLAGS.patch
+ /usr/bin/git am
Applying: Drop pedantic from CFLAGS
+ exit 0
执行(%build): /bin/sh -e /var/tmp/rpm-tmp.gHTUHk
+ umask 022
+ cd /home/mock/rpmbuild/BUILD
+ cd abrt-java-connector-230b72697c7c43db747b2644b17cb2685d1539de
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/home/mock/rpmbuild/BUILD/abrt-java-connector-230b72697c7c43db747b2644b17cb2685d1539de/CMakeFiles/CMakeOutput.log".
See also "/home/mock/rpmbuild/BUILD/abrt-java-connector-230b72697c7c43db747b2644b17cb2685d1539de/CMakeFiles/CMakeError.log".
错误:/var/tmp/rpm-tmp.gHTUHk (%build) 退出状态不好

RPM 构建错误:
    /var/tmp/rpm-tmp.gHTUHk (%build) 退出状态不好
Comment 1 lsy 2017-07-12 22:33:48 EDT

Note You need to log in before you can comment on or make changes to this bug.