https://sourceware.org/bugzilla/show_bug.cgi?id=25057
Bug ID: 25057 Summary: Fails to build binutils-2.31.1 using clang-8.0.0 Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: wcohen at redhat dot com Target Milestone: --- When attempting to build binutils-2.31.1 rpm on fedora 30 using the clang compiler some of the code fails to build. Steps to reproduce: $ rpm -Uvh binutils-2.31.1.fc30.src.rpm $ cd rpmbuild/SPECS $ export CC=clang $ export CXX=clang++ $ rpmbuild --define "%optflags -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection" --define "%dist .fc30llvm" -bi binutils.spec It compiles a fair amount of code, but the build fails because of the following errors: x86_64.cc:1591:10: error: case value evaluates to 3221225473, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED: ^ x86_64.cc:1592:10: error: case value evaluates to 3221225474, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case elfcpp::GNU_PROPERTY_X86_FEATURE_1_AND: ^ The definitions of these values set sign bit (0xc0000001 and 0xc0000002) and it looks like clang doesn't like that. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils