Bug ID: 22880
           Summary: ./configure stalls forever if CC=clang
           Product: binutils
           Version: 2.30
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: bjornpagen at gmail dot com
  Target Milestone: 2.31
            Target: x86_64-gentoo-linux-musl

Created attachment 10843
Here is my patch to fix the issue

Binutils 2.29 and 2.30 both do not pass ./configure with CC=clang. When
./configure is run, it stalls when it reaches "checking whether the compiler
driver understands Ada...", and does not continue.

I have also identified the cause. The bug is caused by a test for an edge case
for a gcc earlier than gcc-3. If this snippet of code is remove from
./configure, then the configure process continues as normal and binutils is
compiled flawlessly.

# There is a bug in old released versions of GCC which causes the
# driver to exit successfully when the appropriate language module
# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
# Therefore we must check for the error message as well as an
# unsuccessful exit.
# Other compilers, like HP Tru64 UNIX cc, exit successfully when
# given a .adb file, but produce no object file.  So we must check
# if an object file was really produced to guard against this.
errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
if test x"$errors" = x && test -f conftest.$ac_objext; then

You are receiving this mail because:
You are on the CC list for the bug.
bug-binutils mailing list

Reply via email to